X Search Server
FreeNot checkedEnables searching X (Twitter) posts, discussions, trends, and web content via Grok API using natural language.
About
Enables searching X (Twitter) posts, discussions, trends, and web content via Grok API using natural language.
README
让 Claude Code 搜索 X (Twitter) 实时内容的 MCP Server。
功能
- search_x — 搜索 X 上的帖子、讨论、趋势
- search_web_via_grok — 通过 Grok 搜索网页
- search_combined — 同时搜索 X 和网页
快速开始
1. 获取 xAI API Key
访问 https://console.x.ai 注册,新用户送 $25 免费额度。
2. 克隆项目
git clone https://github.com/your-repo/x-search-mcp.git
cd x-search-mcp
3. 安装依赖
npm install
npm run build
4. 配置环境变量
创建 .env 文件:
XAI_API_KEY=your-api-key-here
5. 配置 Claude Code
将以下配置添加到 ~/.claude/settings.local.json:
{
"mcpServers": {
"x-search": {
"command": "node",
"args": ["x-search-mcp/build/index.js"],
"env": {
"XAI_API_KEY": "your-api-key-here"
}
}
}
}
6. 重启 Claude Code
重启后,你就可以直接让 Claude 搜索 X 上的内容了:
"搜一下 X 上关于 Claude Code 的最新讨论"
费用说明
- 每次 X 搜索约消耗 5000-7000 tokens ≈ $0.001-0.003
- 新用户 $25 免费额度足够搜索数千次
- 可通过数据共享计划获得 $150/月额外免费额度
项目结构
x-search-mcp/
├── src/
│ └── index.ts # 源码
├── build/
│ └── index.js # 编译产物
├── package.json
├── tsconfig.json
└── README.md
技术栈
- TypeScript
- @modelcontextprotocol/sdk
- xAI Grok API
License
MIT
Install X Search Server in Claude Desktop, Claude Code & Cursor
unyly install x-search-mcp-serverInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add x-search-mcp-server -- npx -y x-search-mcpFAQ
Is X Search Server MCP free?
Yes, X Search Server MCP is free — one-click install via Unyly at no cost.
Does X Search Server need an API key?
No, X Search Server runs without API keys or environment variables.
Is X Search Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install X Search Server in Claude Desktop, Claude Code or Cursor?
Open X Search Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare X Search Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
