Summary
Let your AI work as a bot in MAX, the Russian messenger by VK: read incoming messages and events, send and edit messages and images, answer button presses, pin posts, and look up chats, channels, members and comments. Bot token.
Guided setup
Connect MAX Messenger to Claude, ChatGPT or Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect MAX Messenger in the guided setup, then add your MCP URL to your AI assistant. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for MAX Messenger
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → MAX Messenger, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
MAX Messenger
Let your AI work as a bot in MAX, the Russian messenger by VK: read incoming messages and events, send and edit messages and images, answer button presses, pin posts, and look up chats, channels, members and comments. Bot token.
Setup
Setting up takes about 5 minutes.
- Create a chat bot for your organisation on the MAX for business platform (https://business.max.ru/self, section Chat bots). MAX asks for a verified organisation profile there.
- Open the bot, then the three-dot menu, Settings, and copy the token. Paste it into
MAX_BOT_TOKEN. It is sent in theAuthorizationheader as it is, without the word Bearer; MAX no longer accepts the token as a query parameter. - Choose the API host in
MAX_API_URL.https://platform-api.max.ruhas a certificate every server trusts. MAX now recommendshttps://platform-api2.max.ru, whose certificate is issued by the Russian Trusted Sub CA (Ministry of Digital Development): it only works when the AnythingMCP server trusts that root certificate (on a self-hosted server, add it withNODE_EXTRA_CA_CERTS). On AnythingMCP Cloud use the first host. - Add the bot to the group chats and channels it should work in (as an administrator for reading history, pinning and deleting), and send it a message yourself so that a dialog exists.
Where to start: max_messenger_get_me checks the token. max_messenger_get_updates shows what people wrote and, above all, the chat ids: MAX has no supported way to list a bot's chats any more, so read chat_id from bot_added, bot_started and message_created events and keep it.
Chats: max_messenger_get_chat, max_messenger_get_bot_membership (the bot's rights), max_messenger_list_chat_members, max_messenger_list_chat_admins, max_messenger_get_pinned_message, max_messenger_pin_message, max_messenger_unpin_message, max_messenger_send_chat_action (typing, mark as read) and max_messenger_leave_chat (switched off at install).
Messages: max_messenger_send_message writes to a user (user_id) or to a chat or channel (chat_id); max_messenger_send_image sends a picture from a public URL. max_messenger_list_messages reads the history of a chat (the bot must be an administrator there) or single messages by id, max_messenger_get_message one message. max_messenger_edit_message changes a message of the bot, max_messenger_delete_message removes one (switched off at install). max_messenger_list_comments and max_messenger_post_comment work with comments under channel posts. max_messenger_get_video_details resolves a video attachment to playable links.
Buttons: attach an inline keyboard with attachments. A press arrives as a message_callback update; answer it with max_messenger_answer_callback.
Events: max_messenger_get_updates is long polling. Calling it without marker only reads; passing the marker of the previous answer continues from there and confirms everything before it. If the bot has a webhook (max_messenger_list_subscriptions), MAX delivers events to that address and polling stays empty. This connector does not create or remove webhooks.
Field notes
- Ids:
chat_idanduser_idare whole numbers (chat ids of groups and channels are negative); pass them as text so no digit is lost. A message id isbody.mid, a string starting withmid.. - Times are Unix timestamps in milliseconds.
- Some methods report a refusal inside an HTTP 200 answer as
success: falsewith acodesuch aschat.deniedornot.found; the connector turns that into an error. Other methods answer 4xx with the samecode. - Limits: 30 requests per second per bot, and 2 messages per second into the same dialog, chat or channel.
- Files: images go by URL. Other files, audio and video must first be uploaded to MAX in a two-step binary upload that this connector does not perform; an attachment that already exists on MAX can be sent again with its
token. - Since 9 September 2026 MAX restricts adding members to chats through the API; this connector has no tool for it.
Prerequisites: MAX_API_URL, MAX_BOT_TOKEN
Install the connector locally
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Open http://localhost:3000/connectors/store, pick MAX Messenger and paste in the env vars listed under Prerequisites.
Available tools
| Tool | What it does |
|---|---|
max_messenger_get_me | Read the bot behind the token: user_id, first_name, username, is_bot, description, avatar_url, last_activity_time (Unix time in… |
max_messenger_get_chat | Read one chat, channel or dialog: chat_id, type (dialog, chat, channel), status (active, removed, left, closed, suspended), title… |
max_messenger_get_bot_membership | Read the bot's own membership in a chat or channel: is_owner, is_admin, join_time, last_access_time and, for an admin, its permissions… |
max_messenger_list_chat_members | List the members of a group chat or channel: members[] with user_id, first_name, last_name, username, is_bot, is_owner, is_admin, join_time… |
max_messenger_list_chat_admins | List the administrators of a group chat or channel: members[] with user_id, name, username, is_owner, permissions and alias. The bot must… |
max_messenger_get_pinned_message | Read the message pinned in a chat or channel: message with sender, recipient, timestamp (Unix ms) and body (mid, text, attachments). An… |
max_messenger_pin_message | Pin a message in a chat or channel; it replaces the message pinned before. The bot needs the pin_message admin permission. Answers with… |
max_messenger_unpin_message | Remove the pinned message of a chat or channel (the message itself stays). The bot needs the pin_message admin permission. Answers with… |
max_messenger_send_chat_action | Show a short activity of the bot in a chat, such as "typing" before a longer answer, or mark the chat as read (mark_seen). Nothing is… |
max_messenger_list_messages | Read messages of a chat or channel, newest first, or specific messages by id: messages[] with sender (user_id, name, username), recipient… |
max_messenger_get_message | Read one message by its id: sender, recipient, timestamp (Unix ms), body with text and attachments (image, video, audio, file, sticker… |
max_messenger_send_message | Send a message as the bot to a user (user_id), or to a group chat or channel (chat_id): text of up to 4000 characters, optionally… |
max_messenger_send_image | Send an image from a public URL as the bot, with an optional caption, to a user (user_id) or to a chat or channel (chat_id). MAX downloads… |
max_messenger_edit_message | Change a message the bot sent: new text and, optionally, new attachments. Leaving attachments out keeps the current ones; an empty list… |
max_messenger_delete_message | Delete a message for everyone in a dialog, chat or channel. The bot can delete its own messages and, as an administrator with the delete… |
max_messenger_answer_callback | Answer the press of an inline keyboard button (a message_callback update): show the user a one-time notification, replace the message that… |
max_messenger_get_updates | Read the events MAX holds for the bot (long polling): updates[] with update_type (message_created, message_edited, message_removed… |
max_messenger_list_subscriptions | List the bot's webhook subscriptions: subscriptions[] with url, time (Unix ms when it was created) and update_types. While one exists, MAX… |
max_messenger_get_video_details | Read the details of a video attachment by its token (payload.token of a video attachment in a message): playback urls per quality… |
max_messenger_list_comments | Read the comments under a channel post, newest first: comments with sender, timestamp (Unix ms) and body (mid, text), plus the paging… |
max_messenger_post_comment | Write a comment as the bot under a channel post. Text only (up to 4000 characters, optional formatting); comments take no attachments.… |
max_messenger_leave_chat | Remove the bot from a group chat or channel. The bot stops receiving its messages and can only come back when a member adds it again.… |
Example prompts
- "What did people write to the bot today?"
- "Send a message to the chat -70012345678: the shop opens at 10:00 tomorrow."
- "Who are the administrators of our channel?"
- "Read the comments under our last channel post."
- "Pin the message with the opening hours in the customers chat."
Next steps
Was this guide helpful?