grok-mcp
grok-mcp
xAI Grok APIをラップするMCPサーバー。Claudeやその他のAIエージェントが、思考、計画、リアルタイム検索をGrokに委任できるようにします。
セットアップ
npm install -g grok-mcpまたは、npxで直接使用します:
npx grok-mcpconsole.x.aiからxAI APIキーを取得する必要があります。
Claude Codeでの設定
プロジェクトの.mcp.jsonに追加します:
{
"mcpServers": {
"grok": {
"type": "stdio",
"command": "npx",
"args": ["grok-mcp"],
"env": {
"XAI_API_KEY": "your-xai-api-key"
}
}
}
}ツール: ask_grok
さまざまなユースケースに対応するオプションを備えた単一のツールです。
パラメータ
パラメータ | 型 | 必須 | 説明 |
| string | はい | Grokへの質問またはタスク |
| string | いいえ | カスタムシステムプロンプト |
| string | いいえ | 使用するモデル (デフォルト: |
| boolean | いいえ | リアルタイムウェブ検索を有効にする |
| boolean | いいえ | X/Twitter検索を有効にする |
利用可能なモデル
grok-4.20-reasoning— フラッグシップ推論モデル (デフォルト)grok-4.20-non-reasoning— 高速、推論なしgrok-4.20-multi-agent— マルチエージェントモード、アーキテクチャや計画に最適grok-4.1-fast-reasoning— より安価な推論モデルgrok-4.1-fast-non-reasoning— 最も安価で高速
例
質問する:
prompt: "What are the trade-offs between microservices and monoliths?"詳細なアーキテクチャ計画 (マルチエージェント):
prompt: "Design a system architecture for a real-time collaborative editor"
model: "grok-4.20-multi-agent"ウェブ検索:
prompt: "What happened in tech news today?"
web_search: trueX/Twitter検索:
prompt: "What are people saying about the new React release?"
x_search: trueライセンス
MIT
This server cannot be installed
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
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/PKWadsy/grok-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server