Skip to main content

mcp-server-max

README на русском

A Model Context Protocol (MCP) server for Max messenger (formerly VK Teams / ICQ).

Lets any MCP-compatible AI assistant (Claude, OpenClaw, etc.) send and read messages, manage chats, and interact with the Max platform API.

Features

Tool Description
send_message Send a message (text, markdown, HTML) with reply support
read_messages Read chat history (with time range and pagination)
list_chats List group chats the bot is a member of
get_chat_info Chat details — title, description, members count
get_chat_members List members of a chat
edit_message Edit an existing message
delete_message Delete a message
pin_message Pin a message in a chat
unpin_message Unpin the pinned message
get_pinned_message Get the currently pinned message
leave_chat Leave a group chat
get_bot_info Get information about the bot
send_typing Send typing indicator
get_updates Get recent events via long polling

Installation

pip install mcp-server-max

Or with uv:

uvx mcp-server-max

Configuration

Getting a bot token

  1. Open Max messenger
  2. Find @MasterBot (or go to Chat-bots section)
  3. Create a new bot and copy the token

Environment variables

Variable Required Description
MAX_BOT_TOKEN Yes Bot token from @MasterBot
MCP_LOG_LEVEL No Log level: DEBUG, INFO, WARNING, ERROR (default: INFO)

Usage

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "max": {
      "command": "mcp-server-max",
      "env": {
        "MAX_BOT_TOKEN": "your-bot-token"
      }
    }
  }
}

Claude Code

{
  "mcpServers": {
    "max": {
      "command": "mcp-server-max",
      "env": {
        "MAX_BOT_TOKEN": "your-bot-token"
      }
    }
  }
}

OpenClaw

Add to openclaw.json:

{
  "mcp": {
    "servers": {
      "max": {
        "command": "mcp-server-max",
        "env": {
          "MAX_BOT_TOKEN": "your-bot-token"
        }
      }
    }
  }
}

Direct (stdio)

export MAX_BOT_TOKEN=your-bot-token
mcp-server-max

Examples

Once connected, your AI assistant can:

  • Read messages: "What are the latest messages in the team chat?"
  • Send messages: "Send 'Meeting at 3pm' to the project chat"
  • Manage chats: "Who are the members of the dev chat?"
  • Pin messages: "Pin the last important message"

API

This server uses the Max Bot API (https://platform-api.max.ru).

Requirements

  • Python 3.10+
  • A Max bot token (from @MasterBot)

License

MIT

Links

Metadata

Release files for mcp-max-messenger 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-max-messenger 0.2.0
File Size Uploaded Provenance
mcp_max_messenger-0.2.0.tar.gz 7.5 kB Without provenance Details

Release files / mcp_max_messenger-0.2.0.tar.gz

Download URL mcp_max_messenger-0.2.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
87c9fa021b2c541369a9a78515d511a2a01a425032d484c2f21689ca185b3bac
BLAKE2b-256 checksum
How to use checksums
6bf80bfd5071e2ce5689da927458853700cf19b551f6dd437c4216aa0a5fc917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for mcp-max-messenger 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page