
Grok Chat
io.github.codeChapPublished by GitHub account codeChapv0.2.0Updated Oct 24, 2026
MCP server for the xAI Grok API — chat, vision, search, and embeddings
The publisher's own server: Surface
Overview
Wraps the xAI Grok API so an assistant can run chat, vision, live web/X search, and embedding requests as MCP tools.
- What you can do
- Exposes five tools: chat for completions with multi-turn history, system prompts, JSON-schema structured output, temperature and model selection; chat_with_vision for analysing an image from an http or https URL; chat_with_search for responses grounded in live web and/or X search; embedding for text embeddings; and list_models for available Grok model IDs, cached for five minutes. Multi-agent model IDs are routed through the Responses API, where reasoning_effort controls how many research agents run in parallel.
- When to use it
- Useful when an assistant should call Grok models directly, including image analysis, search-grounded answers, or embeddings, without a separate integration. It suits users who already have xAI API access and want Grok available as a local MCP tool.
- Requirements
- Runs locally over stdio as a compiled Rust binary (Rust edition 2024 to build). Needs an xAI API key from console.x.ai, placed in a config file at ~/.config/mcp-server-grok-chat/config.toml, and network access to the xAI API. Desktop only; no web executable.
Installation
In SourceWeft
- Open Grok Chat in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-server-grok-chat
An MCP (Model Context Protocol) server for the xAI Grok API. Built in Rust, exposes chat completions, vision, web/X search, embeddings, and model listing as MCP tools.
Communicates via stdio using JSON-RPC 2.0, like all MCP servers.
Tools
chat
Send a chat completion request. Supports multi-turn conversations via a JSON message history array, system prompts, structured output via JSON schema, temperature control, model selection, and multi-agent research.
When using a multi-agent model (any model ID containing multi-agent), the request is automatically routed through the Responses API. The multi-agent model dispatches your query to multiple agents that research in parallel, then synthesizes their findings. Use reasoning_effort to control agent count. Call the list_models tool to see which multi-agent models are currently available.
Parameters:
chat_with_vision
Analyse an image using Grok's vision capabilities.
Parameters:
chat_with_search
Chat with Grok using live web search and/or X (Twitter) search. The model automatically searches the internet to ground its response.
Parameters:
embedding
Generate text embeddings.
Parameters:
list_models
List all available Grok models. No parameters. Results are cached for 5 minutes.
Prerequisites
- Rust (edition 2024)
- An xAI API key from console.x.ai
Setup
Create the config file:
Create ~/.config/mcp-server-grok-chat/config.toml:
Build
This produces target/release/grok-chat.
For development:
MCP Configuration
Add to your Claude Desktop config (~/.config/Claude/claude_desktop_config.json):
Project Structure
License
MIT
Source: README.md at commit c9fc6b1
Tools
0Version history
1- v0.2.0LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.
Other Grok integrations

Surface
me.grok.nova-otter-delta-cloudOfficial publisher
Remote MCP server that unwraps short links and returns a fetch-or-skip verdict before an assistant opens a pasted URL.
Grok Crypto Quant API
dev.fly.grok-backtest-apiOfficial publisher
Remote MCP server for pay-per-call crypto quant tools: survivorship-bias-free backtests, daily market signals, strategy optimization and token scam checks.

Server Track Lab
Published by GitHub account Surface-ops
Sends server-side conversion events to ad platforms (Meta live, Google and LinkedIn preview) and reports workspace event stats.

API Meter
Published by GitHub account Surface-ops
API Meter counts API requests per customer, endpoint and plan, and lets an assistant sign up an API, get ingest snippets and read or export usage.
three.ws for Grok
Published by GitHub account nirholas
Remote three.ws server that lets an assistant generate, rig, refine and inspect 3D models and avatars, and give them persistent agent personas.