Aiogram MCP Server

Most Telegram MCP servers are thin wrappers with 3-5 tools. `aiogram-mcp` goes further:

Local serverstdioPython

What is the Aiogram MCP MCP server?

If you already use Aiogram MCP, the aiogram mcp mcp server is the piece that lets your assistant work with it directly. Most Telegram MCP servers are thin wrappers with 3-5 tools. aiogram-mcp goes further:.

What the server does

  • 30 tools — — messaging, rich media, moderation, interactive keyboards, event subscriptions, broadcasting
  • 7 resources — — bot info, config, chat lists, message history, event queue, file metadata, audit log
  • 3 prompts — — ready-made moderation, announcement, and user report workflows
  • Structured output — — every tool returns typed Pydantic models with outputSchema for programmatic parsing
  • Real-time events — — the bot pushes Telegram events to AI clients via MCP notifications (no polling)
  • Interactive messages — — AI agents create inline keyboard menus, handle button presses, edit messages

Installation

aiogram-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • 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
  • 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
  • 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
  • get_chat_info — Get chat metadata (title, type, description)

Credentials and setup notes

Configuration is passed through the environment: BOT_TOKEN, YOUR_BOT_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Aiogram MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of team communication servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Aiogram MCP's toolset — send_message, send_photo, forward_message and 11 more — is a fair guide to whether it matches your workflow. It is maintained by py2755; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
send_messageSend text with HTML/Markdown formatting
send_photoSend a photo by URL with optional caption
forward_messageForward a message between chats
delete_messageDelete a message
pin_messagePin a message in a chat
send_interactive_messageSend a message with inline keyboard buttons (callback or URL)
edit_messageEdit text and/or keyboard of an existing message
answer_callback_queryRespond to a button press with a toast or alert
get_bot_infoGet bot metadata (username, capabilities)
get_chat_member_infoGet a user's role and profile in a chat
get_user_profile_photosGet a user's profile photos
get_chat_infoGet chat metadata (title, type, description)
get_chat_members_countGet number of members in a chat
ban_userBan a user (permanent or temporary)

How to install the Aiogram MCP MCP server

{
  "mcpServers": {
    "aiogram": {
      "command": "uvx",
      "args": ["aiogram-mcp"],
      "env": {
        "BOT_TOKEN": "your-value",
        "YOUR_BOT_TOKEN": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
BOT_TOKENCredential the server authenticates with.Yes
YOUR_BOT_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Aiogram MCP to send message.
  • Use Aiogram MCP to send photo.
  • Use Aiogram MCP to forward message.

Frequently asked questions

It connects Aiogram MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (send_message, send_photo, forward_message, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Aiogram MCP directly.