Vexa
Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
MCP server for aiogram Telegram bots — 30 tools, 7 resources, 3 prompts, event streaming
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
BOT_TOKENค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"aiogram": {
"command": "uvx",
"args": [
"aiogram-mcp"
],
"env": {
"BOT_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add aiogram --env BOT_TOKEN='ใส่ค่าของคุณ' -- uvx aiogram-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"aiogram": {
"command": "uvx",
"args": [
"aiogram-mcp"
],
"env": {
"BOT_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"aiogram": {
"type": "stdio",
"command": "uvx",
"args": [
"aiogram-mcp"
],
"env": {
"BOT_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub Py2755 ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: BOT_TOKEN
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.7.1) เข้า registry 8 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Vexa, emailmd, MCP WhatsApp Cloud
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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 parsingTelegram users Your aiogram bot AI agent (Claude Desktop)
| | |
| send messages, tap buttons | |
|---|---|
| MCP server (stdio or SSE) | |
| <-------------------------> | |
| tools / resources / events | |
| bot replies, shows menus | send_message, edit, ban |
| <-------------------------- | <--------------------------- |
The bot runs normally for Telegram users. The MCP server runs alongside it, giving AI agents access to the same bot via tools and resources.
pip install aiogram-mcp
Requires Python 3.10+ and aiogram 3.20+.
import asyncio
from aiogram import Bot, Dispatcher from aiogram_mcp import AiogramMCP, EventManager, MCPMiddleware
bot = Bot(token="YOUR_BOT_TOKEN") dp = Dispatcher()
event_manager = EventManager() middleware = MCPMiddleware(event_manager=event_manager) dp.message.middleware(middleware) dp.callback_query.middleware(middleware) # for interactive buttons
mcp = AiogramMCP( bot=bot, dp=dp, name="my-bot", middleware=middleware, event_manager=event_manager, allowed_chat_ids=[123456789], # optional: restrict which chats AI can access )
async def main(): await mcp.run_alongside_bot(transport="stdio")
asyncio.run(main())
Add to your claude_desktop_config.json:
{
"mcpServers": { "my-telegram-bot": { "command": "python", "args": ["path/to/your/bot.py"], "env": { "BOT_TOKEN": "123456:ABC-DEF..." } } } }
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:
Telegram message arrives
→ MCPMiddleware captures it → EventManager stores it (type: "message", "command", or "callback_query") → MCP notification sent to subscribed clients → AI agent reads telegram://events/queue
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:
┌─────────────────────────┐
│ Confirm deployment? │ │ │ │ [✅ Yes] [❌ No] │ │ [📖 View docs] │ └─────────────────────────┘
User taps a button → event appears in the queue → AI agent reacts:
┌─────────────────────────┐
│ ✅ Deployed! │ │ │ │ [📋 View logs] │ └─────────────────────────┘
The bot needs dp.callback_query.middleware(middleware) to capture button presses.
mcp = AiogramMCP(
bot=bot, dp=dp, allowed_chat_ids=[123456789, -1001234567890], # restrict AI access enable_broadcast=True, # opt-in for broadcast tool max_broadcast_recipients=500, # safety limit )
mcp = AiogramMCP(
bot=bot, dp=dp, rate_limit=30, # requests/sec (default), 0 to disable )
Built-in token bucket rate limiter prevents Telegram 429 errors. All outgoing API calls are automatically paced.
mcp = AiogramMCP(
bot=bot, dp=dp, permission_level="messaging", # read + messaging tools only )
| Level | Access |
|---|---|
read | Bot info, chat info, user profiles |
messaging | Read + send messages, photos, media, interactive messages |
moderation | Messaging + delete, pin, ban, unban, chat settings |
admin | Full access including broadcast and event subscriptions |
mcp = AiogramMCP(
bot=bot, dp=dp, enable_audit=True, audit_log_size=1000, )
Every tool invocation is logged. Access via telegram://audit/log resource.
| Example | Transport | Features |
|---|---|---|
| basic_bot.py | stdio | Full setup with middleware, events, and callback tracking |
| incident_alert_bot.py | SSE | Broadcast-enabled ops bot for incident notifications |
git clone https://github.com/Py2755/aiogram-mcp.git
cd aiogram-mcp pip install -e ".[dev]"
pytest -v # ~228 tests ruff check aiogram_mcp tests examples mypy aiogram_mcp # strict mode
MIT. See LICENSE.