Godrays
Gemini CLI

Connect Lawstronaut to Gemini CLI

Add Lawstronaut to your Gemini CLI settings, then query legal data right from the terminal.

Setup

1

Run gemini mcp add --transport http lawstronaut https://mcp.lawstronaut.com — or add this to ~/.gemini/settings.json:

{
  "mcpServers": {
    "lawstronaut": {
      "httpUrl": "https://mcp.lawstronaut.com"
    }
  }
}

Note: use httpUrl, not url (that’s SSE only).

2

Generate a token in the Developer Portal, add "headers": { "Authorization": "Bearer $LAWSTRONAUT_TOKEN" } to the config, and export LAWSTRONAUT_TOKEN=<your-token>.

3

Start gemini and run /mcp to confirm Lawstronaut is connected.

Test your connection

Ask Gemini: “What are the filing requirements for an EU trademark, with sources?”