1
Add it to Claude Code
claude mcp add -e "BOT_TOKEN=${BOT_TOKEN}" aiogram-mcp -- python path/to/your/bot.pyRequired:
BOT_TOKENEnvironment Variables
Set these before running Aiogram MCP.
VariableDescriptionRequired
BOT_TOKENThe Telegram Bot API token provided by BotFatherYesAvailable Tools (8)
Once configured, Aiogram MCP gives your AI agent access to:
send_messageSend text with HTML/Markdown formattingchat_idtextsend_photoSend a photo by URL with optional captionchat_idphoto_urlcaptionforward_messageForward a message between chatschat_idfrom_chat_idmessage_iddelete_messageDelete a messagechat_idmessage_idpin_messagePin a message in a chatchat_idmessage_idsend_interactive_messageSend a message with inline keyboard buttonschat_idtextbuttonsedit_messageEdit text and/or keyboard of an existing messagechat_idmessage_idtextanswer_callback_queryRespond to a button press with a toastcallback_query_idtextTry It Out
After setup, try these prompts with your AI agent:
→Send a welcome message to the group chat with ID 123456789.
→Create an interactive menu for users to select their preferred support topic.
→Pin the latest announcement message in the main channel.
→Edit the previous message to update the status of the current task.
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Python 3.8+ with pip installed
BOT_TOKEN— The Telegram Bot API token provided by BotFather
Keep this setup from going cold
Save the docs, env vars, and workflow around Aiogram MCP in Conare so Claude Code, Codex, and Cursor remember it next time.