Cover image
Try Now
2025-03-10

This is an MCP server for the X Platform

3 years

Works with Finder

1

Github Watches

1

Github Forks

3

Github Stars

X MCP Server

This tool is an MCP server for interacting with the X platform via an MCP client such as Claude, Cursor AI, Windsurf AI, etc.

Prerequisites

  1. Node.js (>=18.0.0)
  2. npm (>=8.0.0)
  3. X Developer API keys

Important Notes regarding to the rate limits of the X APIs

Getting Started

  1. Clone this repository:

    git clone <repository-url>
    
  2. Install the dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

    This will compile the index.ts file in the src folder and create the build directory.

Configuration

  1. You will need your X Developer API keys to use this tool. You will need these 4 keys/tokens:

    • X API Key
    • X API Key Secret
    • X Access Token
    • X Access Token Secret

    In case you are not aware of how to get these keys/tokens, you can follow the instructions on the X Developer website: https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

  2. Set the environment variables: You will have to setup the MCP server for your client.

    1. For Claude:

      • Open Claude Desktop
      • Go to Settings -> Developer
      • Here you will see an option to configure MCP servers by clicking on it (Edit Config)
      • Claude will open the folder containing the config file. Open the config file which is named claude_desktop_config.json.
      • Add the following configuration:
        {
            "x-mcp-server": {
                "command": "node",
                "args": [
                    "/ABSOLUTE/PATH/TO/PARENT/FOLDER/x-mcp-server/build/index.js"
                ],
                "env": {
                    "X_API_KEY": "your-x-api-key",
                    "X_API_KEY_SECRET": "your-x-api-key-secret",
                    "X_ACCESS_TOKEN": "your-x-access-token",
                    "X_ACCESS_TOKEN_SECRET": "your-x-access-token-secret"
                }
            }
        }
        
      • Save the config file.
      • Restart Claude Desktop.
      • You can refer the official Anthropic documentation for setting up an MCP server https://modelcontextprotocol.io/quickstart/server
    2. For Cursor AI:

    3. For Windsurf AI:

      • Open a new chat in Cascade.
      • You should see a Configure MCP button below the Cascade's prompt input. Click on it.
      • It will open the config file in the editor and you can add the following configuration:
        {
            "mcpServers": {
                "x-mcp-server": {
                    "command": "node",
                    "args": [
                        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/x-mcp-server/build/index.js"
                    ],
                    "env": {
                        "X_API_KEY": "your-x-api-key",
                        "X_API_KEY_SECRET": "your-x-api-key-secret",
                        "X_ACCESS_TOKEN": "your-x-access-token",
                        "X_ACCESS_TOKEN_SECRET": "your-x-access-token-secret"
                    }
                }
            }
        }
        
      • Save file and click on the Refresh servers button below the Cascade's prompt input.
    4. For other MCP clients:

Now you can connect to this MCP server locally using your preferred MCP client and interact with the X platform.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • OffchainLabs
  • Go implementation of Ethereum proof of stake

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • pontusab
  • The Cursor & Windsurf community, find rules and MCPs

    Reviews

    2 (1)
    Avatar
    user_7n8MspSF
    2025-04-15

    Volatility MCP Server by bornpresident is an exceptional tool for managing server environments. Its user-friendly interface and robust features make it an indispensable resource for both beginners and advanced users. The detailed documentation and prompt, helpful support further enhance the overall experience. Highly recommend for anyone needing reliable server management solutions.