mcp-max-messenger
Click on "Install 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., "@mcp-max-messengerSend a message to chat 123456789: 'The meeting starts in 10 minutes'"
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.
mcp-max-messenger
The first MCP server for MAX Messenger β Russia's national messenger by VK (75M+ users).
Connect AI clients (Claude Desktop, Cursor, n8n, and any MCP-compatible app) to MAX: send and read messages, manage chats and members, send media, handle button presses, format with HTML/Markdown β all through the open Model Context Protocol standard.
21 tools with full coverage of MAX Bot API.
Why MAX?
π·πΊ National messenger mandated for pre-installation on all smartphones in Russia (September 2025)
π± 75M+ registered users
π’ Recommended by the Ministry of Digital Development for government agencies and large enterprises
π€ Full Bot API with official SDKs: TypeScript, Python, Go, Java, PHP
Related MCP server: time-messenger-mcp-server
Quick Start
Prerequisites
Node.js 18+
A MAX bot token (create a bot at max.ru)
Claude Desktop / Cursor (stdio mode)
Add to your Claude Desktop config:
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"max-messenger": {
"command": "npx",
"args": ["-y", "@woyax/mcp-max-messenger"],
"env": {
"MAX_TOKEN": "YOUR_BOT_TOKEN"
}
}
}
}Restart Claude Desktop. The MAX tools will appear automatically.
Remote / Hosted mode (HTTP)
MAX_TOKEN=YOUR_BOT_TOKEN MCP_TRANSPORT=http MCP_PORT=3000 npx @woyax/mcp-max-messengerConnect any MCP client to http://your-server:3000/mcp.
Available Tools (21)
Messages
Tool | Description |
| Read messages from a chat (by chat_id or message_ids) |
| Send a message with text, HTML/Markdown, inline keyboard, media attachments |
| Edit message text and attachments |
| Delete a message |
| Pin a message in a chat |
| Unpin the currently pinned message |
Media
Tool | Description |
| Upload and send photo, video, audio, or file by URL |
| Show typing indicator, "sending photo/video/audio/file", mark as read |
Chats
Tool | Description |
| Bot info: name, ID, username, description |
| List all group chats the bot participates in |
| Full chat details: participants, pinned message, owner |
| Rename chat, change description or icon |
Members
Tool | Description |
| List chat members with roles |
| List chat administrators with permissions |
| Grant admin rights to a member |
| Revoke admin rights |
| Add users to a group chat |
| Remove a user from a group chat |
Events
Tool | Description |
| Incoming events: messages, button presses, new dialogs (long polling) |
| Respond to inline button press: show notification or update message |
Buttons (via send_message attachments)
5 button types supported: callback, link, message, request_contact, request_geo_location.
Usage Examples
Once connected to Claude Desktop, use natural language:
"Send a message to chat 123456789: 'The meeting starts in 10 minutes'"
"Send an approval request with Approve/Reject buttons to the team chat"
"Show me the last 10 messages from the announcements chat"
"Send this photo to the chat: https://example.com/image.jpg"
"Who are the members of the sales group? Make Alex an admin."
"Check for new incoming messages and button presses"
Configuration
Environment Variables
Variable | Required | Default | Description |
| β | β | Your MAX bot token |
| β |
| Transport: |
| β |
| Port for HTTP mode |
Command-line Flags
# Local stdio mode (default)
npx @woyax/mcp-max-messenger
# Remote HTTP mode
npx @woyax/mcp-max-messenger --transport http --port 3000Architecture
Two independent layers β tools work identically in both modes:
src/
βββ core/ # Business logic β shared between modes
β βββ max-client.ts # MAX API HTTP client
β βββ types.ts # TypeScript types for MAX API
β βββ tools/
β βββ bot.ts # get_bot_info
β βββ chats.ts # get_chats, get_chat, edit_chat, send_action
β βββ messages.ts # send/get/edit/delete/pin/unpin, send_media
β βββ members.ts # get_chat_members, get_admins, set/remove_admin, add/remove_members
β βββ updates.ts # get_updates, answer_callback
βββ transports/ # Transport layer β selected at runtime
β βββ stdio.ts # Local mode (Claude Desktop, Cursor)
β βββ http.ts # Remote mode (Streamable HTTP)
βββ index.ts # Entry point: transport selectionMAX API Notes
Authorization: Token passed as
Authorization: <token>β noBearerprefixBase URL:
https://platform-api.max.ruRate limit: 30 requests/second
Group chats:
GET /chatsreturns group chats onlyPersonal dialogs: Accessible via
get_updatesβ use the returnedchat_idwith all standard toolsMedia upload: Two-step process (upload β send). Audio/video tokens come from the upload step, not the file transfer
HTTP transport: Uses Streamable HTTP (SSE deprecated since MCP SDK 1.10.0)
Known MAX API Issues
remove_adminmay returnsuccess: truewithout actually revoking rights β confirmed bug on MAX sideopen_appbutton type returns "Field 'webApp' cannot be null" β MAX API bugadd_membersmay fail withadd.participant.privacyif the user has privacy mode enabled
Roadmap
HTTP mode testing on VPS with n8n integration
Hosted MCP service (connect by URL, no local install)
Webhook support for real-time event handling
answer_callbacktesting via n8n webhook workflow
Links
Author & Support
Built by Oleg Alekseev β ERP/AI integration architect.
π§ woyaxnini@gmail.com Β· woyax@yandex.com
π¬ MAX: max.ru/id503610654564_biz
Need help integrating AI agents with your ERP, CRM, or MAX? Custom MCP servers, n8n workflows, AI automation β contact me.
License
MIT + Commons Clause Β© Oleg Alekseev
Free to use for personal and corporate purposes. Selling as a hosted service requires author's permission. See LICENSE for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server for communication service connectors that currently provides multi-account Telegram integration with granular tool access and security controls. It allows AI models to manage messages, chats, and media across various accounts through a flexible, extensible routing architecture.Last updated1
- AlicenseAqualityAmaintenanceMCP server for T-Bank's Time Messenger (Mattermost-based) that enables AI assistants to read and send messages, manage threads, search channels and users, and track unread messages.Last updated22334MIT
- Alicense-qualityDmaintenanceA Model Context Protocol server for Max messenger that lets AI assistants send and read messages, manage chats, and interact with the Max platform API.Last updatedMIT
- Alicense-qualityCmaintenanceMCP server that connects AI agents to WhatsApp using the multi-device API, enabling messaging, group management, and more as a regular user.Last updated7MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
MCP server for Gainium β manage trading bots, deals, and balances via AI assistants
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/woyaxnini/mcp-max-messenger'
If you have feedback or need assistance with the MCP directory API, please join our Discord server