Skip to content
Gemini CLI

PatentRef for Gemini CLI

io.github.patentref/patentref-mcp

PatentsView-compatible US patent API: claim trees, patent briefs and search, grants 1976 to now.

client:Gemini CLI transport:stdio runtime:pypi

Install PatentRef in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "patentref-mcp": {
      "command": "uvx",
      "args": [
        "patentref-mcp"
      ],
      "env": {
        "PATENTREF_API_KEY": "<PATENTREF_API_KEY>",
        "PATENTREF_BASE": "<PATENTREF_BASE>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

PatentRef in other clients