Grok Server
БесплатноНе проверенEnables real-time search of X.com (Twitter) posts, users, threads, and trends via xAI's Grok API, directly from Claude.
Описание
Enables real-time search of X.com (Twitter) posts, users, threads, and trends via xAI's Grok API, directly from Claude.
README
Search X.com in real-time with xAI's Grok API - directly from Claude
PyPI version Python 3.12+ License: MIT MCP
A Model Context Protocol server that brings real-time X/Twitter search to Claude. Powered by xAI's Live Search API, it provides instant access to posts, users, threads, and trending topics.
Why Grok MCP?
- Real-time data - Access live X.com content, not cached or outdated information
- Native Claude integration - Works seamlessly with Claude Desktop and Claude Code
- Simple setup - One command to install, one config to add
- Open source - MIT licensed, community-driven
Quick Start
1. Get an xAI API Key
Get your API key from console.x.ai
2. Install
uvx grok-mcp
3. Configure Claude
For Claude Code - Add to .mcp.json in your project:
{
"mcpServers": {
"grok": {
"command": "uvx",
"args": ["grok-mcp"],
"env": {
"XAI_API_KEY": "your-api-key"
}
}
}
}
For Claude Desktop - Add to your config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"grok": {
"command": "uvx",
"args": ["grok-mcp"],
"env": {
"XAI_API_KEY": "your-api-key"
}
}
}
}
4. Use It
Ask Claude things like:
- "Search X for posts about AI"
- "What's trending on X right now?"
- "Find tweets from @elonmusk about Tesla"
Available Tools
| Tool | Description |
|---|---|
search_posts |
Search posts with filters (handles, date range, analysis mode) |
search_users |
Find user profiles |
search_threads |
Discover conversation threads |
get_trends |
Get trending topics by location |
health_check |
Verify API connection |
Examples
Search Posts
Search X for posts about "AI safety" from the last week
Filter by User
Find recent posts from @anthropic about Claude
Get Trends
What are the trending topics in tech right now?
Development
# Clone
git clone https://github.com/guzus/grok-mcp.git
cd grok-mcp
# Install dependencies
uv sync --dev
# Run tests
uv run pytest
# Run locally
XAI_API_KEY=your-key uv run python -m grok_mcp
Architecture
src/grok_mcp/
├── server.py # MCP server implementation
├── grok_client.py # xAI Live Search API client
├── search_tools.py # Tool implementations
├── response_formatter.py
├── config.py
└── exceptions.py
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see LICENSE for details.
Links
Built with xAI Grok and Model Context Protocol
Установка Grok Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/guzus/grok-mcpFAQ
Grok Server MCP бесплатный?
Да, Grok Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Grok Server?
Нет, Grok Server работает без API-ключей и переменных окружения.
Grok Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Grok Server в Claude Desktop, Claude Code или Cursor?
Открой Grok Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Grok Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
