telegram-bot-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@telegram-bot-mcpSend a message to the general chat saying the deadline is extended."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
telegram-bot-mcp
A Model Context Protocol (MCP) server that exposes the Telegram Bot API as tools — letting Claude and other MCP clients send messages, photos, polls and more via a Telegram bot.
Built with FastMCP (Python). No external auth proxy required — OIDC/JWT authentication is built in.
Features
Tools:
get_me,list_chats,send_message,send_photo,send_document,send_location,send_poll,edit_message_text,delete_message,get_chat,get_chat_member_countThree auth modes: stdio (no auth), static Bearer token, full OIDC OAuth2 proxy (e.g. Authentik, Keycloak)
Transports: stdio (Claude Desktop) + Streamable HTTP (remote/K8s)
Multi-arch Docker image: linux/amd64 + linux/arm64
Quick Start
stdio (Claude Desktop / local)
pip install .
export TELEGRAM_BOT_TOKEN=your_token_here
python -m telegram_bot_mcpAdd to Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"telegram": {
"command": "python",
"args": ["-m", "telegram_bot_mcp"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_token_here"
}
}
}
}Streamable HTTP (remote)
export TELEGRAM_BOT_TOKEN=your_token_here
export AUTH_TOKEN=your_secret_bearer_token # optional: require auth
python -m telegram_bot_mcp --transport streamable-http --port 8000Connect from Claude Code:
claude mcp add telegram --transport http https://your-host:8000/mcp \
--header "Authorization: Bearer your_secret_bearer_token"OIDC OAuth2 (production)
Full OAuth2 flow — the server acts as an OIDC proxy. Users authenticate via your identity provider (Authentik, Keycloak, Auth0, etc.) and receive a session that lasts SESSION_LIFETIME_HOURS (default: 8h).
export TELEGRAM_BOT_TOKEN=your_token_here
export OIDC_DISCOVERY_URL=https://auth.example.com/application/o/my-app/.well-known/openid-configuration
export OIDC_CLIENT_ID=your_client_id
export OIDC_CLIENT_SECRET=your_client_secret
export BASE_URL=https://telegram-bot-mcp.example.com
python -m telegram_bot_mcp --transport streamable-http --port 8000Environment Variables
Variable | Required | Description |
| Yes | Bot token from @BotFather |
| No* | OIDC discovery URL — enables full OAuth2 proxy mode |
| No* | OAuth2 client ID |
| No* | OAuth2 client secret |
| No* | Public base URL of this server (required for OAuth2 redirects) |
| No | Stable key for signing session JWTs; random per startup if unset |
| No | Session duration in hours (default: |
| No | Static Bearer token (simpler alternative to OIDC) |
| No | Pre-configured chats: |
| No | Path for discovered-chat cache (default: |
* All four OIDC variables must be set together to enable OAuth2 mode.
Docker
docker run -p 8000:8000 \
-e TELEGRAM_BOT_TOKEN=your_token_here \
-v telegram-data:/data \
ghcr.io/your-org/telegram-bot-mcp:latestThe named volume (telegram-data:/data) persists discovered chat IDs across container restarts.
Or use Docker Compose:
cp .env.example .env # fill in your token
docker compose up -dLicense
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Multi-tenant Telegram gateway for AI agents — HTTP+stdio, 8 tools, MTProto User API
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Eweol/telegram-bot-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server