Setup Complete
JWT_SECRETJWT signing key (generate below)
Set
XAI_API_KEYxAI API key (get one at https://console.x.ai)
Set
AUTHORIZE_PASSWORDPassword for OAuth authorization screen
Set
JWT_SECRET Generator(configured)

Click the button to securely generate a random key in your browser. Nothing is sent to the server.

Vercel Setup Instructions(complete)
  1. Open your project in the Vercel dashboard
  2. Go to Settings → Environment Variables
  3. Add all required variables listed above
  4. Redeploy from the Deployments tab
  5. Reload this page and confirm all variables show "Set"

Connecting from Claude.ai

Register the following URL as an MCP server in Claude.ai.

https://grok-mcp-server.vercel.app/api/mcp
  1. Open claude.ai
  2. Click your avatar at the bottom left → Settings
  3. Select Integrations from the left menu
  4. Click Add More, enter "grok-mcp-server" as the Name and paste the URL above as the Remote MCP Server URL
  5. When the authorization screen appears, enter the password you set for AUTHORIZE_PASSWORD
  6. The x_search tool is now available in your chats
Grok MCP Server · OAuth 2.1