SuperAPI AI Directory

vk-mcp-server

Access the VK (VKontakte) social network API: users, walls, groups, friends, newsfeed, photos and community stats.

Open website

About this tool

Purpose

vk-mcp-server is a Model Context Protocol (MCP) server for connecting to the VK (VKontakte) social network API, letting AI assistants such as Claude interact with VK through a standardized interface.

Main capabilities

  • Provides 25 tools covering users, walls, communities, photos, stories, community messages, likes and statistics.
  • Community inbox: list unread conversations, read their contents and reply as the community — the assistant drafts, you confirm before sending.
  • Read and write as the community: with a community token and service key, the assistant can read walls, profiles and communities, and post, comment, publish stories and reply to messages as the community. Write operations are flagged so clients can ask first. Some tools (search, likes, statistics, editing) require a full user token, which VK no longer issues to new apps.
  • Structured output: every tool declares its output structure, so the model gets typed data rather than JSON it has to parse out of text.
  • Self-describing pagination: list results state the total number of matches and from which offset to continue, making it easy for the model to page through wall content.
  • Visual display: on hosts that support MCP Apps (Claude, Claude Desktop, VS Code Copilot, Goose), walls, communities and profiles render as cards — posts with photos and short video previews, communities with banners and member counts, profiles with avatars and follow information; behavior is consistent elsewhere.
  • Prompts: ready-made workflows — community summary, engagement report, audience snapshot, community search, community inbox.
  • Robustness: request timeouts, automatic backoff when VK rate-limits, and clear messages for captchas and HTTP failures.
  • Token transparency:--check indicates which type of token you hold and probes what it can actually do;--login goes through the VK ID flow to obtain a read token; every VK error comes with a fix rather than just an error code.
  • Tested: 140+ tests drive a real server through the MCP protocol.

How to use

Claude Desktop — one-click install

Download the latest .mcpb package 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, config file or terminal needed.

VS Code — one-click install

VS Code will prompt for the VK token and avoid writing to the config file. You can also install it from the terminal, or using npm install -g vk-mcp-server to install globally. It is also available in the official MCP Registry.

Get a 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, and check wall, photos, stories, messages and manage. Three clicks, no app, never expires, not tied to a browser or IP. It posts, comments and publishes stories as the community.

Once you add a service key alongside it, the assistant can also read walls. VK refuses wall reads with a community token (error 27). Set the service key in the VK app settings page as VK_SERVICE_KEY, and the server will fall back to the key for every read where the token is refused — it is never used for writes.

According to an October 2026 check against the live API, new app tokens cannot: edit or delete posts, upload wall photos, read statistics, like, use albums, search or use the feed. VK reserves these for full user tokens, which it no longer grants.

For public reads only, a service key alone is enough (as VK_SERVICE_KEY or VK_ACCESS_TOKEN), or log in to your own account.

Note:--login returns a VK ID token (vk2.a…), VK issues it for login rather than API. It can read public profile, wall and community information; posting, photos, friends, feed and statistics all return error 1051, regardless of which permissions are requested. The old flow that granted a full user token now rejects newly created apps.npx vk-mcp-server --check indicates which type of token you hold and its reachable scope.

Please use your own app, not an App ID from another source: the token becomes invalid along with the app that issued it, and error messages do not indicate the reason.

Configuration

In ~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or %APPDATA%\Claude\claude_desktop_config.json(Windows); or add it in the project's .mcp.json .

Rate Limiting

VK rate-limits user tokens to a few calls per second. When error 6 (too many requests) is returned, the server backs off and retries up to three times, so a short burst of tool calls will not fail directly.

Available Tools

Tools marked ✏️ change content on VK—they post, edit, delete or join as the access token holder. Each tool also carries MCP annotations (readOnlyHint、destructiveHint), so clients can auto-approve queries but will still ask before editing or deleting posts.

The model can only see the tools your token can reach. On startup the server asks VK which type of token it holds—community, user, VK ID or service key—and omits the tools VK would reject.vk_token_info explains the token type and, for each omitted tool, what is needed to enable it. When there is no token or VK cannot determine it, all tools are listed.

Community Messages

Requires a community token with the messages permission, and messages enabled in the community settings. VK allows a community to send only to people who have first messaged it or allowed its messages.

Community Events

VK rejects comments, likes and wall operations for community tokens, but sends them as events to listening communities. Call vk_events_listen once to enable the community's Long Poll and event types (without changing the API version if another bot is already reading) and begin receiving. VK does not retain history: you can only see what happens from that moment on, while the server is running. Deleting comments is still unavailable for community tokens.

Use Cases

  • Ask AI for information from Pavel Durov's VK profile.
  • Show the latest 5 posts from VK's official community.
  • Post "Hello World!" on your wall.
  • Get the list of communities you have joined.
  • Show your feed.

Limitations

  • Some tools require a full user token, which VK no longer issues to new apps; the VK ID token returned by--login supports only public reads.
  • Community tokens cannot comment, like, perform wall operations or delete comments; these must be received via community event listening.
  • Community messages can only be sent to people who have first messaged or allowed its messages.
  • Event listening has no history and only receives from the moment of the call.

Troubleshooting

The server identifies which of the three token types you hold (user, community or service) and probes what the token can actually reach, letting you know in advance instead of discovering it tool by tool. It never calls write methods.

The server turns these into hints explaining how to proceed, so the model can usually explain the fix.

Testing

Run the test suite; run tests with coverage.

The server wraps VK API v5.199. For detailed parameter documentation, see the VK API docs and the Model Context Protocol.

Security Notes

  • Never share your access token.
  • The offline permission provides a token that never expires.
  • Review permissions before authorizing.
  • A service token is recommended for production environments.