Telnyx

用于AI代理的官方Telnyx远程MCP服务器。

文档

Telnyx AI

This repo is the one-stop shop for AI Agents and AI-first developers building with Telnyx — everything an agent needs to build production-grade applications and manage its account, from signup to funding.

[!NOTE] This repository is a work in progress under active development. We are continuously improving based on testing and feedback. Contributions and feedback encouraged!

Table of contents

  • Telnyx Plugins - Set up your coding assistant: Telnyx Agent Skills plugins for Claude Code and Cursor, the hosted Telnyx MCP server via the Gemini CLI extension, and a Telnyx model-provider plugin for OpenCode.

  • Agent Toolkit - integrate Telnyx APIs with popular agent frameworks including OpenAI's Agent SDK, LangChain, CrewAI, and Vercel's AI SDK through function calling — available in Python and TypeScript.

  • Agent Skills - give AI agents accurate, up-to-date context about Telnyx APIs and SDKs, plus account-management skills for signup and payments (MPP and x402 account funding).

  • Agent CLI - provision and build on Telnyx infrastructure in a single command.

  • Model Context Protocol (MCP) - use Telnyx's generic API MCP proxy or app-layer MCP Apps.

  • Guides - step-by-step tutorials for common workflows

  • Edge Compute - agent workflows and handoff tooling for Telnyx Edge Compute functions

  • Maintainers - who maintains this repo and how to reach them

Plugins and Extensions

Install the Telnyx plugins you need to give your AI coding assistant Telnyx Agent Skills covering messaging, voice, numbers, AI, IoT, WebRTC, Twilio migration, account management (signup, MPP/x402 payments), and more. Plugins are split by product area so you only load the skills your project uses — see the "Which plugin do I need?" table. For direct Telnyx API access from your assistant, also add the hosted MCP server — see MCP.

Empowers agents to generate correct, production-ready code — and to manage their own accounts — without relying on pre-training or fragile doc retrieval.

Claude Code Plugin

Step 1. Add the Telnyx marketplace (one-time setup):

/plugin marketplace add team-telnyx/ai

Step 2. Install the plugins you need — pick one or more:

/plugin install telnyx-messaging@telnyx  # SMS / MMS
/plugin install telnyx-voice@telnyx      # Voice API (call control, AMD, recording, etc.)
/plugin install telnyx-whatsapp@telnyx   # WhatsApp Business API
/plugin install telnyx-email@telnyx      # Email API
/plugin install telnyx-tts@telnyx        # Text-to-speech
/plugin install telnyx-stt@telnyx        # Speech-to-text
/plugin install telnyx-verify@telnyx     # Phone verification / 2FA
/plugin install telnyx-numbers@telnyx    # Number management, 10DLC, porting
/plugin install telnyx-webrtc@telnyx     # WebRTC and client SDKs
/plugin install telnyx-ai@telnyx         # AI inference and assistants
/plugin install telnyx-platform@telnyx   # Account, fax, IoT, networking, SIP, storage, TeXML, OAuth, Twilio migration

Gemini CLI extension

 gemini extensions install https://github.com/team-telnyx/ai

OpenCode

Install the Telnyx plugin for OpenCode to add Telnyx as a model provider with automatic auth and a TUI for managing hosted models.

# Local (current project only)
opencode plugin @telnyx/opencode

# Global (all projects)
opencode plugin -g @telnyx/opencode

See plugins/opencode/README.md for full setup and configuration.

Cursor

[!NOTE] Note: Our Cursor Marketplace listing is pending.

In the meantime, install skills via the Skills CLI.

Add the Telnyx MCP server to your project's .cursor/mcp.json:

  {                                                         
    "mcpServers": {
      "telnyx": {
        "type": "http",
        "url": "https://api.telnyx.com/v2/mcp"
      }
    }
  }

Harnesses

Finalized Telnyx harness plugin repositories for OpenClaw and Hermes integrations:

OpenClaw

NameDescriptionLink
Voice CallTelnyx-first Voice Call provider plugin for OpenClaw realtime voice agentsRepository
Text-to-SpeechTelnyx TTS speech provider for OpenClaw — carrier-grade voice synthesisRepository
Speech-to-TextTelnyx STT provider for OpenClaw audio transcriptionRepository
EmbeddingsTelnyx embedding provider for OpenClaw memory searchRepository
IntelligenceTelnyx AI text-inference provider plugin for OpenClawRepository
SMS ChannelOpenClaw channel plugin for SMS/MMS via Telnyx Messaging APIRepository

Hermes

