Data 20261201.1 · as of 2026-12-01 · API 1.29.0 · Free beta

MCP server for patents

Install patentref-mcp from PyPI and add it to your MCP client with a free PatentRef key. It runs on your machine over stdio and gives the agent 19 read-only tools for US patents, including claim trees, patent briefs, status records and search. Plan mode swaps the 19 tools for two, so the tool list and instructions cost 599 tokens instead of 4,955.

How to set it up

  1. Get a free key at https://patentref.io/api/v1/meta/signup/.
  2. Install the package. It needs Python 3.10 or later.
  3. Add the server to your MCP client with the key in its environment.
  4. For plan mode, add "PATENTREF_MCP_MODE": "plan" to the same env block.
  5. Check the install with python -m patentref_mcp.smoke 10000364.
pip install patentref-mcp

Claude Desktop, in claude_desktop_config.json:

{"mcpServers": {"patentref": {"command": "patentref-mcp", "env": {"PATENTREF_API_KEY": "YOUR_KEY"}}}}

The same in plan mode:

{"mcpServers": {"patentref": {"command": "patentref-mcp", "env": {"PATENTREF_API_KEY": "YOUR_KEY", "PATENTREF_MCP_MODE": "plan"}}}}

Claude Code:

claude mcp add patentref -e PATENTREF_API_KEY=YOUR_KEY -- patentref-mcp

What you get

Good to know

FAQ

Is there a hosted MCP URL?

No. patentref-mcp runs on your machine. If your client connects to a URL, start it with --http, which serves at http://127.0.0.1:8787/mcp by default.

What is plan mode?

Set PATENTREF_MCP_MODE=plan and the server lists two tools, search_api and run_plan, in place of 19. The tool list and instructions drop from 4,955 to 599 tokens.

Which MCP clients does it work with?

Clients that start a local stdio server. The Agents page has setup lines for Claude Desktop, Claude Code and Cursor.

More questions

PatentRef is an independent service and is not affiliated with the USPTO. Answers describe the text as the USPTO printed it; none is a legal conclusion.