Grok MCP Server
An MCP server that proxies to the xAI Grok API.
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 screenSet
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)
- Open your project in the Vercel dashboard
- Go to Settings → Environment Variables
- Add all required variables listed above
- Redeploy from the Deployments tab
- 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- Open claude.ai
- Click your avatar at the bottom left → Settings
- Select Integrations from the left menu
- Click Add More, enter "grok-mcp-server" as the Name and paste the URL above as the Remote MCP Server URL
- When the authorization screen appears, enter the password you set for
AUTHORIZE_PASSWORD - The x_search tool is now available in your chats