Adds MCP tools, resources, prompts, and event streaming to existing aiogram Telegram bots.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Aiogram MCP.
Connect your Telegram bot to AI agents via the Model Context Protocol.
aiogram-mcp turns any aiogram bot into an MCP server. AI clients like Claude Desktop can then send messages, read chat history, build interactive menus, and react to events in real time โ all through your existing bot, without rewriting a single handler.
Most Telegram MCP servers are thin wrappers with 3-5 tools. aiogram-mcp goes further:
outputSchema for programmatic parsingThe bot runs normally for Telegram users. The MCP server runs alongside it, giving AI agents access to the same bot via tools and resources.
Requires Python 3.10+ and aiogram 3.20+.
Add to your claude_desktop_config.json:
Now Claude can send messages, read history, create button menus, and react to events in your Telegram bot.
| Tool | Description |
|---|---|
send_message | Send text with HTML/Markdown formatting |
send_photo | Send a photo by URL with optional caption |
forward_message | Forward a message between chats |
delete_message | Delete a message |
pin_message | Pin a message in a chat |
| Tool | Description |
|---|---|
send_interactive_message | Send a message with inline keyboard buttons (callback or URL) |
edit_message | Edit text and/or keyboard of an existing message |
answer_callback_query | Respond to a button press with a toast or alert |
| Tool | Description |
|---|---|
get_bot_info | Get bot metadata (username, capabilities) |
get_chat_member_info | Get a user's role and profile in a chat |
get_user_profile_photos | Get a user's profile photos |
| Tool | Description |
|---|---|
get_chat_info | Get chat metadata (title, type, description) |
get_chat_members_count | Get number of members in a chat |
ban_user | Ban a user (permanent or temporary) |
unban_user | Unban a user |
set_chat_title | Change the chat title |
set_chat_description | Change the chat description |
| Tool | Description |
|---|---|
send_document | Send a file/document by URL with optional caption |
send_voice | Send a voice message by URL |
send_video | Send a video by URL with optional caption |
send_animation | Send a GIF/animation by URL |
send_audio | Send audio/music by URL with performer and title |
send_sticker | Send a sticker by file_id or URL |
send_video_note | Send a round video note by URL |
send_contact | Send a contact with phone number and name |
send_location | Send a geolocation pin |
send_poll | Create a poll with multiple options |
| Tool | Description |
|---|---|
subscribe_events | Subscribe to real-time events with chat/type filters |
unsubscribe_events | Remove a subscription |
| Tool | Description |
|---|---|
broadcast | Send a message to multiple chats (requires enable_broadcast=True) |
Read-only data that AI agents can access without calling tools:
| URI | Description |
|---|---|
telegram://bot/info | Bot username, ID, and capabilities |
telegram://config | Server name and allowed chat IDs |
telegram://chats | List of active chats with metadata |
telegram://chats/{chat_id}/history | Last 50 messages in a chat |
telegram://events/queue | Event queue with auto-incrementing IDs |
telegram://files/{file_id} | File metadata (size, path, unique ID) |
telegram://audit/log | Audit log of tool invocations (opt-in) |
Pre-built workflows that give AI agents structured context:
| Prompt | Arguments | What it does |
|---|---|---|
moderation_prompt | chat_id, user_id, reason | Fetches user info + message history, suggests warn/mute/ban |
announcement_prompt | topic, audience?, tone? | Drafts a formatted Telegram announcement |
user_report_prompt | chat_id, user_id | Compiles a full user activity report |
AI agents don't need to poll. The bot pushes events automatically:
The AI agent calls subscribe_events once, then receives push notifications whenever new events match its filters.
AI agents can build full interactive UIs in Telegram โ menus, confirmations, multi-step wizards:
The AI agent sends a message with buttons:
User taps a button โ event appears in the queue โ AI agent reacts:
The bot needs dp.callback_query.middleware(middleware) to capture button presses.
allowed_chat_ids โ AI can only interact with listed chats. Default: all chats.enable_broadcast โ broadcast tool is disabled by default as a safety measure.max_broadcast_recipients โ caps the number of chats in a single broadcast.Built-in token bucket rate limiter prevents Telegram 429 errors. All outgoing API calls are automatically paced.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/py2755-aiogram-mcp)<a href="https://allmcps.com/mcp/py2755-aiogram-mcp"><img src="https://allmcps.com/api/badge/py2755-aiogram-mcp?style=directory" alt="Aiogram MCP on AllMCPs" /></a>