This MCP server for Telegram supports dual-mode operation, allowing quick bot integrations via the Bot API and full user-account access through MTProto.
From the registry: Telegram MCP server — dual-mode Bot API + MTProto, 6 composite tools.
Please install the `better-telegram-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Telegram credentials** — Either a bot token (Bot API mode) from @BotFather, or api_id/api_hash from my.telegram.org (MTProto user mode). (https://core.telegram.org)
Canonical MCP server config (stdio transport):
- command: `uvx`
- args: ["better-telegram-mcp"]
- optional environment variables:
- `TELEGRAM_BOT_TOKEN`: Telegram Bot API token (Bot mode). Set this OR API_ID/API_HASH. (example: `<your-bot-token>`)
- `TELEGRAM_API_ID`: Telegram API ID for MTProto user mode (example: `<your-telegram-api-id>`)
- `TELEGRAM_API_HASH`: Telegram API hash for MTProto user mode (example: `<your-telegram-api-hash>`)
Note: README points to docs/setup-manual.md for detailed env; Bot-API mode needs TELEGRAM_BOT_TOKEN, user MTProto mode needs API_ID + API_HASH and a web-based OTP auth flow.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.Official TypeScript library for the Telnyx API