Back to GigaRAG

Connect an agent

Give an AI tool access to your GigaRAG Workspace, so it can search, read and write your memos while it works.

Claude API

Connect GigaRAG in a Messages API request with Anthropic's MCP connector.

The MCP connector works on the Claude API, Claude Platform on AWS and Microsoft Foundry, not on Bedrock or Google Cloud.

Use it in code

The snippet has your key in it so it runs as pasted. Move it to an environment variable before the code is committed or shared.

  1. 1.

    Send a request with GigaRAG as an MCP server

    curl https://api.anthropic.com/v1/messages \
      -H "x-api-key: $ANTHROPIC_API_KEY" \
      -H "anthropic-version: 2023-06-01" \
      -H "anthropic-beta: mcp-client-2025-11-20" \
      -H "content-type: application/json" \
      -d '{
        "model": "claude-opus-5",
        "max_tokens": 1024,
        "messages": [{ "role": "user", "content": "List my GigaRAG buckets." }],
        "mcp_servers": [{
          "type": "url",
          "url": "https://mcp.gigarag.com/mcp",
          "name": "gigarag",
          "authorization_token": "<api-key>"
        }],
        "tools": [{ "type": "mcp_toolset", "mcp_server_name": "gigarag" }]
      }'

Check it worked

Send this once it is connected. An answer drawn from your workspace means the connection is live.

Run it. The model should answer with your GigaRAG buckets.

Written from the official docs: MCP connector