
lkbaba/grok-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Claude CodeをxAIのGrokに接続し、リアルタイムウェブ検索やX(Twitter)検索機能を解放するMCPサーバーです。
概要
Claude CodeをxAIのGrokに接続し、リアルタイムウェブ検索やX(Twitter)検索機能を解放するMCPサーバーです。 : クロードが指揮官で、グロックはリアルタイム検索とソーシャルメディア情報の専門家だ。 xAIコンソールにアクセスしてAPIキーを作成してください。 - : ~/ライブラリ/アプリケーションサポート/Claude/claude_desktop_config.json - : %APPDATA%\Claude\claude_desktop_config.json - : ~/.config/Claude/claude_desktop_config.json @latest、Claude Codeが再起動したときに常に最新バージョンを入手できます。 リアルタイムウェブおよびX(Twitter)検索はGrokによって提供されます。Grokはクエリを自動的に分析し、複数ラウンドにわたる検索を実行し、情報を統合し、引用された回答を提供します。 : 検索結果(インライン引用付き)、Grokが使用した検索クエリ、タイトル付きソースリンク、使用統計。 プロジェクトのコンテキストサポートを伴う多視点のアイデア生成。
概要(AI 翻訳)
Claude CodeにGrok 4.20の力を授けてくれ
Claude CodeをxAIのGrokに接続し、リアルタイムウェブ検索やX(Twitter)検索機能を解放するMCPサーバーです。
なぜグロック+クロード?
| グロックの強み | ユースケース |
|---|---|
| Web + X 検索透過的なソースURLを持つリアルタイム情報 | |
| X/Twitter検索ソーシャルメディアのトレンド、世論、速報を追跡 | |
| 4-エージェントアーキテクチャハーパー(リサーチ)+ベンジャミン(論理)+ルーカス(クリエイティブ)コラボレーション | |
| 2Mトークンコンテキスト包括的な分析のための巨大コンテキストウィンドウ |
哲学:クロードが指揮官、グロックがリアルタイム検索とソーシャルメディアインテリジェンスの専門家です。
クイックスタート
1.APIキーを入手してください
xAIコンソールにアクセスしてAPIキーを作成してください。
2.Claude Code の設定
MCPの設定ファイルに追加してください:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
@latestは、Claude Codeが再起動した際に常に最新バージョンを入手できるようにします。
3.Claude Code の再起動
ツールズ(2)
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Grok MCP Server
Give Claude Code the power of Grok 4.20
An MCP server that connects Claude Code to xAI’s Grok, unlocking real-time web search and X (Twitter) search capabilities.
Why Grok + Claude?
| Grok’s Strengths | Use Case |
|---|---|
| Web + X Search | Real-time information with transparent source URLs |
| X/Twitter Search | Track social media trends, public opinion, breaking news |
| 4-Agent Architecture | Harper (research) + Benjamin (logic) + Lucas (creative) collaboration |
| 2M Token Context | Massive context window for comprehensive analysis |
Philosophy: Claude is the commander, Grok is the specialist for real-time search and social media intelligence.
Quick Start
1. Get API Key
Visit xAI Console and create an API key.
2. Configure Claude Code
Add to your MCP config file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"grok-mcp": {
"command": "npx",
"args": ["-y", "@lkbaba/grok-mcp@latest"],
"env": {
"XAI_API_KEY": "your_xai_api_key_here"
}
}
}
}
@latestensures you always get the newest version when Claude Code restarts.
3. Restart Claude Code
Tools (2)
grok_agent_search - Smart Search
Real-time web and X (Twitter) search powered by Grok. Grok automatically analyzes queries, executes searches (potentially multiple rounds), synthesizes information, and provides cited answers.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query |
string | Yes | - | Search query |
search_type |
enum | No | mixed |
web / x / mixed (recommended) |
model |
enum | No | grok-4.20-multi-agent-beta-0309 |
See model table below |
output_format |
enum | No | text |
text (Markdown) / json (native JSON Schema enforced) |
web_search_config |
object | No | - | Domain filters (allowed/excluded are mutually exclusive) |
x_search_config |
object | No | - | Date range, handle filters (allowed/excluded are mutually exclusive), video understanding |
Output includes: Search results with inline citations, search queries Grok used, titled source links, and usage statistics.
Example:
"Search for the latest Claude Code updates on X and the web"
grok_brainstorm - Creative Brainstorming
Multi-perspective idea generation with project context support.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
topic |
string | Yes | - | Brainstorming topic |
context |
string | No | - | Additional context |
context_files |
string[] | No | - | Project files to read as context (max 10) |
count |
number | No | 5 |
Number of ideas (1-10) |
インストール
npx -y @lkbaba/grok-mcp@latest設定
{
"mcpServers": {
"grok-mcp": {
"command": "npx",
"args": ["-y", "@lkbaba/grok-mcp@latest"],
"env": {
"XAI_API_KEY": "your_xai_api_key_here"
}
}
}
}