Skip to main content

MCP server for Max messenger (formerly VK Teams) — send/read messages, manage chats via Model Context Protocol

Project description

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 text message (plain, markdown, or HTML)
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
leave_chat Leave a group chat
get_bot_info Get information about the bot

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_max_messenger-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

File details

Details for the file mcp_max_messenger-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_max_messenger-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for mcp_max_messenger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f907f1ce2afbb66f90e2f9fdadccd1defe1552fffb711e9c46fd159d0d3ac15b
MD5 f65e5f2f36ee231d011e3edb6d00d9aa
BLAKE2b-256 7f6092711ef1e5e88e15a42c96fb573d3ceb8cf02adc0f7f2e3a0d0381bb906f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page