Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ”— Aggregators
  3. Grok MCP
Grok MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 6:34:38 PM

Grok MCP

User RatingsBe the first to rate and review this MCP server!
View Repository51 GitHub StarsTotal stargazers on GitHub for the source repository (51 stars).Visit Website
grokvisionimage-generationvideo-generationweb-search

MCP server for xAI Grok API supporting chat, vision, image/video generation, web/X search, code execution, and file management.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet β€” we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself β€” its README, its docs, or a verified owner. We haven’t found those for merterbak/Grok-MCP, and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Tool Schemas (22) Directory Badge Claim listing AlternativesπŸ”— More in Aggregators

Overview

This MCP server interfaces with xAI's Grok API to provide agentic tool calling including web and X (Twitter) search, code execution, and multi-step reasoning. It supports image and video generation via Grok Imagine, vision analysis, and document file uploads for grounded chat. Stateful conversations and local chat history persistence are supported. Use this server when integrating Grok's multimodal AI capabilities into an MCP client.

Use cases

β€’Perform autonomous web and X (Twitter) searches with filters
β€’Generate and edit images and videos using Grok Imagine
β€’Analyze images with Grok vision models
β€’Execute Python code in a sandbox for task solving
β€’Upload and chat with documents using the Files API

Key features

β€’Agentic tool calling with multi-step reasoning
β€’Multiple Grok models including grok-4.5 and grok-4.3
β€’Image and video generation and editing
β€’Vision capabilities for image analysis
β€’Stateful conversations with server-side context
β€’Local persistent chat history as JSON files

Capabilities & Tool Schemas (22) ~338 tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server β€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Grok MCP.

chat

standard chat completion with optional persistent history and multi-agent support.

chat_with_vision

analyze local or remote images with a Grok vision model.

chat_with_files

chat grounded on previously uploaded documents.

stateful_chat

continue a server-side stored conversation via `response_id`.

retrieve_stateful_response

fetch a stored response by ID.

delete_stateful_response

delete a stored response by ID.

Documentation Overview

Grok-MCP

MCP server for xAI’s Grok API with Web/X search, vision, image/video generation and file support.

Features

  • Agentic Tool Calling: Web search, X search, code execution, and image generation with multi-step reasoning
  • Multiple Grok Models: Access to latest models such as grok-4.6, grok-4.5, grok-build-0.1 and more
  • Image and Video Generation: Create images and videos using Grok Imagine
  • Vision Capabilities: Analyze images with Grok's vision models
  • Files API: Upload, manage, and chat with documents
  • Stateful Conversations: Maintain conversation context as id across multiple requests
  • Local Chat History: Option to save persistent client side chat history as JSON files in chats/

Prerequisites

  • Python 3.11 or higher
  • xAI API key (Get one here)
  • Astral UV

Installation

  1. Clone the repository:
bash
git clone https://github.com/merterbak/Grok-MCP.git
cd Grok-MCP
  1. Create a venv environment:
bash
uv venv
source .venv/bin/activate # macOS/Linux or .venv\Scripts\activate on Windows
  1. Install dependencies:
bash
uv sync

Configuration

Claude Desktop Integration

Add this to your Claude Desktop configuration file:

config.json
{
  "mcpServers": {
    "grok": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/Grok-MCP",
        "run",
        "python",
        "main.py"
      ],
      "env": {
        "XAI_API_KEY": "your_api_key_here"
      }
    }
  }
}

Claude Code Integration

Run this command from inside the project directory:

Terminal
claude mcp add grok-mcp -e XAI_API_KEY=your_api_key_here -- uv run --directory /path/to/Grok-MCP python main.py

Or if you have a .env file with your key:

Terminal
 claude mcp add grok-mcp -- uv run --directory /path/to/Grok-MCP python main.py

Verify it's registered:

Terminal
claude mcp list

Filesystem MCP (Optional)

Claude Desktop can't send uploaded images in the chat to an MCP tool. The easiest way to give access to files directly from your computer is official Filesystem MCP server. After setting it up you’ll be able to just write the image’s file path (such as /Users/mert/Desktop/image.png) in chat and Claude can use it with any vision chat tool.

