# Grok Chat

> Grok Chat is an open-source MCP server for ai models and llm tooling. MCP server giving AI clients chat, vision, search and embeddings via the xAI Grok API. It is available on CLI, API, macOS, Linux and Windows.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, macOS, Linux, Windows
- **Repository:** https://github.com/codechap/mcp-server-grok-chat
- **MCP Registry name:** io.github.codeChap/grok-chat
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-18

## About

The README describes this as a Rust-built bridge that lets MCP-compatible clients call xAI's Grok models over stdio using JSON-RPC 2.0. Instead of wiring up the Grok HTTP API directly, a client gets named tools for chat completions, image analysis from a URL, grounded answers that pull in live web and X search, text embeddings, and a model listing.

The chat tool accepts multi-turn message history, system prompts, JSON-schema structured output and temperature settings. The README also notes that multi-agent model IDs are routed through the Responses API, with a reasoning_effort setting that changes how many agents run. A cached list_models call (five-minute cache) lets callers discover which model IDs are currently available.

It suits developers who already use Claude Desktop or another MCP client and want Grok available as a tool. Setup requires a Rust toolchain to build the binary and an xAI API key stored in a local config file.

## Features

- **Grounded web and X search:** Queries can be answered with live web search, X search, or both, chosen per request.
- **Vision analysis from URLs:** Sends an image URL and a text prompt to a vision-capable Grok model, with a detail level setting.
- **Structured JSON output:** Chat requests can include a JSON schema string to constrain the response format.
- **Multi-turn conversations:** Accepts a message history array and an optional system prompt for context.
- **Text embeddings:** Generates embeddings for a single string or an array of strings using a Grok embedding model.
- **Model discovery:** Lists available Grok model IDs, cached for five minutes, so clients can pick a model.

## Good for

- Give an MCP-enabled assistant access to Grok for general chat
- Ask questions answered with current web or X results
- Analyse images at a URL from inside an AI client
- Generate embeddings for search or retrieval pipelines through a tool call

## Tools

- `chat`: Send a chat completion request to Grok with optional history, system prompt, structured output, model selection and multi-agent research.
- `chat_with_vision`: Analyse an image given an image URL and text prompt.
- `chat_with_search`: Chat with Grok using live web and/or X search to ground responses.
- `embedding`: Generate text embeddings using a Grok embedding model.
- `list_models`: List available Grok models and their IDs, cached for 5 minutes.

## FAQ

### What do I need to run it?

The README lists Rust (edition 2024) for building, and an xAI API key from console.x.ai placed in a config.toml file.

### How does it communicate with clients?

It runs over stdio using JSON-RPC 2.0, as MCP servers do, and the README shows adding the built binary to Claude Desktop's MCP configuration.

### What license is it under?

The README lists the MIT license.

### Which model is used by default?

The chat, vision and search tools default to grok-4.3, and embedding defaults to grok-2-text-embedding.

### Is Grok Chat free?

Yes. Grok Chat is open source, so you can use and self-host it for free.

### What are the best alternatives to Grok Chat?

The closest alternatives to Grok Chat are Grok Image, Gpt Chat, MCP Aichat, Claude Chat and Crimson Crab MCP Template.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.

## Alternatives

- [Grok Image](https://ai-powered.com/mcp/grok-image): Grok Image is an open-source MCP server for design and media.
- [Gpt Chat](https://ai-powered.com/mcp/gpt-chat): Gpt Chat is an open-source MCP server for ai models and llm tooling.
- [MCP Aichat](https://ai-powered.com/mcp/mcp-aichat): MCP Aichat is an MCP server for ai models and llm tooling.
- [Claude Chat](https://ai-powered.com/mcp/claude-chat): Claude Chat is an open-source MCP server for ai models and llm tooling.
- [Crimson Crab MCP Template](https://ai-powered.com/mcp/crimson-crab-mcp-template): Crimson Crab MCP Template is an open-source MCP server for ai models and llm tooling.
- [Proxima](https://ai-powered.com/mcp/proxima): Proxima is a freemium MCP server for ai models and llm tooling.
- [Gemma AI MCP](https://ai-powered.com/mcp/gemma-ai-mcp): Gemma AI MCP is an open-source MCP server for ai models and llm tooling.
- [MCP](https://ai-powered.com/mcp/mcp-mwi57hue): MCP is a paid MCP server for design and media.

---
Source: https://ai-powered.com/mcp/grok-chat
