Skip to main content
Glama

grok-mcp

xAI Grok APIをラップするMCPサーバー。Claudeやその他のAIエージェントが、思考、計画、リアルタイム検索をGrokに委任できるようにします。

セットアップ

npm install -g grok-mcp

または、npxで直接使用します:

npx grok-mcp

console.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

さまざまなユースケースに対応するオプションを備えた単一のツールです。

パラメータ

パラメータ

必須

説明

prompt

string

はい

Grokへの質問またはタスク

system_prompt

string

いいえ

カスタムシステムプロンプト

model

string

いいえ

使用するモデル (デフォルト: grok-4.20-reasoning)

web_search

boolean

いいえ

リアルタイムウェブ検索を有効にする

x_search

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: true

X/Twitter検索:

prompt: "What are people saying about the new React release?"
x_search: true

ライセンス

MIT

-
security - not tested
F
license - not found
-
quality - not tested

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