The fastest X/Twitter automation for AI agents — 111 tools, no browser, no API keys.
pip install spectre-mcp==2.0.2 Copy PIP instructions
111 tools · no browser · no API keys · no monthly fees
Quick Start · Tools · Why Spectre? · Safety · Integrations · Reference
Spectre is an MCP server that gives AI agents 111 tools for X/Twitter — from search and posting to DMs, lists, and communities. Under the hood, it talks directly to X's internal GraphQL and REST APIs. No browser to spin up, no Puppeteer to maintain, no DOM scraping that breaks on UI changes.
Every tool returns the same clean JSON shapes, and failures carry a kind (auth, rate_limit, permission, validation, not_found, upstream) so your agent knows whether to retry, switch accounts, or stop.
pipx install spectre-mcp # or: uv tool install spectre-mcp 2. Add Your X Account Extract cookies from your browser:
spectre add myaccount "auth_token=a1b2c3d4...; ct0=e5f6a7b8..." Spectre checks the cookies with X before saving them, so a bad copy fails immediately instead of at the first empty search.
Tip: ct0 is exactly 160 hex characters. Double-check you copied the full value.
spectre list # accounts and their state spectre status # pool health spectre doctor # auth + connectivity check 3. Configure Your MCP Client Add to your MCP client config (~/.hermes/config.yaml, claude_desktop_config.json, .cursor/mcp.json, or equivalent):
{ "mcpServers": { "spectre": { "command": "uvx", "args": ["spectre-mcp"] } } } For client-specific setup (Hermes skill, Claude, Cursor, Python), see Integrations.
No uv? Install it: curl -LsSf https://astral.sh/uv/install.sh | sh Or use python3 -m spectre.server to run from a local clone.
Full list with arguments and gotchas: docs/tools.md.
agent ai-agent automation mcp model-context-protocol scraper social-media twitter x
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




