X MCP AI MCP Server
by ivanbbaevio.github.IvanBBaev/x-mcp-aiv0.8.0
Safety-first X (Twitter) API v2 MCP server: 41 typed tools across 12 packages, policy-gated.
context tax
queued
security
queued
cold start
queued
freshness
Maintained37d ago
Install X MCP AI MCP server
Install in Claude Code
claude mcp add x-mcp-ai -e X_MCP_CLIENT_SECRET='<x-mcp-client-secret>' -e X_MCP_BEARER_TOKEN='<x-mcp-bearer-token>' -- npx -y x-mcp-aiInstall in Cursor
{
"mcpServers": {
"x-mcp-ai": {
"command": "npx",
"args": [
"-y",
"x-mcp-ai"
],
"env": {
"X_MCP_CLIENT_SECRET": "<x-mcp-client-secret>",
"X_MCP_BEARER_TOKEN": "<x-mcp-bearer-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"x-mcp-ai": {
"command": "npx",
"args": [
"-y",
"x-mcp-ai"
],
"env": {
"X_MCP_CLIENT_SECRET": "<x-mcp-client-secret>",
"X_MCP_BEARER_TOKEN": "<x-mcp-bearer-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"x-mcp-ai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"x-mcp-ai"
],
"env": {
"X_MCP_CLIENT_SECRET": "<x-mcp-client-secret>",
"X_MCP_BEARER_TOKEN": "<x-mcp-bearer-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"x-mcp-ai": {
"command": "npx",
"args": [
"-y",
"x-mcp-ai"
],
"env": {
"X_MCP_CLIENT_SECRET": "<x-mcp-client-secret>",
"X_MCP_BEARER_TOKEN": "<x-mcp-bearer-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| X_MCP_AUTH_MODE | — | — | Authentication mode: oauth2 (default) or app-only. |
| X_MCP_CLIENT_ID | — | — | OAuth 2.0 client ID (oauth2 mode). |
| X_MCP_CLIENT_SECRET | — | yes | OAuth 2.0 client secret (confidential clients only). |
| X_MCP_BEARER_TOKEN | — | yes | Application-only bearer token (app-only mode). |
| X_MCP_TOKEN_FILE | — | — | Path to the rotating OAuth 2.0 token store (default: OS-resolved). |
| X_MCP_TOKEN_KEYCHAIN | — | — | Set to 1 to keep OAuth 2.0 tokens in the OS keychain (macOS, Linux) instead of a token file. Mutually exclusive with an explicit X_MCP_TOKEN_FILE. |
| X_MCP_POLICY | — | — | Policy preset: read-only (default), engage, publish, manage, or full. |
| X_MCP_POLICY_ALLOW | — | — | Comma-separated op:domain cells to allow on top of the preset (e.g. read:dm,write:dm). |
| X_MCP_POLICY_DENY | — | — | Comma-separated op:domain cells to deny; deny beats allow beats preset. |
| X_MCP_HIDE_DENIED | — | — | Set to 1 to drop policy-denied tools from registration entirely instead of registering them annotated as denied. |
| X_MCP_MEDIA_DIR | — | — | Directory uploads must resolve inside. Media upload is disabled unless this is set. |
| X_MCP_AVAILABILITY | — | — | Comma-separated specially-provisioned access classes to declare: pilot, premium-user, enterprise. Unset means the conservative default (app+user, user-only). |
| X_MCP_PROFILES_FILE | — | — | Path to a profiles file holding named configuration blocks. |
| X_MCP_PROFILE | — | — | Name of the profile to select from the profiles file. |
| X_MCP_TIMEOUT_MS | — | — | Per-HTTP-request timeout in milliseconds (default 30000). |
| X_MCP_LOG_LEVEL | — | — | Diagnostic verbosity on stderr: silent, error, info (default), or debug. |
| X_MCP_CREDIT_BUDGET | — | — | Session spend cap in USD. |
| X_MCP_BUDGET_MODE | — | — | Budget enforcement: warn (default) or hard. |
Freshness
Maintained — last maintenance signal 37d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-02 · 37d ago · GitHub
Latest release
2026-08-27 · 43d ago · GitHub · v0.8.0
Package published
no data · npm/PyPI
Registry entry updated
2026-08-29 · 41d ago · official registry · v0.8.0
FAQ
›How do I install the X MCP AI MCP server in Claude Code?
Run: claude mcp add x-mcp-ai -e X_MCP_CLIENT_SECRET='<x-mcp-client-secret>' -e X_MCP_BEARER_TOKEN='<x-mcp-bearer-token>' -- npx -y x-mcp-ai. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does X MCP AI require an API key?
Yes. It expects X_MCP_CLIENT_SECRET, X_MCP_BEARER_TOKEN, of which 2 are secrets.
›Can I use X MCP AI as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is X MCP AI in the official MCP registry?
Yes, as io.github.IvanBBaev/x-mcp-ai.
Alternatives to X MCP AI
Other social media MCP servers.