Grok MCP Server

MCP server for the xAI Grok API — chat, vision, search, and embeddings

Local serverstdio

What is the Grok MCP Server?

MCP server for the xAI Grok API — chat, vision, search, and embeddings

What the server does

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.

Credentials and setup notes

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
chatSend a chat completion request to Grok with optional multi-turn history, system prompt, structured output (JSON schema), model selection, and multi-agent resear
chat_with_vision
chat_with_search
embeddingGenerate text embeddings using Grok's embedding model
list_models
promptstring
modelstring
system_promptstring
messagesstring
temperaturefloat
max_tokensinteger
response_schemastring
reasoning_effortstring
image_urlstring
detailstring
search_typestring

How to install the Grok MCP Server

{
  "mcpServers": {
    "grok-chat": {
      "command": "/path/to/grok-chat"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

Example prompts to try

  • “Use Grok to chat.”
  • “Use Grok to chat with vision.”
  • “Use Grok to chat with search.”

Frequently asked questions

MCP server for the xAI Grok API — chat, vision, search, and embeddings Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.