Home / Servers / X (Twitter) API

X (Twitter) API MCP server

Posts, users, searches, lists and spaces on X.

The X API v2 from its OpenAPI description: look up posts and users, search recent posts, timelines, likes, lists, spaces, trends and compliance jobs. An app-only bearer token covers reads; posting needs a user token.

Why use the hosted one: Every endpoint of X's API behind the gateway's search, with your own X API bearer token stored encrypted and sent only to X.

Needs your X API bearer token: add it once in the dashboard (get one at X). It is stored encrypted and sent only to that API.

Connect

Run in your terminal
claude mcp add --transport http hj-x-api https://mcp.hjlabs.in/mcp/x-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Create an API key and put it in place of YOUR_API_KEY. Step-by-step guides: claude.ai and ChatGPT connectors, Claude Code, Cursor, VS Code, Claude Desktop, Windsurf, Zed, OpenAI Codex CLI, Gemini CLI.

All 258 tools

Get 92 tools
Create 25 tools
Delete 25 tools
Update 15 tools
Stream 14 tools
Search 8 tools
Add 6 tools
List 6 tools
Chat 4 tools
Mute 4 tools
Remove 4 tools
Unmute 4 tools
Send 3 tools
Article 2 tools
Follow 2 tools
Initialize 2 tools
Mark 2 tools
Reject 2 tools
Unfollow 2 tools
Users 2 tools
Validate 2 tools
Accept 1 tool
Activity 1 tool
Append 1 tool
Approve 1 tool
Archive 1 tool
Block 1 tool
Cancel 1 tool
Disable 1 tool
Dm 1 tool
Download 1 tool
Enable 1 tool
Ensure 1 tool
Evaluate 1 tool
Finalize 1 tool
Go 1 tool
Hide 1 tool
Join 1 tool
Leave 1 tool
Like 1 tool
Media 1 tool
Pin 1 tool
Repost 1 tool
Respond 1 tool
Revoke 1 tool
Rotate 1 tool
Schedule 1 tool
Unarchive 1 tool
Unblock 1 tool
Unlike 1 tool
Unpin 1 tool
Unrepost 1 tool
Upload 1 tool

Try asking

Search the last week of posts mentioning "model context protocol" and summarise the themes.

Usage and limits

Every account gets a free daily allowance of tool calls; connecting, listing and searching are not counted. See the limits. Only a tool that runs costs a call.

Other hosted servers