The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Vk MCP Server listing page.
Model Context Protocol (MCP) server for VK (VKontakte) social network API
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.
--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 aloneDownload 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 prompts for your VK token and keeps it out of the config file. From a terminal instead:
Or install globally with npm install -g vk-mcp-server.
Also available in the official MCP Registry:
For anything beyond reading public pages, you need a community token. Open
a community you manage → Manage → API usage → Access tokens →
Create token, ticking wall and photos. Three clicks, no app, never
expires, tied to no browser or IP — and it is the only kind VK still lets post,
edit or upload.
For public reads alone, either of these does:
…or the service key from any app page.
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,
feeds and statistics all answer error 1051, whatever scopes you request. The
older flow that granted full user tokens now refuses newly created apps
outright. npx vk-mcp-server --check names which kind you hold and what it
reaches.
Use your own app rather than an App ID from somewhere else: a token dies with the app that issued it, and the error gives no hint that this is what happened.
📖 Full setup guide — every step with the exact screens, what the scopes unlock, remote installs, and what each error means.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Add to your project's .mcp.json:
| Variable | Required | Default | Purpose |
|---|---|---|---|
VK_ACCESS_TOKEN | for tool calls | — | VK API access token. The server starts and lists its tools without one; calling a tool then returns an error saying so |
VK_TIMEOUT_MS | no | 30000 | Abort a VK request that hangs longer than this |
VK_API_BASE | no | https://api.vk.com/method | Point the server at an API mirror or proxy |
VK rate-limits user tokens to a few calls per second. When it answers with error 6 (too many requests), the server backs off and retries up to three times before giving up, so short bursts of tool calls do not fail outright.
| Command | What it does |
|---|---|
npx vk-mcp-server | Runs the MCP server (this is what your client calls) |
npx vk-mcp-server --login <APP_ID> | Gets a token through VK ID in your browser |
npx vk-mcp-server --check | Reports what your token is and which tools it can use |
npx vk-mcp-server --help | Lists the commands and environment variables |
Start with:
It identifies which of the three token types you have — user, community or service — and probes what that token can actually reach, so you find out up front instead of discovering it tool by tool. It never calls a write method.
Common cases:
| What you see | What it means |
|---|---|
error 8: Application is blocked | The VK app that issued the token is blocked. Every token from it fails this way, however valid the token looks. Create your own app and issue a fresh token. |
error 5: User authorization failed | The token expired or was revoked — run --login again. |
error 1051 or error 28 | A service token cannot call user methods. Use a user or community token. |
error 15: Access denied | The data is restricted — a private profile, or a community that hides its members. |
error 5 with subcode 1130 | VK bound the token to the IP that authorised it, and the server is on a different one. Common when the server runs on a VPS but you signed in from your laptop. Get the token on the machine that runs the server, or use a community token. |
Security Error when authorising | The old implicit OAuth flow. Use --login, which does the current VK ID flow. |
No VK token configured on every tool | The server is running but your client never passed VK_ACCESS_TOKEN to it. Check the env block in your client config — a token in your shell does not reach a server the client spawns itself. |
The server turns these into messages that say what to do, so the model can usually explain the fix without you reading this table.
Tools marked ✏️ change something on VK — they post, edit, delete or join on
behalf of whoever owns the access token. Each tool also carries MCP annotations
(readOnlyHint, destructiveHint), so a client can auto-approve lookups while
still asking before a post is edited or deleted.
| Tool | Description |
|---|---|
vk_users_get | Get user profiles by IDs or screen names |
vk_users_search | Search users by name, city, age and other criteria |
| Tool | Description |
|---|---|
vk_wall_get | Get posts from user/community wall |
vk_wall_get_by_id | Get specific posts by {owner_id}_{post_id} |
vk_wall_post | ✏️ Publish a new post |
vk_wall_edit | ✏️ Edit an existing post |
vk_wall_delete | ✏️ Delete a post |
vk_wall_create_comment | ✏️ Add comment to a post |
| Tool | Description |
|---|---|
vk_groups_get | Get user's communities list |
vk_groups_get_by_id | Get community info by ID |
vk_groups_search | Search communities by name and criteria |
vk_groups_get_members | Get community members |
vk_groups_join | ✏️ Join a community or request to join |
| Tool | Description |
|---|---|
vk_photos_get | Get photos from albums |
vk_photos_upload_wall | ✏️ Upload a photo and get an attachment string for vk_wall_post |
| Tool | Description |
|---|---|
vk_friends_get | Get user's friends list |
vk_newsfeed_get | Get user's newsfeed |
vk_likes_get | Get users who liked an object, with reaction counts |
vk_stats_get | Get community statistics (admin only) |
Prompts appear in your client as ready-made workflows — pick one, fill in the community, and the model knows which tools to use.
| Prompt | What it does |
|---|---|
community_digest | Reads recent posts and summarises themes, standouts and cadence |
engagement_report | Ranks posts by likes and by comments, then explains what the winners share |
audience_snapshot | Samples members and describes the audience by sex, city and activity |
publish_post | Drafts a post in the community's own tone, shows it for approval, publishes it |
find_communities | Searches communities on a topic and compares the candidates |
Once configured, you can ask Claude:
A real exchange — the numbers below came back from VK while this was written.
The model gets each of those numbers as typed fields rather than text it has to parse, because every tool declares an output schema.
See CHANGELOG.md.
Run the test suite:
Run tests with coverage:
This server wraps VK API v5.199. For detailed parameter documentation, see:
offline scope provides a non-expiring tokenContributions are welcome! Please read the Contributing Guidelines first.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MIT © 2026 bulatko
Made with ❤️ for the MCP ecosystem