mcp-grok-search
Enables AI assistants to search the internet using Grok's built-in web browsing capabilities, with configurable effort levels and model selection.
README
mcp-grok-search
English
An MCP (Model Context Protocol) server that provides real-time web search capabilities via the Grok API. Enables AI assistants like Claude to search the internet through Grok's built-in web browsing.
Features
- Real-time web search powered by Grok AI
- Uses the Responses API, which is the recommended path for Grok web search
grok_web_searchsupports an optionaleffortspreset:low,medium, orhighefforts=lowusesgrok-4.20-reasoningefforts=medium/highusegrok-4.20-multi-agentwith official reasoning presets- Configurable API endpoint, model, and timeout
- Stdio transport for seamless MCP integration
Quick Start
Prerequisites
- Node.js >= 18
- A Grok API key (get one at x.ai)
Install & Build
git clone https://github.com/Cedriccmh/mcp-grok-search.git
cd mcp-grok-search
npm install
npm run build
Environment Variables
| Variable | Description | Default |
|---|---|---|
GROK_API_KEY |
(Required) Your Grok API key | — |
GROK_API_URL |
API endpoint URL | https://api.x.ai/v1/chat/completions |
GROK_MODEL |
Default model used when efforts is not passed |
grok-4.20-reasoning |
GROK_TIMEOUT_MS |
Request timeout in ms | 180000 |
Run
GROK_API_KEY=your-key-here npm start
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"grok-web-search": {
"command": "node",
"args": ["path/to/mcp-grok-search/dist/index.js"],
"env": {
"GROK_API_KEY": "your-key-here"
}
}
}
}
Tech Stack
- TypeScript
- @modelcontextprotocol/sdk — MCP server framework
- Zod — Input schema validation
License
MIT
中文
一个基于 Grok API 的 MCP(Model Context Protocol)服务器,提供实时网络搜索能力。让 Claude 等 AI 助手能够通过 Grok 内置的网页浏览功能搜索互联网。
特性
- 基于 Grok AI 的实时网络搜索
- 使用 Responses API,符合 Grok 当前推荐的搜索接入方式
grok_web_search工具支持可选的efforts预设:low、medium、highefforts=low使用grok-4.20-reasoningefforts=medium/high使用grok-4.20-multi-agent和官方推荐的reasoning.effort- 可配置 API 端点、模型和超时时间
- Stdio 传输,无缝对接 MCP 协议
快速开始
前置要求
- Node.js >= 18
- Grok API 密钥(在 x.ai 获取)
安装与构建
git clone https://github.com/Cedriccmh/mcp-grok-search.git
cd mcp-grok-search
npm install
npm run build
环境变量
| 变量 | 说明 | 默认值 |
|---|---|---|
GROK_API_KEY |
(必填) Grok API 密钥 | — |
GROK_API_URL |
API 端点 URL | https://api.x.ai/v1/chat/completions |
GROK_MODEL |
不传 efforts 时使用的默认模型 |
grok-4.20-reasoning |
GROK_TIMEOUT_MS |
请求超时时间(毫秒) | 180000 |
运行
GROK_API_KEY=your-key-here npm start
Claude Desktop 配置
将以下内容添加到 claude_desktop_config.json:
{
"mcpServers": {
"grok-web-search": {
"command": "node",
"args": ["path/to/mcp-grok-search/dist/index.js"],
"env": {
"GROK_API_KEY": "your-key-here"
}
}
}
}
技术栈
- TypeScript
- @modelcontextprotocol/sdk — MCP 服务端框架
- Zod — 输入参数校验
许可证
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.