grok-api-mcp
Click on "Deploy 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-api-mcphow do I implement function calling with grok-3?"
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-api-mcp
MCP server that provides xAI/Grok API documentation to AI assistants. Includes 75 bundled documentation files covering all xAI API features, models, and endpoints.
Features
Bundled documentation - 75 markdown files with complete xAI API coverage
Live fetch - Pull fresh docs from docs.x.ai when needed
Semantic search - Find relevant documentation by keyword
API reference - 44 endpoints across 12 categories
Model reference - 12 Grok models with specs and pricing
Related MCP server: API Docs MCP Server
Installation
npm install
npm run buildUsage
With Claude Desktop
Add to your Claude Desktop configuration (~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"grok-api-docs": {
"command": "node",
"args": ["/path/to/grok-api-mcp/dist/index.js"]
}
}
}With Claude Code
Add to your Claude Code MCP settings:
{
"mcpServers": {
"grok-api-docs": {
"command": "node",
"args": ["/path/to/grok-api-mcp/dist/index.js"]
}
}
}Standalone
npm startAvailable Tools
Tool | Description |
| Search bundled documentation for API features, models, and guides |
| Fetch fresh documentation from docs.x.ai |
| List all 44 API endpoints, optionally filtered by category |
| List all 13 Grok models with context lengths and capabilities |
search_docs
Search the bundled documentation using keywords.
query: "function calling"get_doc_page
Fetch a specific documentation page from docs.x.ai.
path: "guides/function-calling"list_api_endpoints
List API endpoints. Filter by category: chat, images, videos, voice, models, files, batch, collections, api-keys, billing, team, audit.
category: "collections" # optionallist_models
List all available Grok models with their specifications.
API Coverage
Endpoints (44 total)
Category | Count | API |
Chat | 4 | Inference |
Images | 2 | Inference |
Videos | 2 | Inference |
Voice | 1 | Inference |
Models | 3 | Inference |
Files | 5 | Inference |
Batch | 7 | Inference |
Collections | 9 | Management |
API Keys | 4 | Management |
Billing | 3 | Management |
Team | 3 | Management |
Audit | 1 | Management |
Models (12 total)
Language models:
grok-4-1-fast-reasoning, grok-4-1-fast-non-reasoning
grok-4-fast-reasoning, grok-4-fast-non-reasoning
grok-code-fast-1, grok-4-0709
grok-3, grok-3-mini, grok-2-vision-1212
Image generation:
grok-imagine-image, grok-2-image-1212
Video generation:
grok-imagine-video
Documentation Topics
Chat completions and Responses API
Function calling and tool use
Built-in tools (web search, X search, code execution)
Collections (RAG/embeddings)
Voice API (real-time WebSocket)
Batch API
Image and video generation
Streaming and structured outputs
Error handling and rate limits
SDK guides (Python, TypeScript)
Development
npm run build # Compile TypeScript + copy data files
npm run start # Run the server
npm run dev # Watch mode for developmentAdding Documentation
Add
.mdfile tosrc/data/Run
npm run buildThe file is automatically discoverable by
search_docs
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for agentverse documentation, generated by doc2mcp.
MCP server for accessing curated awesome list documentation
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to access up-to-date documentation for Python libraries like LangChain, LlamaIndex, and OpenAI through dynamic fetching from official sources.1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that crawls API documentation websites and exposes their content to AI models, enabling them to search, browse, and reference API specifications.1MIT
- AlicenseAqualityDmaintenanceAn MCP server that serves documentation and enables AI-powered search, Q\&A, and document analysis for developer tools and guides.54MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools to fetch live, version-accurate documentation, changelogs, examples, and method signatures for npm and PyPI packages, preventing AI coding agents from hallucinating stale APIs.5 npmISC