Skip to content

SOPs - Setup Procedures Fresh

Step-by-step procedures for getting the X MCP servers running and connected to your AI tools.

flowchart LR
    A[Get Developer Access] --> B[Install XMCP]
    B --> C[Configure Credentials]
    C --> D[Connect an MCP Client]
    D --> E[Tool Allow-Listing]
    A --> F[Connect the Docs MCP]

Procedures

#ProcedureWhat it covers
1Get Developer AccessDeveloper account, app credentials, and your first API request
2Install XMCP (local)Clone the repo, create a venv, install dependencies, start the server
3Configure CredentialsThe .env file, OAuth keys, Bearer token, and callback registration
4Connect an MCP ClientWire Cursor, Windsurf, Claude, or a custom agent to XMCP
5Connect the Docs MCPAdd the hosted documentation search server
6Tool Allow-ListingRestrict which X API operations an agent can call
7Generate an OAuth 2.0 TokenOptional OAuth 2.0 user token and the Grok test client

Prerequisites at a glance

  • Python 3.9+ for the XMCP server
  • An X Developer Platform app (for consumer key, secret, and Bearer token)
  • An MCP-compatible client - Cursor, Windsurf, Claude, or your own implementation
  • Optional: an xAI API key to run the Grok test client

Do not commit secrets

Your .env holds live API credentials. Keep it out of version control and never paste consumer secrets or tokens into shared chats or screenshots.