config.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/<your-username>/Desktop",
        "/Users/<your-username>/Downloads"
      ]
    }
  }
}


For stdio:

bash
uv run python main.py

Docker:

Terminal
docker compose up --build

Mcp Inspector:

bash
mcp dev main.py

Available Tools

Each tool has a full docstring in src/server.py with its arguments and return format. MCP client surfaces those directly, so this list is just a quick map of what's available.

Note: For using images and files, you must provide paths to chat. See Filesystem MCP (Optional) for setup.

Chat and reasoning

  • chat β€” standard chat completion with optional persistent history, multi-agent support, and a per request service_tier.
  • chat_with_vision β€” analyze local or remote images with a Grok vision model.
  • chat_with_files β€” chat grounded on previously uploaded documents.
  • stateful_chat β€” continue a server-side stored conversation via response_id.
  • retrieve_stateful_response β€” fetch a stored response by ID.
  • delete_stateful_response β€” delete a stored response by ID.

Agentic tools

  • web_search β€” autonomous web research with domain filters and citations.
  • x_search β€” autonomous search over X (Twitter) posts, with handle and date filters.
  • code_executor β€” solve tasks by running Python in a sandbox.
  • grok_agent β€” unified agent that mixes files, images, web search, X search, code execution, and server-side image generation. Generated images are written to images/.

Image and video

  • generate_image β€” create or edit images with Grok Imagine (multi-reference editing supported). Pass save=true to write the results to images/ instead of returning temporary URLs.
  • generate_video β€” text-to-video, image-to-video, or video editing with Grok Imagine.
  • extend_video β€” extend an existing generated video with a follow-up prompt.

Files

  • upload_file β€” upload a local document.
  • list_files β€” list uploaded files with sorting.
  • get_file β€” fetch file metadata by ID.
  • get_file_content β€” download file content as text.
  • delete_file β€” delete a file by ID.

Local chat history

  • list_chat_sessions β€” list saved sessions in chats/.
  • get_chat_history β€” get a session's full transcript.
  • clear_chat_history β€” delete a session's local history file.

Models

  • list_models β€” list all Grok language and image models with live pricing.

License

This project is open source and available under the MIT License.

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Aggregators View all alternatives
  • Tokenlab MCP Server logoTokenlab MCP Server

    TokenLab AI gateway MCP server for model and pricing discovery, OpenAI-compatible Chat Completions, and native Responses, Anthropic Messages, and Gemini inference. Catalog tools require no API key; inference tools use an optional TokenLab key.

    πŸ”— Aggregators3 views
    Compare vs Tokenlab MCP Server β†’
  • AllMCPs Server logoAllMCPs Server
    β˜… Featured

    The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

    πŸ”— Aggregators15 views
    Compare vs AllMCPs Server β†’
  • Openapi MCP Server logoOpenapi MCP Server

    Connect any HTTP/REST API server using an Open API spec (v3)

    πŸ”— Aggregators3 views
    Compare vs Openapi MCP Server β†’
  • S
    SandBase CLI

    Open-source CLI and MCP server for discovering and calling 2,000+ AI models and APIs through one consistent developer interface.

    πŸ”— Aggregators9 views
    Compare vs SandBase CLI β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
51
Stargazers on the source repository.
Last commit
2mo ago
Most recent push to the default branch.
Tools exposed
22
Callable tools this server registers over MCP.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Grok MCP

An xAI API key is required, which can be obtained from https://console.x.ai.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGrok MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/merterbak-grok-mcp?style=directory)](https://allmcps.com/mcp/merterbak-grok-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/merterbak-grok-mcp"><img src="https://allmcps.com/api/badge/merterbak-grok-mcp?style=directory" alt="Grok MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ”—Aggregators
PricingBring your own API key (usage-based cost)
More technical detailsExpand β–Ύ
AuthAPI key
LicenseMIT
ClientsClaude Desktop, Cline / VS Code
Last updatedAug 9, 2026
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars51
GitHub Star CountTotal stargazers on GitHub representing community popularity (51 stars).
Last commit2mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jul 8, 2026
51Quality signal: Good Β· 51/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools22/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ”— Aggregators β†’Alternatives to Grok MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code