Spectre
Spectre is an X/Twitter automation MCP server with 104 tools that lets AI agents perform comprehensive Twitter actions by directly calling internal GraphQL/REST APIs without a browser or API keys.
Account Management: Manage multiple accounts (add, remove, switch), auto-rotate on rate limits, and check pool health.
Search & Discovery: Search tweets (latest/top/media, with full query operators) and users; get trends by category (trending, news, sport, entertainment); view home, user, and list timelines, tweets, replies, threads, retweeters, likers, edit history, and similar posts; explore community info.
Posting & Engagement: Post tweets (including replies, quotes, media), upload images/videos/GIFs; delete, like/unlike, retweet/unretweet, bookmark/unbookmark, pin/unpin tweets and replies; create/delete profile highlights.
Drafts & Scheduling: Create, edit, list, and delete drafts; schedule tweets for future posting.
Direct Messages: Send DMs; view inbox and conversations; search DMs (all, groups, or people); manage DM blocking and muted conversations.
Lists & Communities: Create, update, delete lists; add/remove members; subscribe/unsubscribe; get list timeline, members, memberships, ownerships. Join/leave communities; get community tweets and info.
Bookmarks: Bookmark/unbookmark; search bookmarks; clear all; manage bookmark folders (create, rename, delete, add/remove tweets, view folder timeline).
Profile Management: Update profile details (name, bio, website, location), avatar, and banner; delete banner; get account settings; remove followers.
Social Graph: Follow/unfollow users and topics; mute/unmute; block/unblock; view followers, following, mutual (followers you know), verified followers, and muted/blocked accounts.
Safety: Destructive actions (e.g., delete, update profile) include warnings to prevent accidental misuse.
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., "@Spectresearch tweets about artificial intelligence"
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.
Spectre is an MCP server that gives AI agents 104 tools for X/Twitter automation — 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.
Spectre | XActions | twikit | |
Architecture | Direct GraphQL/REST | Puppeteer (headless browser) | Python API wrapper |
Speed | <1s per request | 3–10s (browser startup) | ~1s per request |
Memory | ~10 MB | ~200 MB+ (Chromium) | ~10 MB |
MCP Server | ✓ 104 tools | ~50 API tools | ✗ None |
Account Pool | ✓ Multi-account auto-rotation | ✗ Single auth_token | ✗ Single session |
Browser Required | ✗ Never | ✓ Always | ✗ Never |
DOM Breakage Risk | ✗ None | ~ breaks on UI changes | ✗ None |
Media Upload | ✓ Cookie-based (no API keys) | ~ requires API keys | ✗ |
Lists | ✓ Full CRUD + members + subscribe | ✗ | ✗ |
Drafts & Scheduled | ✓ Full CRUD | ~ Basic | ✗ |
Bookmark Folders | ✓ Full CRUD + timeline | ✗ | ✗ |
DM Search | ✓ All / groups / people | ✗ | ✗ |
Community Notes | ✓ Read + rate | ✗ | ✗ |
Highlights | ✓ Create, delete, get | ✗ | ✗ |
Notifications | ✓ Full timeline | ✗ | ✗ |
Language | Python | JavaScript | Python |
1. Install
pipx install spectre-mcp # or: uv tool install spectre-mcp2. Add Your X Account
Extract cookies from your browser:
Open x.com and make sure you're logged in
Open DevTools (
F12orCtrl+Shift+I)Go to Storage → Cookies → select
https://x.comFind and copy these two values:
auth_token— long hex string (e.g.a1b2c3d4...)ct0— 160-character hex string
spectre add myaccount "auth_token=a1b2c3d4...; ct0=e5f6a7b8..."Tip:
ct0is exactly 160 hex characters. Double-check you copied the full value — partial cookies will fail silently.
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 | shOr usepython3 -m spectre.serverto run from a local clone.
All 104 Tools — every tool, grouped by feature
Integrations — Hermes, Claude, Cursor, Python
Safety — destructive tools, rate limits
Reference — X query operators, CLI, env vars, limitations
License
MIT
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
- Flicense-qualityDmaintenanceEnables LLM agents to interact with Twitter (X) for searching tweets, posting content with images, analyzing engagement, and extracting topics using the Twitter API.
- Flicense-quality-maintenanceConnects AI assistants to Twitter/X using cookie-based authentication to read timelines, search tweets, and perform actions like posting and liking. It leverages Twitter's internal GraphQL API to provide full functionality without requiring a developer account.16
- Alicense-qualityDmaintenanceEnables AI agents to interact with Twitter/X through Playwright browser automation without requiring an official API key. It provides tools for posting content, searching tweets, reading feeds, and managing social interactions like follows and likes.2MIT
- Alicense-qualityDmaintenanceProvides AI agents and coding assistants with Twitter data access including tweets, user profiles, followers, and search functionality.MIT
Related MCP Connectors
X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.
Twitter/X, Instagram, Reddit & TikTok data for AI agents. Billions of posts. No API keys.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
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/pranrichh/spectre-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server