NameDescriptionLink
IntelligenceTelnyx AI text-inference provider plugin for HermesRepository
Text-to-SpeechTelnyx TTS speech-provider plugin for Hermes — WebSocket streaming, NaturalHD, and KokoroTTS voicesRepository
Speech-to-TextTelnyx STT transcription-provider plugin for Hermes — streaming speech recognitionRepository
SMSTelnyx SMS/MMS platform adapter for Hermes AgentRepository

Hermes voice-call support is in progress and will be added once finalized.

Agent Toolkit

Integrate Telnyx APIs with popular agent frameworks through function calling — available in Python and TypeScript.

Python

pip install telnyx-agent-toolkit
from telnyx_agent_toolkit.openai.toolkit import TelnyxAgentToolkit

toolkit = TelnyxAgentToolkit(
    api_key="KEY_...",
    configuration={
        "actions": {
            "messaging": {"send_sms": True},
            "numbers": {"search_phone_numbers": True, "buy_phone_number": True}
        }
    }
)

tools = toolkit.get_openai_tools()

Works with OpenAI's Agent SDK, LangChain, and CrewAI. See Python docs for full usage and examples.

TypeScript

npm install @telnyx/agent-toolkit
import { TelnyxAgentToolkit } from "@telnyx/agent-toolkit/langchain";

const toolkit = new TelnyxAgentToolkit(process.env.TELNYX_API_KEY!, {
  configuration: {
    actions: {
      messaging: { send_sms: true },
      numbers: { search_phone_numbers: true, buy_phone_number: true },
    },
  },
});

const tools = toolkit.getLangChainTools();

Works with LangChain and Vercel's AI SDK. See TypeScript docs for full usage.

Agent Skills

Install individual skills for your coding assistant via the Skills CLI:

npx skills add team-telnyx/ai --skill <SKILL> --agent <AGENT>

Skills cover two areas: building with Telnyx (messaging, voice, numbers, AI inference, WebRTC, Twilio migration, and more) and account management (programmatic signup, plus funding an account via MPP or x402 payments).

Skills are also published on telnyx.com for runtime discovery at /.well-known/agent-skills/index.json.

[!NOTE] See Skills for full install instructions and a comprehensive list of available skills

Agent CLI

Composite commands that reduce multi-step Telnyx workflows to a single command. Built for AI agents and developers who want to provision infrastructure without orchestrating multiple API calls.

telnyx-agent setup-sms        # Buy number + create messaging profile + assign
telnyx-agent setup-voice       # Create SIP connection + buy number + assign
telnyx-agent setup-ai          # Create AI assistant + buy number + wire together
telnyx-agent setup-porting     # Check portability + create porting order + submit
telnyx-agent status            # Account health overview

Every command supports --json for machine-readable output.

See Agent CLI

Model Context Protocol (MCP)

Telnyx hosts a remote MCP server at https://api.telnyx.com/v2/mcp.

To run a local Telnyx MCP server using npx:

npx -y @telnyx/mcp --api-key=YOUR_TELNYX_API_KEY

See MCP for more details about the generic API MCP proxy.

MCP Apps

tools/mcp-apps contains app-layer MCP servers with MCP Apps UI resources for focused Telnyx workflows. These are separate from the generic @telnyx/mcp proxy above.

Current apps:

  • Number Intelligence (tools/mcp-apps/apps/number-intelligence)
  • Usage & Cost Explorer (tools/mcp-apps/apps/usage-cost-explorer)
  • Voice Monitor (tools/mcp-apps/apps/voice-monitor)

From tools/mcp-apps, use npm install, npm run typecheck, npm run build, and npm test.

Guides

Curl-first operational guides for common Telnyx workflows — SMS messaging, voice call control, AI assistants, phone numbers, porting, verification, webhooks, 10DLC registration, WireGuard networking, MPP and x402 account payments, and Edge Compute handoff patterns.

See Guides for the full list.

Edge Compute

Use this repo for agent workflows against Telnyx Edge Compute: the Agent CLI ships edge-doctor (readiness checks), setup-edge-mcp, and setup-edge-webhook for wiring a deployed function into MCP and webhook flows — the Edge Compute guide walks through the full workflow, from auth to a live endpoint.

To create, deploy, and manage the functions themselves (secrets, bindings, lifecycle), use the telnyx-edge CLI from team-telnyx/edge-compute. For agent flows, prefer API-key auth (telnyx-edge auth api-key set <key>).

Maintainers

Maintained by the Telnyx AI‑FDE team: @aisling404, @Oliver-Zimmerman, @aaronjo-Telnyx, and @gbattistel (see CODEOWNERS). The fastest way to reach us is an issue; for security reports, see SECURITY.md.

License

MIT