grok-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grok-mcpreview the code in src/utils.ts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
grok-mcp
把本机 Grok Build 的 grok-bridge.mjs 暴露为 MCP stdio server,任意支持 MCP 的 code agent(Claude Code / OpenCode / …)可调用。
MCP client
│ stdio
▼
grok-mcp
│
▼
grok-bridge.mjs → grok headless不是 Claude Code 插件本体;不打包 slash commands / hooks。只包 bridge CLI。
工具
Tool | Bridge | 说明 |
|
| 就绪探测(node / grok / auth) |
|
| 主路径; |
|
| 列表或指定 run |
|
| 状态/结果 |
|
| 取消 |
| — | 解析到的 bridge 路径 |
审阅类任务:write=false(默认),需要改文件时再 write=true。
Related MCP server: GenieOS MCP Server
前置
Node ≥ 18
本机已装
grokCLI 并登录(grok/ bridgecheck通过)可找到
grok-bridge.mjs(见路径解析)
安装
cd ~/karson_ubuntu/grok-mcp
npm install
npm run build路径解析(GROK_BRIDGE)
按顺序找 grok-bridge.mjs:
环境变量
GROK_BRIDGE~/github_repo/grok-build-plugin-cc/plugins/grok-build/scripts/grok-bridge.mjs~/.claude/plugins/cache/xai-grok-build/grok-build/<ver>/scripts/grok-bridge.mjs(最新 ver)$CLAUDE_PLUGIN_ROOT/scripts/grok-bridge.mjs
接入 Claude Code
claude mcp add grok -s user \
-e GROK_BRIDGE=$HOME/github_repo/grok-build-plugin-cc/plugins/grok-build/scripts/grok-bridge.mjs \
-- node $HOME/karson_ubuntu/grok-mcp/dist/index.js前台
grok_run默认超时 15 分钟(timeout_ms可改)。background=true:只等 bridge 入队并返回 jobId(默认最长 60s),不跑满 agent;完成靠
grok_show/ 报告文件。Prompt 经
--prompt-file写在 tmpdir(不污染项目 cwd)。
重启 Claude Code 后 /mcp 应见 grok。工具名形如 mcp__grok__grok_check。
接入 OpenCode
在 ~/.config/opencode/opencode.json 的 mcp 段增加等价 stdio 配置(command/args/env 同上)。
multi-model-review
skill 的 Grok 路:优先 MCP grok_run(background=true, write=false, model=grok-4.5);无 MCP 时回退 Bash 调 bridge。
开发
npm run typecheck
npm run build
node dist/index.js # stdio MCP;不要手动交互跑手动验 bridge(不经 MCP):
node "$GROK_BRIDGE" check --jsonAvailable Tools
6 toolsgrok_bridge_pathA
Resolve which grok-bridge.mjs path this MCP server will use.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries the burden. It states it resolves a path, implying read-only behavior, but lacks details on side effects, authorization, or return format.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence, front-loaded with the key verb and resource. No unnecessary words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple path resolution with no parameters, the description is mostly complete. However, no output schema and lack of details on return value or when this is needed reduce completeness slightly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Input schema has 0 parameters, so description doesn't need to add param info. Baseline 4 applies as per guidelines.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Resolve' and the resource 'grok-bridge.mjs path', distinguishing it from sibling tools that perform different actions like checking, running, or stopping.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit guidance on when to use this tool vs siblings, though the purpose implies it's for path resolution. Usage context is minimal but not misleading.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
grok_checkA
Probe whether Grok Build bridge + CLI are ready (node, grok binary, auth). Returns {rows: [{label, ok, detail}]} envelope; the raw bridge JSON is preserved in the 'bridge output' row's detail for callers that parsed the old shape.
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory for the probe (default: process cwd) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description provides useful behavioral details: it returns a specific envelope with rows, and preserves old bridge JSON for backward compatibility. However, it does not explicitly state that the tool has no side effects or is idempotent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, with two sentences. The first sentence covers the purpose and scope, and the second explains the return format and backward compatibility. No unnecessary words or repetition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simple nature (one optional parameter, no output schema), the description thoroughly explains the return structure and includes specific checks (node, grok binary, auth). It covers backward compatibility and the envelope format, making it complete for an AI agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% for the single parameter (cwd), and the description adds no additional information about it. The schema already describes it sufficiently, so the description meets the baseline without adding value.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool probes whether the Grok Build bridge and CLI are ready, specifying the exact resources (node, grok binary, auth). This distinguishes it from sibling tools like grok_run (execution) and grok_stop (stopping).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies using this tool before running operations to check readiness, but it does not explicitly state when to use it or how it differs from alternatives. No guidance on prerequisites or when not to use it is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
grok_runA
Run a Grok Build task via bridge (run). background=true: bridge enqueues detached worker and exits; this tool only waits for that enqueue JSON (jobId), default max 60s — not the full agent run. Poll grok_show / report files for completion. write=false default (read-only). Prompt via --prompt-file under tmpdir. Foreground default timeout 900000ms (15 min). Pass cwd for project paths.
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project working directory (absolute path recommended) | |
| fresh | No | Force a fresh session (conflicts with resume_last) | |
| model | No | Model id, e.g. grok-4.5 | |
| write | No | If true, allow file edits (default false — read-only) | |
| effort | No | Reasoning effort | |
| prompt | Yes | Natural-language task for Grok | |
| background | No | If true, enqueue detached worker and return jobId JSON (does not wait for agent finish) | |
| timeout_ms | No | Kill timeout ms. Foreground: whole run (default 900000). Background: enqueue only (default 60000, hard cap 120000). Do NOT pass 900000 for background. | |
| resume_last | No | Continue last task session (--resume-last) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden. It discloses behavior for background mode (enqueue and exit), default timeouts, read-only default, and that prompt is processed via a tmpdir file. It does not cover error handling or failure modes, but is otherwise transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is dense and informative, with no wasted words. It could be more readable with structured bullet points, but it remains sufficiently concise and every sentence adds value.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 9 parameters, no output schema, and no annotations, the description covers purpose, usage, and key parameter behaviors. It mentions polling siblings for completion. However, it does not describe the return format (jobId JSON) in detail or cover error scenarios, leaving some gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
All 9 parameters have schema descriptions (100% coverage). The description adds crucial usage context: background timeout limits, effect of write flag, prompt processing via tmpdir, and cwd usage for project paths. These details go beyond the schema, providing safety warnings and best practices.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool runs a Grok Build task via bridge, distinguishing between background and foreground modes. It references polling grok_show for completion, differentiating it from sibling tools that check or list runs.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit context for when to use background vs foreground, and mentions polling grok_show for status. It does not explicitly list when not to use this tool over alternatives, but the background/foreground distinction and the mention of grok_show serve as good guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
grok_runsC
List tracked Grok bridge runs, or one run by id (runs).
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | If true, include all sessions (--all) | |
| cwd | No | Working directory context | |
| run_id | No | Optional job/run id |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must fully disclose behavioral traits. It only states 'List', implying a read operation, but omits details like pagination, rate limits, error handling, or whether results are return full objects or summaries. Minimal transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single short sentence, which is concise but slightly ambiguous (e.g., parenthetical '(runs)' could be misinterpreted). It lacks front-loading of critical info like the primary use case.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema, the description should explain the return value format, but it does not. It also fails to mention error scenarios or how to handle large result sets. Incomplete for a listing tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with each parameter described. The description adds context that run_id selects a single run, but this is inferrable from the param description. Baseline 3 is appropriate as the description adds marginal value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists 'tracked Grok bridge runs' and can fetch a single run by ID, achieving a specific verb-resource combination. However, it does not differentiate from sibling tools with similar names like 'grok_run' or 'grok_show', which could cause confusion.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies two usage modes (list all vs. by ID) but offers no guidance on when to choose this tool over alternatives (e.g., grok_check, grok_show). No when-not-to-use or prerequisite information is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
grok_showC
Show status/result of a Grok bridge run (show).
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory context | |
| run_id | No | Job/run id; omit for latest |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are present, and the description only says 'Show status/result'. It does not disclose whether the tool is read-only, what occurs if run_id is omitted, or any side effects. The agent lacks critical behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, which is concise but overly brief. It could include more useful detail without being verbose. Structure is not an issue but content is sparse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema and no annotations, the description should explain what the return value is or how to interpret status/results. It does not, leaving the agent uncertain about the output format.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for both parameters (cwd and run_id). The description adds no additional meaning beyond the schema, so baseline score of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool shows status/result of a Grok bridge run. It mentions 'show' and implies a single run focus. However, it does not explicitly differentiate from siblings like grok_runs (possibly listing many runs) or grok_check.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool vs alternatives such as grok_runs or grok_check. The agent receiving no context on selection criteria or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
grok_stopC
Stop a running Grok bridge job (stop).
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory context | |
| run_id | No | Job/run id; omit for latest cancelable |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are present, so the description must disclose behavior. It only says 'stop' without explaining what happens to the job (e.g., cancellation, termination, idempotency), side effects, or authentication needs. The description is too terse for a mutation operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, but it is under-specified rather than concise. It omits crucial behavioral and usage details that could be included without sacrificing brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 2 parameters, no output schema, and no annotations, the description should explain return values, error conditions, and how to use with sibling tools. It fails to do so, leaving the agent with insufficient context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline is 3. The description does not add any additional meaning beyond the schema, which already describes the parameters adequately.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states the tool stops a running Grok bridge job, using the verb 'stop' and the resource 'running Grok bridge job'. This distinguishes it from siblings like 'grok_run' (run) and 'grok_runs' (list).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives like 'grok_check' or 'grok_run'. There is no mention of prerequisites or context that would help an agent decide to invoke this tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
6 tool updates
v0.1.1- First observed
grok_bridge_path - First observed
grok_check - First observed
grok_run - First observed
grok_runs - First observed
grok_show - First observed
grok_stop
TDQS
Each tool has a clearly distinct purpose: check readiness, run a task, list runs, show status, stop a job, and resolve bridge path. No overlap or ambiguity.
All tools follow a consistent 'grok_' prefix with descriptive verb/noun names (check, run, runs, show, stop, bridge_path). No mixing of conventions.
Six tools is ideal for the domain, covering readiness, execution, listing, status, stopping, and configuration. Each tool earns its place without excess.
The tool surface covers the full lifecycle of Grok build runs: check (readiness), run (create), runs (list), show (read), stop (delete/stop), plus configuration (bridge_path). No obvious gaps.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes the local Gemini CLI as an MCP stdio server, providing tools for prompting, web search, file operations, and MCP management, enabling AI clients like Codex CLI and Claude Code to interact with Gemini.7MIT

GenieOS MCP Serverofficial
AlicenseAqualityBmaintenanceStdio bridge for editors to connect to the GenieOS MCP server, enabling AI agents to interact with GenieOS via Streamable HTTP transport.6419MIT- AlicenseAqualityAmaintenanceA minimal local MCP server that lets Claude Desktop or Claude Code delegate coding tasks to Grok Build running headless as a subagent.5481MIT
- AlicenseNot gradedqualityBmaintenanceA local, read-only MCP bridge that lets OpenAI Codex ask your authenticated Grok Build CLI for a second opinion without copying API keys into Codex.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TuTouPower/grok-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server