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:

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.3.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.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_x_server-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 bddcae03241125e4ed6d2796e25092e6b6808e330553a3aa04f4c7f3a208e04c
MD5 893e8df54653542ed3a618fb7f2c7ac7
BLAKE2b-256 483a4f71aa76850e33dfde0e9690b845720d7174d82b62c60e69452a72a2bd29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_x_server-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 93ff099779610ccd776a729beb575ec523f89492fc51de637900f85664200d0e
MD5 97c089d479ccd64ba2ad3cac0c092215
BLAKE2b-256 5f7116970f13201245bebf8de53288e5f88cfceb2c5410813e6fdbbcecd6f0ab

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