grok-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GROK_MODEL | No | Default model for all tools. | grok-4.7 |
| XAI_API_KEY | Yes | xAI API key (get one from the xAI console). | |
| XAI_BASE_URL | No | Override for proxies or gateways. | https://api.x.ai/v1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools backed by Grok (xAI). Requires the XAI_API_KEY environment variable.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ask_grokB | Ask Grok (xAI) any question and get its answer. Useful for a second opinion, research or brainstorming. |
| grok_review_codeA | Have Grok review a code snippet for bugs, security issues, performance and readability. |
| grok_explain_errorA | Explain an error message or stack trace with Grok: likely root cause and step-by-step fix. |
| grok_summarizeC | Summarize long text (docs, logs, discussions) with Grok. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The specialized tools for code review, error explanation, and summarization are clearly distinct from each other. However, ask_grok is a general-purpose tool that overlaps with all three specialized tools, so an agent may sometimes be unsure whether to use the general or specialized variant.
All names are snake_case and include the provider name, but the pattern is mixed: ask_grok starts with the action verb, while grok_review_code, grok_explain_error, and grok_summarize use a provider prefix followed by the action. The naming remains readable but is not fully consistent.
Four tools is a well-scoped size for an LLM-provider wrapper. Each tool has a clear, non-redundant purpose and the count avoids both thinness and bloat.
The surface covers common Grok use cases: general Q&A, code review, error explanation, and summarization. Minor gaps exist around multi-turn conversation, custom system prompts, or file-based input, but the core workflows are represented.