Rubika MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Rubika MCP read my unread Rubika messages and summarize them"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Rubika MCP (روبیکا)
یک سرور MCP برای پیامرسان روبیکا، تا دستیار هوش مصنوعی (Claude، Cursor، ChatGPT و …) بتواند پیام بخواند و بفرستد. دو حالت دارد:
حالت بات — Bot API v3 رسمی روبیکا: متن، فایل (آپلود سهمرحلهای)، ویرایش، حذف، دریافت پیامها. بات باید ادمین گروه/کانال باشد.
حالت وب (اکانت خودتان) — Rubika Web در یک پنجرهی Chrome محلی با پروفایل جدا باز میشود و با اکانت خودتان کار میکند. یک بار خودتان وارد میشوید (کد ورود و رمز دومرحلهای را فقط خودتان در همان پنجره میزنید) و ورود ذخیره میماند. 26 قابلیت از 26.
English summary below.
نصب در Claude Code / Claude Desktop / Cursor
{
"mcpServers": {
"rubika": {
"command": "npx",
"args": ["-y", "@nabuxai/rubika-mcp"],
"env": {
"NABU_MESSAGING_ENABLE_SEND": "1",
"RUBIKA_BOT_TOKEN": "…",
"RUBIKA_ALLOWED_CHAT_IDS": "…",
"NABU_BROWSER_ENABLE": "1",
"RUBIKA_WEB_ALLOWED_CHATS": "me"
}
}
}
}یا در Claude Code:
claude mcp add rubika -e NABU_BROWSER_ENABLE=1 -e RUBIKA_WEB_ALLOWED_CHATS=me -- npx -y @nabuxai/rubika-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: dibaMCP
شروع حالت وب
rubika_web_open— پنجره باز میشود.اگر وارد نیستید:
rubika_web_login_startبا شماره موبایل؛ بعد کد را خودتان در پنجره بزنید.rubika_web_list_chats،rubika_web_read_chat،rubika_web_send_messageو …
قابلیتهای حالت وب
قابلیت | ابزار | |
فهرست گفتگوها |
| ✅ |
خواندن پیامها |
| ✅ |
ارسال متن (و پاسخ) |
| ✅ |
ارسال عکس و فایل |
| ✅ |
ویرایش پیام |
| ✅ |
حذف پیام |
| ✅ |
هدایت (فوروارد) |
| ✅ |
سنجاق کردن |
| ✅ |
خواندهشده کردن |
| ✅ |
ارسال موقعیت |
| ✅ |
ارسال مخاطب |
| ✅ |
ارسال نظرسنجی |
| ✅ |
اطلاعات گفتگو |
| ✅ |
اعضا |
| ✅ |
جستجوی پیام |
| ✅ |
دانلود رسانه |
| ✅ |
پیامهای نخوانده |
| ✅ |
مخاطبان |
| ✅ |
ساخت گروه/کانال |
| ✅ |
تغییر نام/توضیح |
| ✅ |
لینک دعوت |
| ✅ |
عضویت |
| ✅ |
ترک گفتگو |
| ✅ |
افزودن عضو |
| ✅ |
حذف عضو |
| ✅ |
ادمین کردن |
| ✅ |
محدودیتها: Polls only in groups and channels (Rubika refuses them elsewhere). Members, admins and invite links only for groups/channels you administer. getInviteLink returns the existing link and never creates one. joinChat takes rubika.ir/joing/…, rubika.ir/joinc/… or a public channel @username. A contact is sent as a plain contact card.
قفلهای امنیتی
کار | چه لازم دارد |
خواندن | توکن بات، یا پنجرهی واردشده و |
نوشتن در گفتگو (ارسال، ویرایش، حذف، سنجاق، فوروارد…) |
|
تغییر اکانت (ساخت/عضویت/ترک گفتگو، اعضا، ادمین) | همهی موارد بالا و |
ارسال انبوه وجود ندارد: هر بار یک گفتگو، و حداکثر ۵ عضو در هر بار افزودن.
هشدار: حالت وب اکانت شخصی شما را خودکار میکند و ممکن است خلاف قوانین روبیکا باشد؛ استفادهی نادرست میتواند به محدود شدن اکانت برسد. هر کس به پوشهی پروفایل مرورگر (~/.nabuxai/iranian-messaging-profiles/rubika) دسترسی داشته باشد به اکانت شما دسترسی دارد. جزئیات در SECURITY.md.
English
An MCP server for Rubika. Bot mode — Rubika's official Bot API v3: text, files (three-step upload), edit, delete, updates. The bot must be an admin of a group or channel. Web mode drives Rubika 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 rubika_web_capabilities for the live list.
Install: npx -y @nabuxai/rubika-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 Rubika.
Available Tools
40 toolsrubika_bot_delete_messageRubika bot: deleteADestructiveIdempotent
Delete a message the bot sent. Cannot be undone. Needs confirm: true, the chat in RUBIKA_ALLOWED_CHAT_IDS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: chatId (required), confirm (required), messageId (required).
rubika_bot_edit_messageRubika bot: editAIdempotent
Replace the text of a message the bot sent. Needs confirm: true, the chat in RUBIKA_ALLOWED_CHAT_IDS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: text (required), chatId (required), confirm (required), messageId (required).
rubika_bot_get_chatRubika bot: chat infoCRead-onlyIdempotent
Type, title and username of a chat the bot can see.
Inputs: chatId (required).
rubika_bot_get_meRubika bot: who am IARead-onlyIdempotent
Check the bot token and return the bot id, username and name.
Inputs: no named parameters.
rubika_bot_get_updatesRubika bot: incomingBRead-only
Messages and events the bot received. Pass nextOffset as offset for newer ones. Marks earlier updates as delivered.
Inputs: limit, offset.
rubika_bot_infoRubika bot: setupARead-onlyIdempotent
Show what the Rubika bot integration supports and which env vars it needs.
Inputs: no named parameters.
rubika_bot_preview_messageRubika bot: previewBRead-onlyIdempotent
Check whether a text message would be sent, without sending.
Inputs: text (required), chatId (required).
rubika_bot_send_fileRubika bot: send fileA
Send ONE file from an https URL or a path inside NABU_MESSAGING_FILE_ROOT. Needs confirm: true, the chat in RUBIKA_ALLOWED_CHAT_IDS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: chatId (required), confirm (required), kind, caption, +2 more.
rubika_bot_send_messageRubika bot: send textA
Send ONE text message through the bot. No bulk sending. Needs confirm: true, the chat in RUBIKA_ALLOWED_CHAT_IDS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: text (required), chatId (required), confirm (required), replyToMessageId.
rubika_web_add_membersRubika (own account): add membersA
Add up to 5 users to a group or channel the user administers. Only add people who agreed to it. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in RUBIKA_WEB_ALLOWED_CHATS.
Inputs: chatId (required), confirm (required), userIds (required).
rubika_web_capabilitiesRubika (own account): capabilitiesCRead-onlyIdempotent
Which Rubika web operations are available here.
Inputs: no named parameters.
rubika_web_closeRubika (own account): closeA
Close the web app window. The sign-in stays saved.
Inputs: no named parameters.
rubika_web_create_chatRubika (own account): create group/channelA
Create one group or channel owned by the user. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in RUBIKA_WEB_ALLOWED_CHATS.
Inputs: type (required), title (required), confirm (required), about.
rubika_web_delete_messagesRubika (own account): deleteADestructiveIdempotent
Delete messages; forEveryone (default true) also removes them for the other side where allowed. Cannot be undone. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: chatId (required), confirm (required), messageIds (required), forEveryone.
rubika_web_download_mediaRubika (own account): download mediaA
Save one message's photo, video or file under NABU_MESSAGING_FILE_ROOT/downloads/ and return its path.
Inputs: chatId (required), messageId (required).
rubika_web_edit_messageRubika (own account): editAIdempotent
Replace the text or caption of one of the user's messages. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: text (required), chatId (required), confirm (required), messageId (required).
rubika_web_forward_messagesRubika (own account): forwardA
Forward up to 10 messages to another chat; the destination must be allowlisted. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: confirm (required), toChatId (required), fromChatId (required), messageIds (required).
rubika_web_get_chat_infoRubika (own account): chat detailsCRead-onlyIdempotent
Title, username, type, description, member count and the user's role.
Inputs: chatId (required).
rubika_web_get_contactsRubika (own account): contactsBRead-onlyIdempotent
The user's contacts (userId, name, username). Phone numbers are not returned.
Inputs: limit, query.
rubika_web_get_invite_linkRubika (own account): invite linkBRead-onlyIdempotent
Invite link of a group or channel the user administers.
Inputs: chatId (required).
rubika_web_get_membersRubika (own account): membersBRead-onlyIdempotent
Members of a group or channel the user can see (userId, name, username, role).
Inputs: chatId (required), limit, query.
rubika_web_get_unreadRubika (own account): unreadARead-onlyIdempotent
Chats with unread messages and their newest unread messages, without marking them read. Poll this to receive messages.
Inputs: limit.
rubika_web_join_chatRubika (own account): joinA
Join one group or channel by invite link or @username. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in RUBIKA_WEB_ALLOWED_CHATS.
Inputs: link (required), confirm (required).
rubika_web_leave_chatRubika (own account): leaveADestructive
Leave one group or channel. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in RUBIKA_WEB_ALLOWED_CHATS.
Inputs: chatId (required), confirm (required).
rubika_web_list_chatsRubika (own account): list chatsCRead-onlyIdempotent
Chats, groups and channels with chatId, title, username, unread count and whether the user can post.
Inputs: limit, query.
rubika_web_login_startRubika (own account): start sign-inA
Type the user's mobile number on the login page and continue. The verification code and any 2FA password must be typed by the user in the browser window; never ask for them in chat.
Inputs: phone (required).
rubika_web_mark_readRubika (own account): mark readAIdempotent
Mark everything in a chat as read for the user.
Inputs: chatId (required).
rubika_web_openRubika (own account): openA
Open Rubika Web in a visible Chrome window with a saved profile and report whether the user is signed in. Needs NABU_BROWSER_ENABLE=1; set NABU_BROWSER_PROXY (e.g. socks5://127.0.0.1:1088) when this machine has no Iranian IP.
Inputs: no named parameters.
rubika_web_pin_messageRubika (own account): pin/unpinAIdempotent
Pin a message, or unpin it with unpin: true. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: chatId (required), confirm (required), messageId (required), unpin.
rubika_web_read_chatRubika (own account): read chatARead-onlyIdempotent
Recent messages of one chat, newest first. Pass nextBeforeMessageId as beforeMessageId for older ones.
Inputs: chatId (required), limit, beforeMessageId.
rubika_web_remove_memberRubika (own account): remove memberADestructive
Remove (ban: true also blocks) one member. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in RUBIKA_WEB_ALLOWED_CHATS.
Inputs: chatId (required), userId (required), confirm (required), ban.
rubika_web_search_messagesRubika (own account): searchBRead-onlyIdempotent
Search messages by text in one chat (chatId) or across all chats.
Inputs: query (required), limit, chatId.
rubika_web_send_contactRubika (own account): send contactB
Send one contact card. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: phone (required), chatId (required), confirm (required), firstName (required), +1 more.
rubika_web_send_fileRubika (own account): send fileA
Send ONE file (up to 20 MB) from an https URL or a path inside NABU_MESSAGING_FILE_ROOT; images go as photos. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: chatId (required), confirm (required), caption, fileUrl, +1 more.
rubika_web_send_locationRubika (own account): send locationA
Send one location pin. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: chatId (required), confirm (required), latitude (required), longitude (required).
rubika_web_send_messageRubika (own account): send textA
Send ONE text message from the user's own account. No bulk sending. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: text (required), chatId (required), confirm (required), replyToMessageId.
rubika_web_send_pollRubika (own account): send pollA
Send one poll with 2-10 options. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.
Inputs: chatId (required), confirm (required), options (required), question (required), +2 more.
rubika_web_set_adminRubika (own account): admin rightsAIdempotent
Promote one member to admin (isAdmin: true) or demote them. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in RUBIKA_WEB_ALLOWED_CHATS.
Inputs: chatId (required), userId (required), confirm (required), isAdmin.
rubika_web_statusRubika (own account): sign-in statusARead-onlyIdempotent
Whether the web app is open and signed in, or which login step it waits on.
Inputs: no named parameters.
rubika_web_update_chatRubika (own account): rename/describeAIdempotent
Change the title and/or description of a group or channel the user administers. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in RUBIKA_WEB_ALLOWED_CHATS.
Inputs: chatId (required), confirm (required), about, title.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Most tools target distinct resources or actions, and the rubika_bot_ vs rubika_web_ prefixes plus detailed descriptions clarify whether an operation uses the bot API or the user's own account. However, parallel pairs such as bot/web send_message, edit_message, delete messages, and get_updates vs get_unread create some selection ambiguity.
All tool names use snake_case with consistent rubika_bot_ and rubika_web_ namespaces, and most follow a readable verb_noun pattern such as send_message, get_chat_info, and add_members. A few noun-only or irregular forms like rubika_bot_info, rubika_web_status, rubika_web_capabilities, and login_start are minor deviations.
40 tools is heavy for a messaging integration, even accounting for the split between bot API and web-account automation. The many granular web operations make the surface large enough to overwhelm tool selection rather than feeling well-scoped.
The web surface covers the core lifecycle: login/status, chats, messages, media, search, contacts, members, forwarding, pinning, and admin actions. Minor gaps remain around reactions, poll results, richer profile/chat settings, and explicit reply workflows, but core messaging workflows are covered.
Maintenance
Related MCP Connectors
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Group chat for people and AI agents: read and send messages, files, polls, notes and boards.
I send and manage WhatsApp Web messages through your linked session
Let AI assistants post to your Telegram chats, groups and channels. Not affiliated with Telegram.
Related MCP Servers
- FlicenseAqualityAmaintenanceEnables coding agents to browse chats, read and search messages, look up contacts, save received files, and send messages or files through a linked account.4572 npm-
- AlicenseNot gradedqualityBmaintenanceEnables AI clients such as Claude and Cursor to send messages and media through Iranian messaging services including Bale, Eitaa, Rubika, and Soroush Plus via MCP tools. Includes a Persian dashboard for managing bot tokens, MCP connection settings, logging, and security limits.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read and send messages on the Eitaa messenger, either through the Eitaayar bot API or by driving a locally signed-in web session. Supports chat listing, media and file sending, message management, contacts, groups, channels, and guarded write operations.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read and send messages, manage chats, share files and locations, search conversations, and perform account actions through the messaging platform using either the official Bot API or a locally signed-in web session.MIT