Connector guide6-minute read14 MCP tools7 languages

How to Connect VK (VKontakte) to Gemini via MCP

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

VK (VKontakte)

VK (VKontakte)

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

tools

14

Region

INTL

Category

Social Media

Authentication

API credentials

Required env vars

VK_COMMUNITY_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the VK (VKontakte) in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

Try asking

Example prompts for VK (VKontakte)

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

VK (VKontakte) · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → VK (VKontakte), paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

VK (VKontakte) + Gemini

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

VK_COMMUNITY_TOKEN

Step 1 — Get credentials

  1. Open your VK community and go to Manage → Advanced → API usage (Управление → Дополнительно → Работа с API), tab Access keys, and click Create key.
  2. Tick the rights the tools need: Community management, Community messages, Wall for comments and, if you need it, Photos. Confirm in the VK app or by SMS.
  3. Copy the key into VK_COMMUNITY_TOKEN and install the connector.
  4. For messages, also switch on Community messages under Manage → Messages.
  5. Check the setup with vk_get_token_permissions: it shows which rights the key carries.

You need admin rights in the community, and the community key takes about 3 minutes. Community keys do not expire; if one leaks, delete it and create a new one.

Two kinds of key: VK decides per method which key it accepts. The community key covers the community's details, community messages (conversations, history, replies) and comments as the community. Reading the wall, publishing posts, statistics, shop products and photo albums need the optional VK_USER_TOKEN:

  • a user access key of a community admin with the rights wall, stats, market, photos and offline, for publishing, statistics and the shop. VK issues user keys through VK ID apps (id.vk.ru), grants the wall and market rights to apps only on request to VK support, and keeps a key valid only with offline access, so this suits you if you already have such a key;
  • or the service key of your VK ID app, which is enough to read the walls, comments and photo albums of public communities.

Without VK_USER_TOKEN these tools stop before calling VK and say that the key is missing.

Asks before every post and message: vk_send_message reaches a person at once and cannot be recalled from here; vk_create_comment and vk_publish_post are public, and a post lands in every subscriber's feed. Before each one the AI shows you the exact text, the recipient or the community and, for a post, the attachments and the time, then waits for your yes. Posts can also be scheduled for later.

Switched off at install: vk_delete_post and vk_delete_comment. A deleted post cannot be restored. An administrator turns them on deliberately; they need an admin's user key and ask first as well.

Answering messages: the AI finds the conversations waiting for an answer with vk_list_conversations, reads one with vk_get_conversation_history and drafts a reply for you to approve. The community can only write to people who have written to it or allowed its messages.

Personal data: messages and comments are personal data of the people who wrote them. The AI reads only what your question needs and treats their text as information to report, never as instructions.

Common errors: VK reports errors by number. 5: the key is wrong or revoked. 15 or 7: the key lacks a right; check it with vk_get_token_permissions. 27: this method does not accept community keys; set VK_USER_TOKEN. 6, 9 and 29: rate limits; wait and try again. 901 and 902: the person has not allowed messages from the community. A community key allows about 20 requests a second, a user key 3.

The connector does not upload photos or videos (it can attach media that is already on VK), and it does not handle ads, Callback or Long Poll events, members and bans, polls, stories or personal messages.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart gemini.
  3. Run /mcp inside Gemini CLI (or gemini mcp list in your shell): anythingmcp should show as connected.
  4. Start prompting: Gemini CLI can now call the VK (VKontakte) tools.

Available tools

ToolWhat it does
vk_get_token_permissionsCheck the community token: which rights (права) it carries, for example manage, messages, photos, wall
vk_get_communityGet the community (сообщество): id, name, screen_name (short address), type, open or closed, description, members count, activity, site…
vk_list_conversationsList the community's conversations (диалоги сообщества) with users: peer id, unread count, whether it is unanswered, the last message, and…
vk_get_conversation_historyRead the messages of one conversation of the community, newest first: id, date (Unix time), sender, direction (out = 1 sent by the…
vk_send_messageSend a message from the community to a user who has written to it or allowed its messages
vk_create_commentComment on a post of the community's wall, as the community
vk_get_wall_postsRead posts of a community wall (стена), newest first: id, date (Unix time), text, type, pinned flag, counts of comments, likes, reposts and…
vk_get_post_commentsRead the comments under a post of a community wall: id, author id, date (Unix time), text, reply target, number of replies and likes, with…
vk_list_photo_albumsList the community's photo albums: id, title, description, number of photos, creation and update dates (Unix time) and the cover URL
vk_publish_postPublish a post on the community wall as the community, or schedule it with publish_date
vk_get_community_statsCommunity statistics per day, week or month: views, unique visitors, reach, reach among subscribers, mobile reach and activity (likes…
vk_list_market_productsList the products of the community shop (товары): id, title, price, availability, category, SKU, stock and date
vk_delete_postDelete a post from the community wall
vk_delete_commentDelete a comment under a post of the community wall

Example prompts

  • "Which messages to our community are still unanswered? Summarize each one and draft a reply."
  • "Reply to the latest message from Anna that her order ships on Friday. Show me the text before you send it."
  • "Show our community statistics for the last 7 days: reach, visitors and new subscribers."
  • "Write a post announcing our autumn sale, scheduled for tomorrow at 10:00, and show it to me before publishing."
  • "Which of our last 20 wall posts got the most comments and reposts?"

FAQ

Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.

Next steps

Was this guide helpful?

Your VK agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect VK (VKontakte) to ChatGPT via MCP

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

Connectors

How to Connect VK (VKontakte) to Claude via MCP

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

Connectors

How to Connect VK (VKontakte) to Cursor via MCP

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

Connectors

How to Connect VK (VKontakte) to Meta Muse via MCP

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

Connectors

VK to MCP: Community Messages, Comments and Wall Posts in any AI Agent

Manage a VK community from an AI agent: community info and token rights, community messages (conversations, history, replies), comments as the community, and with an admin user token the wall posts, publishing, statistics, shop products and photo albums.

Connectors

How to Connect Avito to Gemini via MCP

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.