# PatentRef

> PatentRef is a freemium MCP server for legal and government. US patent search, claim trees and lapse status through a PatentsView-compatible API. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI
- **Website:** https://patentref.io/docs/
- **Repository:** https://github.com/patentref/patentref-mcp
- **MCP Registry name:** io.github.patentref/patentref-mcp
- **Categories:** legal and government, analytics and data
- **Listing updated:** 2026-11-14

## About

PatentRef fills a gap left when PatentsView's PatentSearch API paused on 2026-03-20. It answers the same v1 grammar, with the same paths, q/f/s/o parameters, response shape and error codes, from its own snapshot of USPTO bulk data. Existing clients work by changing the base URL and sending a PatentRef key in X-Api-Key.

The MCP server adds task-shaped tools. check_patent_status returns expiry and maintenance-fee state for one granted patent with its basis and next steps, described as record facts and not a legal opinion. search_patents queries by title, date, CPC class, assignee or inventor, similar_patents ranks by closeness to a passage, and patent briefs bundle claims with status. Grants run from 1976 to now.

A free key allows 1,000 requests a month and 45 a minute. Every answer carries an X-Data-Version header, and the data is also published as SQLite files on Zenodo.

## Features

- **Drop-in grammar:** Same PatentSearch v1 parameters, shapes and errors.
- **Lapse status:** Expiry and maintenance-fee status with reinstatement basis.
- **Field search:** Query by title, dates, CPC, assignee or inventor.
- **Similarity ranking:** Rank patents against a passage of text.
- **Versioned data:** Every answer carries its data build.
- **Open snapshot:** SQLite files are published on Zenodo.

## Good for

- Check whether a patent has lapsed for fees
- Move a PatentsView client to a working endpoint
- Find patents by assignee and CPC class
- Rank prior art against a draft passage

## Install

### Claude Code (Terminal)

```sh
claude mcp add patentref-mcp --env PATENTREF_API_KEY='<PATENTREF_API_KEY>' -- uvx patentref-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "patentref-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "patentref-mcp"
      ],
      "env": {
        "PATENTREF_API_KEY": "<PATENTREF_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `check_patent_status`: Expiry and maintenance-fee status for one granted US patent.
- `search_patents`: Search granted US patents with the PatentSearch v1 grammar.
- `similar_patents`: Rank patents by closeness to a passage of text.
- `get_patent_brief`: Claims together with status for a patent.
- `search_disclosures`: Search PatentRef registry records.

## FAQ

### Do I need a key?

Yes, a free PatentRef key; a PatentsView key does not work.

### What are the free limits?

1,000 requests a month and 45 a minute.

### Is status a legal opinion?

No. The tool returns record facts, not legal advice.

### What years are covered?

Granted US patents from 1976 to now.

### Is PatentRef free?

PatentRef has a free plan, with paid plans for more usage or features.

### How do I add PatentRef to Claude Code?

Run this command in your terminal: claude mcp add patentref-mcp --env PATENTREF_API_KEY='<PATENTREF_API_KEY>' -- uvx patentref-mcp

### What are the best alternatives to PatentRef?

The closest alternatives to PatentRef are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/patentref
