Post, delete & read on X (Twitter) from Python & MCP using your own web session — no paid API.
Setup
Choose your client, copy the config, then fill in any required environment variables.
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>"
}
}
}
}Environment variables
TWEETKIT_COOKIE
Replace the placeholders with your own credentials and keep them out of version control.