Skip to main content

X MCP AI

io.github.IvanBBaev/x-mcp-ai

v0.8.0Updated Aug 29, 2026stdio · npm

Safety-first X (Twitter) API v2 MCP server: 41 typed tools across 12 packages, policy-gated.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add x-mcp-ai -- npx -y [email protected]

Configuration

18 settings.

  • X_MCP_CLIENT_SECRET
    Env var· optional· secret
    OAuth 2.0 client secret (confidential clients only).
  • X_MCP_BEARER_TOKEN
    Env var· optional· secret
    Application-only bearer token (app-only mode).
  • X_MCP_AUTH_MODE
    Env var· optional
    Authentication mode: oauth2 (default) or app-only.
  • X_MCP_CLIENT_ID
    Env var· optional
    OAuth 2.0 client ID (oauth2 mode).
  • X_MCP_TOKEN_FILE
    Env var· optional
    Path to the rotating OAuth 2.0 token store (default: OS-resolved).
  • X_MCP_TOKEN_KEYCHAIN
    Env var· optional
    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.
Show 12 more
  • X_MCP_POLICY
    Env var· optional
    Policy preset: read-only (default), engage, publish, manage, or full.
  • X_MCP_POLICY_ALLOW
    Env var· optional
    Comma-separated op:domain cells to allow on top of the preset (e.g. read:dm,write:dm).
  • X_MCP_POLICY_DENY
    Env var· optional
    Comma-separated op:domain cells to deny; deny beats allow beats preset.
  • X_MCP_HIDE_DENIED
    Env var· optional
    Set to 1 to drop policy-denied tools from registration entirely instead of registering them annotated as denied.
  • X_MCP_MEDIA_DIR
    Env var· optional
    Directory uploads must resolve inside. Media upload is disabled unless this is set.
  • X_MCP_AVAILABILITY
    Env var· optional
    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
    Env var· optional
    Path to a profiles file holding named configuration blocks.
  • X_MCP_PROFILE
    Env var· optional
    Name of the profile to select from the profiles file.
  • X_MCP_TIMEOUT_MS
    Env var· optional
    Per-HTTP-request timeout in milliseconds (default 30000).
  • X_MCP_LOG_LEVEL
    Env var· optional
    Diagnostic verbosity on stderr: silent, error, info (default), or debug.
  • X_MCP_CREDIT_BUDGET
    Env var· optional
    Session spend cap in USD.
  • X_MCP_BUDGET_MODE
    Env var· optional
    Budget enforcement: warn (default) or hard.

Listed in the official MCP Registry since Aug 29, 2026. Mirrored daily; last checked Nov 26, 2026.