Skip to content

Grok (xAI)

Connect Crow to xAI's Grok using its Remote MCP Tools support.

Prerequisites

Setup Steps

Grok supports remote MCP servers through its API. Configure Crow as a remote tool source:

  1. In your Grok/xAI configuration, add a remote MCP server:

    json
    {
      "mcp_servers": [
        {
          "url": "https://your-gateway.onrender.com/memory/mcp",
          "name": "crow-memory"
        },
        {
          "url": "https://your-gateway.onrender.com/research/mcp",
          "name": "crow-research"
        },
        {
          "url": "https://your-gateway.onrender.com/tools/mcp",
          "name": "crow-tools"
        }
      ]
    }
  2. If using OAuth, the client will need to complete the authorization flow. If using bearer tokens, you can generate a token via the gateway's OAuth flow and pass it directly.

Transport

  • Type: Streamable HTTP
  • Protocol: 2025-03-26
  • Auth: OAuth 2.1 or Bearer token

Using Bearer Tokens

If your Grok client doesn't support OAuth discovery, you can:

  1. Register a client manually via the /register endpoint
  2. Complete the OAuth flow to get an access token
  3. Pass the token as a Bearer header in requests

Cross-Platform Context

Load Crow's shared behavioral context on Grok:

"Use the crow_get_context tool with platform set to grok"

Or fetch via HTTP: GET https://your-gateway.onrender.com/crow.md?platform=grok

Memories and research stored from any platform are shared. See the Cross-Platform Guide.

Verification

Use Grok's tool calling to test:

"Use the crow_store_memory tool to store that Grok is connected."

Released under the MIT License.