Grok2API MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GROK_MODEL | No | Grok model name | grok-3 |
| GROK_API_KEY | Yes | API key for authentication | |
| GROK_API_URL | Yes | Your grok2api endpoint (e.g. http://your-server:8000/v1) | |
| GROK_MAX_RETRIES | No | Max retry attempts | 2 |
| GROK_BACKOFF_BASE_MS | No | Base backoff delay for retries (ms) | 800 |
| GROK_READ_TIMEOUT_MS | No | Axios timeout (ms) | Same as request timeout |
| GROK_REQUEST_TIMEOUT_MS | No | Request timeout (ms) | 60000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| grok_web_searchB | Search the web or Twitter(X) via Grok for real-time information and up-to-date events, with structured result and source URLs. |
| grok_statsA | Return runtime call counters for this MCP process (tool calls, retries, error code distribution). |
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 2 tools
The two tools target entirely different concerns: live web/Twitter search versus internal runtime diagnostics. There is no plausible way an agent could confuse a search call with a stats call.
Both tools follow the same predictable `grok_<noun>` snake_case pattern with a shared server prefix. Nothing deviates from the convention.
Two tools is on the thin side for a server that advertises itself as a Grok API gateway; a diagnostics counter tool sitting alongside a single functional tool feels sparse. The count isn't wrong per se, but the surface feels under-built.
The only functional capability exposed is web/X search; there is no direct Grok chat/completion tool, no page-fetch or URL-content retrieval, and no configuration or model-selection operation. An agent hoping to use Grok for anything beyond search hits a dead end.