AcademyMCP serversDevelopment

Grok-MCP

Development and product teams that want to use Grok models, search and image tools from their MCP client.

  • Recommendedour rating
  • 53gitHub stars
  • MITlicence
  • 7 days agolast update
claude mcp add grok -e XAI_API_KEY=your_api_key_here -- uv --directory /path/to/Grok-MCP run python main.py
README.md

Loading the file...

What it does

An MCP server that connects an MCP client to the xAI Grok API. It supports agentic tool calling with web and X search and code execution, image and video generation, vision analysis of images, and a files API for chatting with documents. Conversations can keep context across requests, with optional local chat history saved as JSON.

Use cases

  1. 01Search the web and X from an MCP client
  2. 02Generate images or videos with Grok Imagine
  3. 03Upload a document and ask questions about it

Questions about
Grok-MCP.

What is Grok-MCP used for?

Development and product teams that want to use Grok models, search and image tools from their MCP client. An MCP server that connects an MCP client to the xAI Grok API. It supports agentic tool calling with web and X search and code execution, image and video generation, vision analysis of images, and a files API for chatting with documents. Conversations can keep context across requests, with optional local chat history saved as JSON.

How do I install Grok-MCP?

Run this in your terminal: claude mcp add grok -e XAI_API_KEY=your_api_key_here -- uv --directory /path/to/Grok-MCP run python main.py

Is Grok-MCP open source?

Yes. The code is on GitHub (merterbak/Grok-MCP) under the MIT licence.

Is Grok-MCP safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.