VK MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Model Context Protocol (MCP) server for VK (VKontakte) social network API
English · Русский · Сайт (RU)
Enables AI assistants like Claude to interact with VK through a standardized interface.
---
Walls, communities and profiles on a host that supports MCP Apps. The
model gets the same structured data either way — this is what the person
sees.
---
Features
- **25 tools** across users, walls, communities, photos, stories, community
messages, likes and statistics
- **Your community's inbox**: list unread conversations, read them, and reply
as the community — the assistant drafts, you approve, it sends
- **Read and write as a community**: with a community token and a service key
together, the assistant reads walls, profiles and communities and posts,
comments, publishes stories and answers messages as your community. Writes are marked as such
so your client can ask first. Some tools (search, likes, statistics, editing)
need a full user token, which VK no longer issues to new apps — the
setup guide lists exactly what each token reaches
- **Structured output**: every tool declares an output schema, so the model gets
typed data instead of a JSON blob it has to parse out of text
- **Pagination that explains itself**: list results say how many matches exist
and which offset continues from here, so the model can page through a wall
instead of stopping at the first twenty posts
- **Things you can look at**: on hosts that support MCP Apps
— Claude, Claude Desktop, VS Code Copilot, Goose — walls, communities and
profiles render as cards: posts with their photos and clip previews,
communities with their banner and size, profiles with avatar and following.
Everywhere else it behaves exactly as before
- **Prompts**: ready-made workflows — community digest, engagement report,
audience snapshot, community search, community inbox
- **Resilient**: request timeouts, automatic backoff when VK rate-limits, and
clear messages for captchas and HTTP failures
- **Honest about tokens**: VK has three kinds and they differ enormously in
reach. --check names which one you hold and probes what it can actually do,
--login walks the VK ID flow for the reading kind, and every VK error
carries the fix rather than the code alone
- **Tested**: 140+ tests driving the real server over the MCP protocol
Quick Start
Claude Desktop — one click
Download the latest .mcpb bundle from the
releases page and
open it. It installs the server, asks for your VK token in a form field, and
stores it securely — no Node.js, no config files, no terminal.
VS Code — one click
VS Code prompts for your VK token and keeps it out of the config file. From a
terminal instead:
npm
Or install globally with npm install -g vk-mcp-server.
MCP Registry
Also available in the official MCP Registry:
Getting VK Access Token
**To let the assistant post, you need a community token.** Open a community you
manage → **Manage** → **API usage** → **Access tokens** → **Create token**,
ticking wall, photos, stories, messages and manage. Three clicks, no
app, never expires, tied to no browser or IP. It posts, comments and publishes
stories as the community.
**Add a service key next to it, and the assistant reads walls too.** VK refuses
a community token wall reads (error 27). Set the service key from your VK app's
settings page as VK_SERVICE_KEY, and the server makes every read the token is
refused with the key instead — writes never go to it:
What no token VK issues to a new app can do, checked against the live API in
October 2026: edit or delete posts, upload wall photos, read statistics, likes,
photo albums, search or the newsfeed. VK keeps those for full user tokens, which
it no longer grants.
For public reads alone, the service key on its own is enough (as
VK_SERVICE_KEY or VK_ACCESS_TOKEN), or sign in as yourself:
**Worth knowing before you spend an evening on it:** --login returns a VK ID
token (vk2.a…), which VK issues for signing in rather than for the API. It
reads public profiles, walls and community info; posting, photos, friends,