X Search MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@X Search MCP Serversearch X for recent posts about climate change"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
X Search MCP Server
让 Claude Code 搜索 X (Twitter) 实时内容的 MCP Server。
功能
search_x — 搜索 X 上的帖子、讨论、趋势
search_web_via_grok — 通过 Grok 搜索网页
search_combined — 同时搜索 X 和网页
Related MCP server: Grok MCP Server
快速开始
1. 获取 xAI API Key
访问 https://console.x.ai 注册,新用户送 $25 免费额度。
2. 克隆项目
git clone https://github.com/your-repo/x-search-mcp.git
cd x-search-mcp3. 安装依赖
npm install
npm run build4. 配置环境变量
创建 .env 文件:
XAI_API_KEY=your-api-key-here5. 配置 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceSearch X (formerly Twitter) in real-time from your AI assistant using xAI's Grok API, with no X API account required.Last updated29MIT
- AlicenseAqualityDmaintenanceEnables real-time search of X.com (Twitter) posts, users, threads, and trends via xAI's Grok API, directly from Claude.Last updated54MIT
- Alicense-qualityAmaintenanceLive X (Twitter) and web search for any coding agent through your existing Grok subscription. Exposes a grok_search MCP tool, so no X API key or X developer account is needed.Last updated4524Apache 2.0
- Alicense-qualityDmaintenanceEnables real-time web and Twitter/X search via Grok, returning structured results with source URLs, confidence scores, and key points. Supports multiple output modes, language options, and time range filtering.Last updated293MIT
Related MCP Connectors
Web search, news, page retrieval, sitemaps, and trending topics through Search1API.
AI-agent search API: Google, YouTube, Amazon, Reddit, TikTok, TikTok Shop, Instagram, X, LinkedIn
X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/phiclin/x-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server