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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_x_server-0.1.2.tar.gz.
File metadata
- Download URL: mcp_x_server-0.1.2.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf67fd2bc3f768a51322d0b862371361dc46da9960e11b4be3c09bcefaad4f32
|
|
| MD5 |
85bb14a8b643b9d74eaa1a0b15ad5f5a
|
|
| BLAKE2b-256 |
e4faf4d7dcd743f3105664ac7f581867f25727b9091193857004bc5ba21b2b63
|
File details
Details for the file mcp_x_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_x_server-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e2f8ed7b9412794168d7e9fc1e094f381a2915e2aa9aedc5760b11fbb205a7c
|
|
| MD5 |
bb9ae1d79b7d5ff4cfdac6dbbb493bea
|
|
| BLAKE2b-256 |
11c80607fd7bde0aaebfd08322e2af2c548d193343e19e1e559dbb03e807b7ea
|