Telegram MCP Server for AI Agents
Metricgram wraps the Telegram Bot API as a hosted MCP server, so your AI agent can read, post, moderate and administer your Telegram groups with scoped keys and no bot code to maintain.
- 70+ Telegram Bot API methods as MCP tools
- Works with Claude, ChatGPT, Cursor and Codex
- Every call locked to your own groups
- Analytics, members and subscribers in the same server
How it works
Add the bot and connect your groups
Add the Metricgram bot (or your own custom bot) to your Telegram groups as an admin. No servers, webhooks or polling to run.
Create a scoped API key
Generate an Elite API key and pick exactly what the agent may do, from read-only Telegram access to posting, moderation and chat settings.
Plug it into your AI client
Paste one config block into Claude, Cursor, Codex or any MCP client. Your agent now sees every allowed Telegram action as a tool.
One prompt, real Telegram actions
Your agent picks the right Bot API calls, Metricgram runs them against the right group and returns structured results.
You ask
Post this week's AMA announcement in Crypto Talk, pin it quietly, open an "AMA questions" topic and give me an invite link that expires on Friday.
The agent calls
- send_telegram_message(group_id: 42, text: "…", buttons: [{ url: "…" }])
- pin_telegram_message(group_id: 42, action: "pin", disable_notification: true)
- manage_forum_topic(group_id: 42, action: "create", name: "…")
- create_telegram_invite_link(group_id: 42, expire_date: "2026-10-23T23:59:00Z")
Connect any MCP client
Use the hosted endpoint with your API key. Claude Desktop users can bridge it with mcp-remote.
{
"mcpServers": {
"metricgram": {
"url": "https://metricgram.com/api/v1/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Tools your agent gets
Messages and media
send_telegram_message
send_telegram_media
send_telegram_poll
edit_telegram_message
delete_telegram_messages
forward_telegram_message
react_to_telegram_message
Pins and forum topics
pin_telegram_message
manage_forum_topic
createForumTopic
closeGeneralForumTopic
unpinAllForumTopicMessages
Moderation and join requests
ban_member
restrict_member
promote_member
handle_telegram_join_request
banChatSenderChat
setChatAdministratorCustomTitle
Chat settings and invite links
update_telegram_chat_settings
create_telegram_invite_link
revokeChatInviteLink
setChatPermissions
setChatStickerSet
Analytics and community data
analytics_overview
active_users
list_members
list_messages
gamification_rankings
get_subscriber_health
Any supported Bot API method
telegram_api_methods
telegram_bot_api
get_telegram_chat
get_telegram_chat_member
The Telegram Bot API, wrapped for AI agents
Typed tools plus a full Bot API gateway
Locked to your own groups
Scopes for every level of trust
Safe retries and clear errors
Context that raw bots do not have
Metricgram vs. Manual Management
| Metricgram | Manual | |
|---|---|---|
| Hosted MCP endpoint, no bot server to run | ||
| 70+ Telegram Bot API methods as tools | ||
| chat_id locked to your own groups | ||
| Per-scope API keys you can revoke | ||
| Idempotent retries for write tools | ||
| Analytics and member history for context | ||
| Live chat data, admins and permissions | ||
| Works with your own custom bot |
Frequently Asked Questions
What is a Telegram MCP server?
Which AI clients does it work with?
Does it cover the whole Telegram Bot API?
Can an agent post in groups I do not own?
Is this the Telegram user API (MTProto)?
Which plan includes the MCP server?
Can I limit what the agent is allowed to do?
Keep exploring
Find a practical guide, browse active communities or discover more ways to use Metricgram.
Guides
Blog
Read practical playbooks on growth, monetization, moderation, and Telegram community operations.
ExploreCommunity directory
Telegram Communities Directory
Browse active Telegram communities by category, language, and positioning.
ExploreSection hub
Solutions
See every page in this section side by side.
Explore