Bale MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Bale MCP (بله)
یک سرور MCP برای پیامرسان بله، تا دستیار هوش مصنوعی (Claude، Cursor، ChatGPT و …) بتواند پیام بخواند و بفرستد. دو حالت دارد:
حالت بات — Bot API رسمی بله (سازگار با تلگرام): متن، فایل، ویرایش، حذف، دریافت پیامها، اطلاعات گفتگو.
حالت وب (اکانت خودتان) — Bale Web در یک پنجرهی Chrome محلی با پروفایل جدا باز میشود و با اکانت خودتان کار میکند. یک بار خودتان وارد میشوید (کد ورود و رمز دومرحلهای را فقط خودتان در همان پنجره میزنید) و ورود ذخیره میماند. 26 قابلیت از 26.
English summary below.
نصب در Claude Code / Claude Desktop / Cursor
{
"mcpServers": {
"bale": {
"command": "npx",
"args": ["-y", "@nabuxai/bale-mcp"],
"env": {
"NABU_MESSAGING_ENABLE_SEND": "1",
"BALE_BOT_TOKEN": "…",
"BALE_ALLOWED_CHAT_IDS": "…",
"NABU_BROWSER_ENABLE": "1",
"BALE_WEB_ALLOWED_CHATS": "me"
}
}
}
}یا در Claude Code:
claude mcp add bale -e NABU_BROWSER_ENABLE=1 -e BALE_WEB_ALLOWED_CHATS=me -- npx -y @nabuxai/bale-mcpهمهی متغیرها در .env.example توضیح داده شدهاند. توکن بات: @BotFather داخل بله. حالت وب به Chrome نصبشده نیاز دارد (یا CHROME_EXECUTABLE_PATH).
IP ایران: وباپ و API بیشتر پیامرسانهای ایرانی فقط از IP ایران جواب میدهند. اگر سیستم شما IP خارج دارد، از یک سرور داخل ایران تونل بزنید و NABU_BROWSER_PROXY=socks5://127.0.0.1:1088 بدهید:
ssh -N -D 127.0.0.1:1088 <server-in-iran>Related MCP server: Telegram MCP
شروع حالت وب
bale_web_open— پنجره باز میشود.اگر وارد نیستید:
bale_web_login_startبا شماره موبایل؛ بعد کد را خودتان در پنجره بزنید.bale_web_list_chats،bale_web_read_chat،bale_web_send_messageو …
قابلیتهای حالت وب
قابلیت | ابزار | |
فهرست گفتگوها |
| ✅ |
خواندن پیامها |
| ✅ |
ارسال متن (و پاسخ) |
| ✅ |
ارسال عکس و فایل |
| ✅ |
ویرایش پیام |
| ✅ |
حذف پیام |
| ✅ |
هدایت (فوروارد) |
| ✅ |
سنجاق کردن |
| ✅ |
خواندهشده کردن |
| ✅ |
ارسال موقعیت |
| ✅ |
ارسال مخاطب |
| ✅ |
ارسال نظرسنجی |
| ✅ |
اطلاعات گفتگو |
| ✅ |
اعضا |
| ✅ |
جستجوی پیام |
| ✅ |
دانلود رسانه |
| ✅ |
پیامهای نخوانده |
| ✅ |
مخاطبان |
| ✅ |
ساخت گروه/کانال |
| ✅ |
تغییر نام/توضیح |
| ✅ |
لینک دعوت |
| ✅ |
عضویت |
| ✅ |
ترک گفتگو |
| ✅ |
افزودن عضو |
| ✅ |
حذف عضو |
| ✅ |
ادمین کردن |
| ✅ |
محدودیتها: Reads (history, unread, search, media) use the app's own API without opening chats, so nothing is marked read; edit/delete/pin/download find a message among the last ~500 of a chat; media download up to 20 MB; removeMember always bans in Bale, ban:false lifts the ban right after.
قفلهای امنیتی
کار | چه لازم دارد |
خواندن | توکن بات، یا پنجرهی واردشده و |
نوشتن در گفتگو (ارسال، ویرایش، حذف، سنجاق، فوروارد…) |
|
تغییر اکانت (ساخت/عضویت/ترک گفتگو، اعضا، ادمین) | همهی موارد بالا و |
ارسال انبوه وجود ندارد: هر بار یک گفتگو، و حداکثر ۵ عضو در هر بار افزودن.
هشدار: حالت وب اکانت شخصی شما را خودکار میکند و ممکن است خلاف قوانین بله باشد؛ استفادهی نادرست میتواند به محدود شدن اکانت برسد. هر کس به پوشهی پروفایل مرورگر (~/.nabuxai/iranian-messaging-profiles/bale) دسترسی داشته باشد به اکانت شما دسترسی دارد. جزئیات در SECURITY.md.
English
An MCP server for Bale. Bot mode — Bale's official Telegram-compatible Bot API: text, files, edit, delete, updates, chat info. Web mode drives Bale Web in a local Chrome window with your own signed-in account (you type the sign-in code yourself in that window; the session is kept in a local profile). 26 of 26 web operations are available here; call bale_web_capabilities for the live list.
Install: npx -y @nabuxai/bale-mcp (see the JSON config above; every variable is documented in .env.example). Writes need confirm: true, an allowlisted chat and NABU_MESSAGING_ENABLE_SEND=1; account changes also need NABU_WEB_ALLOW_ACCOUNT_CHANGES=1. There is no bulk sending. Most Iranian messenger hosts only answer Iranian IPs; use NABU_BROWSER_PROXY with a SOCKS tunnel if needed.
Built on @nabuxai/iranian-messaging-core. Sister servers: eitaa-mcp, rubika-mcp, bale-mcp, soroushplus-mcp, gap-mcp.
MIT © NabuxAI. Community project; not affiliated with or endorsed by Bale.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Let AI assistants post to your Telegram chats, groups and channels. Not affiliated with Telegram.
LinkedIn, WhatsApp, Telegram and Instagram inboxes, profiles and outreach for your AI assistant.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Read, summarize and send your own WhatsApp messages from AI assistants (OAuth 2.1).
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a personal Telegram account for sending/reading messages, media, group management, and more via the MTProto API.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to read Telegram conversations, search messages, retrieve chat context, resolve recipients, and send messages with delivery status.1-
- FlicenseNot gradedqualityBmaintenanceConnects AI assistants to Telegram through the MTProto API, enabling them to list dialogs and messages, send, edit, forward, and delete messages, create groups, manage folders, and mute, archive, or leave chats.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to work with Telegram through explicitly selected user accounts and bots, supporting search, reading, sending, and message management with consent-based access.26 PyPI1Apache 2.0