🐦 X MCP Server

A Model Context Protocol (MCP) server that allows interaction with the X API, along with a client to interact with the server using Google's Gemini

Local serverstdioTypeScript

What is the 🐦 X MCP Server?

A Model Context Protocol (MCP) server that allows interaction with the X API, along with a client to interact with the server using Google's Gemini AI.

What you get

A powerful integration that allows AI models to post directly to X (formerly Twitter) using the Model Context Protocol (MCP) πŸ€–βœ¨

Configuration and credentials

  • Bun v1.2.5 or later - X (Twitter) API credentials - Google Gemini API key

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Bun v1.2.5 or later - X (Twitter) API credentials - Google Gemini API key
VariableDescriptionRequired
TWITTER_API_KEYCredential the server authenticates with.Yes
TWITTER_API_SECRETCredential the server authenticates with.Yes
TWITTER_ACCESS_TOKENCredential the server authenticates with.Yes
TWITTER_ACCESS_SECRETCredential the server authenticates with.Yes
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • β€œUse 🐦 X to Prerequisites.”
  • β€œUse 🐦 X to Server.”
  • β€œUse 🐦 X to Client.”

Frequently asked questions

It allows AI models (via Gemini) to post to X (Twitter) by exposing a MCP tool called `createPost`. Users interact through a chat client that translates requests into AI-generated tweets.