← Directory

merterbak/Grok-MCP

Open Source
• Updated Jun 4, 2026, 06:17 PM

Grok-MCP is an open-source Model Context Protocol (MCP) server that provides a standardized interface to xAI's Grok API.

Use Cases ▼
01

Adding Grok as an alternative AI assistant in MCP-enabled IDEs like Cursor or editors

02

Using Grok's image generation via MCP to create visuals directly in a chat interface

03

Processing uploaded images with Grok's vision in an MCP client to extract information

04

Enabling tool-calling with Grok to let it interact with databases, APIs, or other MCP servers

05

Setting up a local Grok-powered chatbot by connecting an MCP server to a front-end client

06

Combining Grok with other MCP servers for agentic workflows (e.g., web search, code execution)

What Problem It Solves ▼

MCP clients (such as Claude Desktop, Cursor IDE, or custom AI assistants) lack a built-in way to leverage xAI's Grok models. This server fills that gap by translating MCP requests into Grok API calls, enabling integration of Grok's advanced language, vision, and generation capabilities into any MCP-compatible application.

Key Features ▼
✓

Open-source and free

✓

Supports all key Grok API features (text, vision, image gen, tools)

✓

Works with any MCP-compatible client

✓

Easy to set up with pip or Docker

✓

Community-listed in awesome-mcp-servers

Overview

Grok-MCP is an open-source Model Context Protocol (MCP) server that provides a standardized interface to xAI's Grok API. It enables any MCP-compatible client—such as Claude Desktop, Cursor IDE, or custom agentic applications—to access Grok's powerful language models, image generation, and vision capabilities through a unified protocol. By implementing the MCP specification, this server allows Grok to be plugged into a growing ecosystem of AI tools and workflows seamlessly.

Full Description ▼

The server exposes several key features: agentic tool calling, which allows Grok to interact with external tools and APIs within MCP workflows; image generation support for on-the-fly creation of visuals using Grok's generative models; vision support that lets the model process and analyze images; and file support that enables handling of file uploads and data retrieval. This makes Grok-MCP a versatile bridge between xAI's cutting-edge models and any MCP client.

Deployment is straightforward: the server can be installed via pip from its source repository, run directly as a Python script, or deployed using Docker and docker-compose for containerized environments. Configuration is handled through environment variables, where users set their xAI API key, desired model (e.g., grok-3), and other runtime options. The project includes an example.env file to guide setup.

As an open-source project under active development, Grok-MCP welcomes community contributions and is listed in the awesome-mcp-servers collection, making it easily discoverable for developers building MCP-based AI integrations.

Pros & Cons

Pros

+

Open-source and free

+

Supports all key Grok API features (text, vision, image gen, tools)

+

Works with any MCP-compatible client

+

Easy to set up with pip or Docker

+

Community-listed in awesome-mcp-servers

Cons

−

Requires xAI API key and may incur usage costs

−

Relatively new with limited documentation

−

Dependent on Grok API availability and pricing

Similar Tools

mcp-server-google-gemini mcp-server-anthropic mcp-server-openai mcp-local-server mcp-hub

More in Developer Tools