Skip to main content

A mcp x server to post tweets

Project description

MCP X Server

What can you do with MCP X Server? Give it a sentence or a topic, and it will help you write and refine a tweet, then publish it to X.

Build image

docker build -t mcp-x-server:latest .

How to run with STDIO

Local

{
    "mcpServices": {
        "x-mcp": {
            "command": "uv",
            "args": [
                "run",
                "--with",
                "fastmcp",
                "--with",
                "pydantic-ai",
                "--with",
                "pydantic-ai-slim[duckduckgo,openai]",
                "--with",
                "dotenv",
                "--with",
                "python-twitter-v2",
                "fastmcp",
                "run",
                "/Users/wenyanglu/Workspace/ai/mcp_x_server/server.py"
            ],
            "env": {
                "CONSUMER_KEY": "*******************",,
                "CONSUMER_SECRET": "*******************",
                "ACCESS_TOKEN": "*******************",
                "ACCESS_SECRET": "*******************",
                "DEEPSEEK_API_KEY": "*******************"
            }
        }
    }
}

Docker

docker run -i \
  -e CONSUMER_KEY="your-consumer-key" \
  -e CONSUMER_SECRET="your-consumer-secret" \
  -e ACCESS_TOKEN="your-access-token" \
  -e ACCESS_SECRET="your-access-secret" \
  -e DEEPSEEK_API_KEY="your-deepseek-key" \
  mcp-x-server:latest

Run with SSE

fastmcp run --transport sse server.py

Upload

First step: Generating distribution archives

python3 -m pip install --upgrade build

uv pip install --upgrade build

python3 -m build

Second step: Uploading the distribution archives

python3 -m pip install --upgrade twine

uv pip install --upgrade twine

Once installed, run Twine to upload all of the archives under dist:

python3 -m twine upload --repository testpypi dist/*

Once uploaded, your package should be viewable on TestPyPI; for example: https://test.pypi.org/project/example_package_YOUR_USERNAME_HERE.

Use twine upload dist/* to upload your package and enter your credentials for the account you registered on the real PyPI.


setup.py template

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_x_server-0.1.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_x_server-0.1.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_x_server-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_x_server-0.1.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mcp_x_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8342123f9c71c8a3d1d2a48934b8360125ae834fded53e9862dde272a3fcadbd
MD5 492990ce2ae9685ea113ee08f68bee0e
BLAKE2b-256 794771d92153b7e18bb8a8b7c20ced75f9cf651b67750ad0897bae900154478b

See more details on using hashes here.

File details

Details for the file mcp_x_server-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_x_server-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mcp_x_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 646324eefe3209bd51206b05f94b25d7cf09568b45493d2fc77e76ea9f8c573b
MD5 6a685f67951d6f24a515b3bbd1bedde5
BLAKE2b-256 e2aae8623a36641d733cc5325c8533b720e4a295c3cf44bb59604f558bc41f18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page