OmniX
← All posts
5 min read

Add Twitter (X) to Claude, Cursor & Codex: The MCP Server Guide

Add Twitter (X) to Claude, Cursor & Codex: The MCP Server Guide

The Model Context Protocol (MCP) lets an AI model call real tools — not just chat. With the OmniX MCP server, Claude, Cursor and Codex get native X (Twitter) superpowers: search timelines, look up users, post tweets, follow accounts, publish articles, and even read encrypted DMs — all as the X account you connect.

No rival X API ships an MCP server. This is the only one.

What you get

All 55 endpoints become functions the model can call directly. Ask in plain English — "search X for AI agents and DM the top 3" — and the model picks the tools, fills the arguments, and runs them as your account.

Install it (pick your client)

Claude Desktop / Cursor

Add this to your client's MCP config:

{
  "mcpServers": {
    "omnix": {
      "command": "npx",
      "args": ["-y", "omnix-mcp@latest"],
      "env": {
        "OMNIX_KEY": "omnix_live_...",
        "X_AUTH_TOKEN": "your_x_auth_token"
      }
    }
  }
}

Claude Code

claude mcp add omnix \
  -e OMNIX_KEY=omnix_live_... \
  -e X_AUTH_TOKEN=your_x_auth_token \
  -- npx -y omnix-mcp@latest

Codex

[mcp_servers.omnix]
command = "npx"
args = ["-y", "omnix-mcp@latest"]
env = { OMNIX_KEY = "omnix_live_...", X_AUTH_TOKEN = "your_x_auth_token" }

The tool surface

CategoryTools
Tweets13
Users24
Direct Messages (incl. encrypted XChat)7
Articles7
Account / Lists / Media4

Why it beats writing your own integration

  • No glue code. One config block, not a wrapper SDK you maintain.
  • Real account actions. Every call runs as the X account you supply, so viewer-relative fields stay accurate.
  • Open source. Published on npm as omnix-mcp, MIT-licensed on GitHub.

Pricing

The MCP server is free and open source. You only pay for the calls the model makes — a flat $0.001 each, with free credits on signup.

See the full MCP server page or grab a free key to start.

Start building on OmniX

The X (Twitter) API with encrypted DMs, webhooks and a native MCP server — flat $0.001 per call, free credits to start.