Xee-mcp

Xee-mcp

Enables AI assistants to search X posts and read user timelines without API costs, using cookie authentication.

Category
访问服务器

README

Xee-mcp — MCP server for X (Twitter): search + read, no paid API

What is Xee-mcp? It's a Model Context Protocol server that gives Claude, ChatGPT, and other AI assistants two read-only tools for X (Twitter): search posts and read a user's timeline. It uses cookie-based auth via twikit — no X API keys, no pay-per-use fees.

MIT License Python 3.11+ MCP Compatible

Naming: X + See = Xee (pronounced "ex-ee"). The name encodes the scope — Xee-mcp is for seeing X, not posting to it. Posting is intentionally out-of-scope for v0.x.


Status (v0.1.0)

xee-mcp init (cookie setup) works. search and user_tweets are temporarily degraded — they return a clear "upstream parser broken" error because twikit (the underlying scrape library) can't parse X's current webpack chunk format to build the X-Client-Transaction-Id header. This is not a cookie problem — your auth is fine.

This is upstream's repo to fix; we don't fork or maintain a patched scraper. When twikit ships a parser fix, bump the dep and these tools resume working with no code change on your side. See docs/upstream-issues.md for the technical details.

Why ship now anyway: the setup UX (xee-mcp init) is the value users feel first. Shipping that lets people install, configure, and be ready — so the day upstream lands a fix, the tools just start working.


Why Xee-mcp

Six MCP servers for X already exist. Most require the paid X API — pay-per-use since Feb 2026, ~$0.005 per read. For solo developers and OSS authors who just want to let Claude search what's being said about their work, that's wrong shape.

Xee-mcp solves one job: read X with zero API cost. Cookie auth via twikit, two tools, one MCP server. That's it.

Xee-mcp mcp-twikit official xmcp Infatoshi/x-mcp
Auth Cookie (twikit) Cookie (twikit) OAuth 2.0 OAuth 1.0a
API cost $0 $0 Pay-per-use Pay-per-use
Scope Read + search only Read + search + post + DMs Full Full
Tools count 2 (focused) ~10+ ~10+ ~10+
Goal Minimal, solo-OSS friendly Power user Production Production

If you want posting, DMs, or production-grade reliability — use one of the others. If you want the smallest thing that lets Claude see X for you, use Xee-mcp.


Tools

search(query, limit=20)

Search X posts by keyword. Returns text, author, timestamp, URL, and engagement stats.

user_tweets(handle, limit=20)

Read a user's recent posts. Returns the same fields.

That's the v0.1 surface. Two tools. Read-only. No surprises.


Install

git clone https://github.com/Aiyo28/Xee-mcp.git
cd Xee-mcp
uv sync

PyPI publish follows the first wave of feedback (pip install xee-mcp).


Quickstart

  1. Log in to x.com in Chrome (or Brave / Arc / Firefox / Safari / Edge — any one).

  2. One-shot cookie setup. Reads your existing browser session — no extension, no DevTools paste, no password:

    uv run xee-mcp init
    export XEE_MCP_COOKIES=~/.config/xee-mcp/cookies.json
    

    On macOS Chrome / Brave / Edge you'll see one Keychain prompt — approve it. For other browsers use --browser brave|arc|firefox|safari|edge. Other setup paths (advanced / headless) are in docs/cookies.md.

  3. Wire into Claude Desktop / Claude Code. Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

    {
      "mcpServers": {
        "xee-mcp": {
          "command": "uv",
          "args": ["run", "--directory", "/path/to/Xee-mcp", "xee-mcp"],
          "env": { "XEE_MCP_COOKIES": "/path/to/cookies.json" }
        }
      }
    }
    
  4. Ask Claude:

    "Search X for posts about MCP servers from the last week." "Show me the last 10 posts from @simonw."


Limitations

  • Single account. v0.1 uses one cookie file. If X bot-detects, you wait it out or rotate. Multi-account pool is roadmapped (see twscrape swap path in ROADMAP.md).
  • Read-only. No post, no DMs, no like/retweet. Intentional — see naming.
  • No analytics dashboard. This is a primitive, not a product. Compose with other MCP tools.
  • Cookie auth is brittle by design. X may rotate session formats. Pin issues here.

Roadmap

See ROADMAP.md. v0.2 likely adds replies + bookmarks (still read). Posting stays separate (different threat model, different repo).


Support the project

Xee-mcp is MIT, ad-free, and will never have paid tiers. If it saves you time or money, you can throw a coffee:

paypal.me/aiyo28 — keeps everything ad-free, no paid tiers, ever.

Or just star the repo and tell someone. That works too.


Related projects

  • Yzel — MCP connectors for CIS business tools (1C, Wildberries, Ozon, Bitrix24, AmoCRM, МойСклад, Telegram, iiko). Sibling OSS project, different scope (CIS-first business APIs).

License

MIT. See LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选