MCP server exposing the X (Twitter) API v2 as 41 typed tools, gated by a two-axis policy model and a session credit budget aware of 2026 pay-per-use pricing.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Claude Desktop
Claude Code
Cursor
Add to claude_desktop_config.json:
{
"mcpServers": {
"x-mcp": {
"command": "npx",
"args": [
"-y",
"IvanBBaev/x-mcp"
]
}
}
}
📋 Copy
Run in terminal:
claude mcp add x-mcp npx -y IvanBBaev/x-mcp
📋 Copy
Add to .cursor/mcp.json:
{
"mcpServers": {
"x-mcp": {
"command": "npx",
"args": [
"-y",
"IvanBBaev/x-mcp"
]
}
}
}
📋 Copy
README Excerpt
<div align="center"> | | | | | | | |:--:|:--:|:--:|:--:|:--:|:--:| | [](https://www.npmjs.com/package/x-mcp-ai) | [](https://github.com/IvanBBaev/x-mcp/actions/workflows/ci.yml) | [](#tools) | [
X_MCP_ALLOW_INSECURE_BASE_URL X_MCP_AUTH_MODE X_MCP_AVAILABILITY X_MCP_BASE_URL X_MCP_BEARER_TOKEN X_MCP_BUDGET_MODE X_MCP_CLIENT_ID X_MCP_CLIENT_SECRET X_MCP_CREDIT_BUDGET X_MCP_HIDE_DENIED X_MCP_LOG_LEVEL X_MCP_MEDIA_DIR X_MCP_POLICY X_MCP_POLICY_ALLOW X_MCP_POLICY_DENY X_MCP_PROFILE X_MCP_PROFILES_FILE X_MCP_TIMEOUT_MS X_MCP_TOKEN_FILE X_MCP_TOKEN_KEYCHAIN
Topics
mcp mcp-server nodejs oauth2 twitter typescript x-api