Post, delete & read on X (Twitter) from Python & MCP using your own web session — no paid API.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add tweetkit-x --env TWEETKIT_COOKIE='<TWEETKIT_COOKIE>' -- uvx tweetkit-x~/.codex/config.toml
[mcp_servers.tweetkit-x]
command = "uvx"
args = ["tweetkit-x"]
env = { TWEETKIT_COOKIE = "<TWEETKIT_COOKIE>" }
# codex mcp add tweetkit-x --env TWEETKIT_COOKIE='<TWEETKIT_COOKIE>' -- uvx tweetkit-x~/.cursor/mcp.json
{
"mcpServers": {
"tweetkit-x": {
"command": "uvx",
"args": [
"tweetkit-x"
],
"env": {
"TWEETKIT_COOKIE": "<TWEETKIT_COOKIE>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tweetkit-x": {
"type": "stdio",
"command": "uvx",
"args": [
"tweetkit-x"
],
"env": {
"TWEETKIT_COOKIE": "<TWEETKIT_COOKIE>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tweetkit-x": {
"command": "uvx",
"args": [
"tweetkit-x"
],
"env": {
"TWEETKIT_COOKIE": "<TWEETKIT_COOKIE>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tweetkit-x": {
"command": "uvx",
"args": [
"tweetkit-x"
],
"env": {
"TWEETKIT_COOKIE": "<TWEETKIT_COOKIE>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tweetkit-x": {
"command": "uvx",
"args": [
"tweetkit-x"
],
"env": {
"TWEETKIT_COOKIE": "<TWEETKIT_COOKIE>"
}
}
}
}需要的环境变量
TWEETKIT_COOKIE
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。