MCP X Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP X Server draft a tweet about the new product launch"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
How to run with STDIO
Local
Configure the MCP server in mcp.json.
{
"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",
"mcp_x_server/server.py"
],
"env": {
"CONSUMER_KEY": "*******************",
"CONSUMER_SECRET": "*******************",
"ACCESS_TOKEN": "*******************",
"ACCESS_SECRET": "*******************",
"DEEPSEEK_API_KEY": "*******************"
}
}
}
}Docker
Configure the MCP server in mcp.json.
{
"mcpServices": {
"x-mcp-docker": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--name",
"mcp-x-server",
"-e",
"CONSUMER_KEY",
"-e",
"CONSUMER_SECRET",
"-e",
"ACCESS_TOKEN",
"-e",
"ACCESS_SECRET",
"-e",
"DEEPSEEK_API_KEY",
"wylu1037/mcp-x-server:latest"
],
"env": {
"CONSUMER_KEY": "********************************",
"CONSUMER_SECRET": "********************************",
"ACCESS_TOKEN": "********************************",
"ACCESS_SECRET": "********************************",
"DEEPSEEK_API_KEY": "sk-********************************"
}
}
}
}UVX
Configure the MCP server in mcp.json.
{
"mcpServices": {
"mcp-x-server": {
"command": "uvx",
"args": [
"mcp-x-server"
],
"env": {
"CONSUMER_KEY": "********************************",
"CONSUMER_SECRET": "********************************",
"ACCESS_TOKEN": "********************************",
"ACCESS_SECRET": "********************************",
"DEEPSEEK_API_KEY": "sk-********************************"
}
}
}
}Related MCP server: x-mcp-server
Run with SSE
Run MCP server
fastmcp run --transport sse mcp_x_server/server.pyConfigure the MCP server in mcp.json.
{
"mcpServices": {
"mcp-x-server": {
"url": "http://localhost:8000/sse"
}
}
}Publish to PyPI(发布到 Python 包管理中心)
推荐使用 uv 一站式完成构建和发布,本项目已经包含 pyproject.toml 与 uv.lock,适合这种方式。
1. 安装 uv(如尚未安装)
curl -LsSf https://astral.sh/uv/install.sh | sh或根据官方文档选择适合你平台的安装方式。
2. 更新版本号
在 pyproject.toml 的 [project] 部分更新 version 字段,避免与已发布版本重复。
你也可以使用 uv 自动修改版本号,例如:
uv version --bump patch3. 清理旧的构建产物(可选)
rm -rf dist/ build/ *.egg-info4. 使用 uv 构建发行包
uv build构建完成后,发行包会生成在 dist/ 目录下(.whl 和 .tar.gz)。
5. 配置 PyPI 凭据
推荐使用 PyPI 的 API Token(而不是用户名/密码),并通过环境变量提供给 uv:
export UV_PUBLISH_TOKEN="pypi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"6. 使用 uv 发布到 PyPI
uv publish如需发布到 TestPyPI,可在 pyproject.toml 中配置 [[tool.uv.index]],然后:
uv publish --index testpypi说明:
传统的
python -m build+twine upload流程同样可用,只是这里更推荐使用 uv;本仓库还保留了
python setup.py upload命令,会自动构建并通过twine上传包,同时推送 git tag,一般仅在你明确需要旧流程时使用。
Available Tools
1 toolcreate_tweetC
Create a tweet
Inputs: text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no ambiguity or confusion with other tools.
The single tool name 'create_tweet' follows a clear verb_noun pattern, consistent with itself.
A single tool for a Twitter-oriented server is insufficient; typical interacton with tweets requires multiple operations (read, delete, etc.), making this feel thin.
Only creation is covered; essential operations like reading, deleting, or listing tweets are missing, leaving significant gaps for an agent.
Related MCP Connectors
Publish and schedule tweets and threads on X (Twitter) from your AI assistant.
The zero-dashboard social autopilot. Publish to X and LinkedIn directly from AI chat.
Write, score, queue and schedule Threads and X posts in your own voice from your AI assistant.
Draft, schedule and publish social media posts from your AI assistant.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables creating, managing, and publishing X/Twitter posts, threads, and replies directly through Claude chat. Supports draft management with the ability to create, list, publish, and delete tweet drafts.101MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with X (Twitter) API v2 for posting tweets, searching, liking, retweeting, and more through natural language.MIT
- AlicenseAqualityDmaintenanceEnables Twitter/X marketing automation, including tweet search, account analysis, trending topics, and optional AI-generated tweets and scheduling.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables posting single tweets, threads, and saving drafts to X (Twitter) automatically using Playwright.MIT