Integration Guide
· Updated August 29, 2026
Twitter/X MCP Server for AI Agents
FetchLayer's Twitter/X MCP server works with Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, and more. Pick your tool and connect in under a minute.
Written by Alex P.
- MCP
- twitter scraping
- AI agent
- Model Context Protocol
FetchLayer runs a single Model Context Protocol (MCP) server at https://mcp.fetchlayer.dev that exposes 10 Twitter/X tools — search, tweet and reply lookups, profile data, and follower graphs — to any MCP-compatible AI agent. The server is identical no matter which client you connect it to; only the config file location and restart step change per tool.
This page is the index for all of it. Pick your tool below for a client-specific walkthrough, or read on for what the server can do and how to choose between clients.
Pick your client
| Client | Type | Setup | Guide |
|---|---|---|---|
| Claude Desktop | Desktop app | Edit claude_desktop_config.json | Connect Twitter MCP to Claude Desktop → |
| Claude Code | Terminal / CLI | claude mcp add or manual config | Search Twitter/X from Claude Code → |
| Cursor | AI code editor | Edit mcp.json (global or per-project) | Connect Twitter MCP to Cursor → |
| Windsurf | AI code editor | MCP settings panel or mcp.json | Connect Twitter MCP to Windsurf → |
| VS Code (Copilot) | Code editor | .vscode/mcp.json | Connect Twitter MCP to VS Code → |
| Hermes Agent | Agent framework | Config file | Connect Twitter MCP to Hermes → |
| KiloCode | VS Code extension | Extension MCP settings | Connect Twitter MCP to KiloCode → |
| OpenClaw | Agent framework | Config file | Connect Twitter MCP to OpenClaw → |
Every guide uses the same server URL (https://mcp.fetchlayer.dev) and the same Authorization: Bearer ss-your-api-key header — only where that block goes changes between tools.
Which one should you use?
- Already coding in an AI-native editor? Cursor, Windsurf, and VS Code’s Copilot agent mode all support MCP natively — use whichever one’s already open. Setup is a JSON file edit and a reload.
- Working conversationally, not in code? Claude Desktop is the fastest path — a config file and a restart, no terminal.
- Live in the terminal? Claude Code adds MCP servers via a single CLI command.
- Building your own agent on Hermes or OpenClaw? Both take the same server URL and header — the framework-specific config shape is in the guides above.
- Running KiloCode inside VS Code? Use the KiloCode-specific guide — it reads its own MCP settings, not
.vscode/mcp.json.
What the server can do
All 8 clients connect to the same 10 tools: twitter_search, twitter_tweet_detail, twitter_tweet_replies, twitter_user_profile_details, twitter_about_profile, twitter_user_tweets, twitter_user_replies, twitter_following, twitter_followers, and twitter_verified_followers. That covers keyword search, full tweet and reply lookups, profile and extended-metadata retrieval, and both sides of the follower graph — all as structured JSON, with no X Developer Portal application or OAuth flow required.
Get an API key
Every client needs a FetchLayer API key. Get one free — no credit card required — then follow the guide for your tool above.
Common issues across all clients
- Tools not showing up? Check the config file path for your OS/tool, validate the JSON (no trailing commas), and fully restart the app rather than just reloading a window.
- “Invalid API key” errors? Confirm the key starts with
ss-and was copied in full from the FetchLayer dashboard. - Need REST instead of MCP? See the Twitter/X API reference for direct HTTP access to all 10 endpoints — the REST and MCP surfaces are 1:1 here.
What’s Next
- Twitter/X Scraper API — the underlying REST API and pricing
- How to Scrape Twitter/X in 2026 — every method compared, not just MCP
- Reddit MCP Server — the same setup for Reddit data