grok-bot-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grok-bot-mcpWhat's my current usage?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
grok-bot-mcp
MCP server for Grok Bot — let any AI agent control your bots.
Create bots, read transcripts, send messages, search history, and check usage — all through the Model Context Protocol. Works with Claude Desktop, Cursor, Windsurf, Cline, VS Code Copilot, and any MCP-compatible client.
Companion to: gbu — Grok Bot Usage checker
What this does
grok-bot-mcp is an MCP server that bridges AI agents (Claude, Cursor, Copilot, etc.) to your locally running Grok Bot instance. Once installed, any MCP-compatible AI client can:
Create, list, search, and delete bots — without opening the Grok Bot app
Send messages to bots and get responses — directly from your AI editor
Read conversation transcripts — full history of any bot
Search across all bot messages — full-text search through local databases
Check usage and billing — weekly usage %, on-demand spend, reset times
List local databases — see all agent store.db files and their sizes
All through the standardized MCP tool interface. No custom API integration needed.
Install
One command (macOS / Linux):
gh repo clone Kargatharaakash/grok-bot-mcp && cd grok-bot-mcp && sh install.shThe install script automatically detects which AI agents you have installed and configures the MCP server for each one. Restart your AI agent after install.
What it configures:
Agent | Config path | Auto-configured |
Claude Desktop |
| Yes |
Cursor |
| Yes |
Windsurf |
| Yes |
Cline |
| Yes |
Continue |
| Yes |
VS Code (Copilot) |
| Manual |
Claude Code (CLI) |
| Yes |
Zed |
| Manual |
Tools
The MCP server exposes these tools to any connected AI agent:
Agent management
Tool | What it does | Required params |
| List all Grok Bot agents | None |
| Create a new bot |
|
| Delete a bot by ID |
|
| Search bots by name/description |
|
Messaging
Tool | What it does | Required params |
| Send a message to a bot and get response |
|
| Read a bot's conversation history |
|
Database
Tool | What it does | Required params |
| List all local agent databases | None |
| Read raw transcript entries from store.db |
|
| Full-text search across all bot transcripts |
|
Usage
Tool | What it does | Required params |
| Check weekly usage and on-demand spend | None |
How it works
AI Agent (Claude / Cursor / Copilot / Windsurf / etc.)
│
│ MCP Protocol (JSON-RPC over stdio)
▼
grok-bot-mcp server
│
├── Grok Bot Gateway ──► http://127.0.0.1:<port>/api/<command>
│ ├── listAgents, createAgent, sendPrompt...
│ └── 100+ gateway commands
│
├── Local SQLite DBs ──► ~/.grokbot/agents/<id>/store.db (read-only)
│ └── transcript_entries, kv, blobs
│
└── Cursor Usage API ─► api2.cursor.sh (ConnectRPC)
└── GetSandUsageStatus, GetCurrentPeriodUsageThe server discovers the Grok Bot gateway by decrypting gateway-descriptor.json (same macOS Keychain technique as gbu). For database queries, it reads the local SQLite files directly in read-only mode.
Manual config
If you prefer to configure manually, add this to your MCP config file:
{
"mcpServers": {
"grok-bot": {
"command": "node",
"args": ["~/.gbm/bin/grok-bot-mcp"]
}
}
}Requirements
Node.js 18+
Grok Bot app installed and running (for gateway and keychain access)
macOS (for gateway discovery and keychain decryption; database reads work on any OS if files exist)
Testing
Tests use mocks — no real Grok Bot calls, no network, no database writes:
node --test tests/*.test.mjsSecurity
Read-only database access —
PRAGMA query_only = 1on all SQLite queriesNo secrets in MCP responses — tokens are never returned to the AI agent
Gateway token decrypted at startup — never written to disk
Local only — stdio transport, no network server exposed
No telemetry — zero calls except to
127.0.0.1(gateway) andapi2.cursor.sh(usage)
Uninstall
rm -rf ~/.gbmThen remove the grok-bot entry from your AI agent's MCP config file.
Companion project
gbu — Grok Bot Usage checker CLI. Multi-account usage checking from the terminal. Same token management, same API, different interface (CLI vs MCP).
License
MIT
#GrokBot #MCP #ModelContextProtocol #Cursor #Claude #AI #DeveloperTools #Automation
⭐ Star if this let your AI agent control your bots.
Disclaimer
This project is an independent, educational tool created for learning and research purposes. It is not affiliated with, endorsed by, sponsored by, or associated with Cursor, Anysphere, Grok, Grok Bot, SpaceXAI, xAI, SpaceX, or any other company, product, or entity.
All product names, logos, trademarks, and registered trademarks mentioned in this repository are the property of their respective owners. Use of any names or logos is for identification and educational reference only, and does not imply endorsement, partnership, or affiliation.
This tool interacts with locally running applications and publicly accessible API endpoints using credentials you already possess. It does not bypass authentication, scrape protected content, or access any non-public system. You are solely responsible for compliance with the Terms of Service of any platform you use with this tool.
The authors and contributors of this project assume no liability for any damages, account actions, or consequences arising from the use of this software. Use at your own discretion.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Manage SRG+ hubs, channels, content, assets, users, and workspaces from any MCP-aware AI agent.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Phone, SMS & email for AI agents — one remote MCP endpoint, OAuth login, zero install.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kargatharaakash/grok-bot-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server