Deploy an MCP Server to Edge Compute: Expose Telnyx APIs as Tools for AI Agents
The Model Context Protocol (MCP) has become the standard way for AI agents to call external tools. Claude, Cursor, and a growing ecosystem of agent frameworks speak MCP natively, they discover tools via a tools/list endpoint and call them via tools/call. Any HTTP service that implements that contract becomes a tool provider the agent can use.
This walkthrough deploys a working MCP server to Telnyx Edge Compute. The whole server is 167 lines of Python in function/func.py, uses Python's standard library for the HTTP layer, and exposes four Telnyx APIs (send_sms, search_numbers, run_inference, list_phone_numbers) as MCP tools. There is no Express, no FastAPI, no SDK, just urllib, json, os, and an ASGI handler.
The canonical code example lives in the Telnyx code examples repo:
https://github.com/team-telnyx/telnyx-code-examples/tree/main/edge-mcp-server-deploy-python







