Twitter (X) MCP Server for Claude, Cursor and More

Last updated November 27, 2026

Short answer: Add twitr's MCP server (https://twitr.sh/api/mcp) with your API key. Your AI gets 14 X tools (search, timelines, followers, monitors, posting and more), and clients that support Skills over MCP also get the twitr skill on the same connection.

Get a free API key No signup · Free to connect

How to do it

  1. Get a twitr API key at twitr.sh/start. No signup.
  2. Claude Code: claude mcp add --transport http twitr https://twitr.sh/api/mcp --header "Authorization: Bearer YOUR_KEY". Other apps: add the same URL and header to their MCP config.
  3. Ask your AI anything about X. Or paste the setup prompt and let it install everything.

Ask Claude

With twitr connected to Claude, Cursor or any MCP app (see the Twitter MCP setup), paste:

Set up twitr.sh for me. Follow https://twitr.sh/setup.md to add the twitr MCP server and the twitr skill, using my key YOUR_KEY. Then test it.

Or call the API

One POST to the x_search tool with your key. The exact price is checked before anything is charged.

curl -X POST https://twitr.sh/api/tools/x_search \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"q":"MCP server","queryType":"Top","resultsLimit":5}'

Price

Free to connect. Listing tools is free. Each call is priced up front: $0.0012 per result, $0.0024 minimum. New keys come with a free starter balance. Agents with a USDC wallet can pay per call with no key (how it works).

Good to know

  • Posting, liking and DMs need an X account connected in your twitr dashboard first.
  • Skills over MCP is new. Clients without it can read the same skill at twitr.sh/skill.md.

More tasks

FAQ

Which apps does the Twitter MCP server work with?

Any MCP client that supports HTTP servers with headers: Claude Code, Claude Desktop, Cursor, Windsurf, VS Code and more.

Do I need an X developer account?

No. twitr handles access to X. You only need a twitr API key, which you get at twitr.sh/start with no signup.

What can my AI do with it?

Search posts, read profiles and timelines, export followers, pick giveaway winners, watch accounts in real time, and post, reply, like or DM from an X account you connect.

Is the MCP server free?

Connecting and listing tools is free. Each tool call costs what it does over the API, shown before it runs. New keys come with a free starter balance.

Can agents pay without a key?

Yes. Agents with a USDC wallet can call the same MCP server and pay per call with x402 or MPP, no key needed.