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。
前置
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 --jsonThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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