# Patents MCP Server

> Patents MCP Server is an MCP server for legal and government. 45 patent tools across USPTO, PTAB, EPO and Google BigQuery for IP research. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/sapientsai/patents-mcp-server
- **MCP Registry name:** io.github.sapientsai/patents-mcp-server
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-23

## About

Tools only register when the matching credentials are configured, so a setup with just a USPTO key exposes the USPTO tools and nothing broken. A check-api-status tool reports which sources are live. Sources split 30 tools to USPTO Open Data, 8 to EPO Open Patent Services and 4 to Google BigQuery.

Coverage includes application and prosecution history, file-wrapper PDF download, PTAB proceedings, decisions and appeals, citations, litigation, office actions, INPADOC families and legal status across about 44 offices, and full-text search over 90 million patents. The README warns that BigQuery searches over the whole corpus scan roughly 200 to 300 GB, and that every query runs a dry run first with an estimate in the response. Its note says PatentsView support was removed after that API was shut down in 2026.

Six prompt templates cover prior art searches, validity analysis, competitor portfolios, PTAB research, freedom to operate and landscapes. It runs over stdio or HTTP and is built with FastMCP.

## Features

- **Per-source tool loading:** Tools appear only when their API keys are set.
- **USPTO and PTAB:** Applications, assignments, documents, IPR and PGR proceedings.
- **EPO families:** INPADOC families and legal status across about 44 offices.
- **BigQuery full text:** Search titles and abstracts across 90M+ patents.
- **Cost dry runs:** Each BigQuery query is estimated before it runs.
- **Workflow prompts:** Six templates such as prior art and freedom to operate.

## Good for

- Run a prior art search across US and European sources
- Research IPR history for a patent
- Map a competitor's patent portfolio
- Look up family members and legal status of a filing
- Build a CPC landscape of a technology area

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add patents-mcp-server --env USPTO_API_KEY='<USPTO_API_KEY>' --env EPO_CONSUMER_KEY='<EPO_CONSUMER_KEY>' --env EPO_CONSUMER_SECRET='<EPO_CONSUMER_SECRET>' --env GOOGLE_CREDENTIALS_JSON='<GOOGLE_CREDENTIALS_JSON>' -- npx -y patents-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add patents-mcp-server --env USPTO_API_KEY='<USPTO_API_KEY>' --env EPO_CONSUMER_KEY='<EPO_CONSUMER_KEY>' --env EPO_CONSUMER_SECRET='<EPO_CONSUMER_SECRET>' --env GOOGLE_CREDENTIALS_JSON='<GOOGLE_CREDENTIALS_JSON>' -- npx -y patents-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.patents-mcp-server]
command = "npx"
args = ["-y", "patents-mcp-server"]
env = { USPTO_API_KEY = "<USPTO_API_KEY>", EPO_CONSUMER_KEY = "<EPO_CONSUMER_KEY>", EPO_CONSUMER_SECRET = "<EPO_CONSUMER_SECRET>", GOOGLE_CREDENTIALS_JSON = "<GOOGLE_CREDENTIALS_JSON>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e USPTO_API_KEY='<USPTO_API_KEY>' -e EPO_CONSUMER_KEY='<EPO_CONSUMER_KEY>' -e EPO_CONSUMER_SECRET='<EPO_CONSUMER_SECRET>' -e GOOGLE_CREDENTIALS_JSON='<GOOGLE_CREDENTIALS_JSON>' patents-mcp-server npx -- -y patents-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "patents-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "patents-mcp-server"
      ],
      "env": {
        "USPTO_API_KEY": "<USPTO_API_KEY>",
        "EPO_CONSUMER_KEY": "<EPO_CONSUMER_KEY>",
        "EPO_CONSUMER_SECRET": "<EPO_CONSUMER_SECRET>",
        "GOOGLE_CREDENTIALS_JSON": "<GOOGLE_CREDENTIALS_JSON>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 15 of 19 tools read data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `odp-search-applications` (name suggests: reads): Searches patent applications from 2001.
- `odp-download-document` (name suggests: reads): Downloads a file-wrapper document as a PDF.
- `ptab-search-proceedings` (name suggests: reads): Searches PTAB proceedings.
- `ptab-search-decisions` (name suggests: reads): Searches PTAB decisions.
- `ptab-search-appeals` (name suggests: reads): Searches PTAB appeals.
- `citations-get-enriched` (name suggests: reads): Returns enriched citation data.
- `litigation-search` (name suggests: reads): Searches patent litigation.
- `epo-search-patents` (name suggests: reads): Runs a CQL search on EPO data.
- `epo-family-lookup` (name suggests: reads): Finds INPADOC family members.
- `epo-legal-status` (name suggests: reads): Returns legal status across offices.
- `epo-number-convert`: Converts between number formats.
- `bigquery-patent-search` (name suggests: reads): Full-text search on titles and abstracts.
- `bigquery-patent-family`: Returns family members by INPADOC family ID.
- `bigquery-citation-network`: Returns a citation graph to depth 1 or 2.
- `bigquery-cpc-analytics`: Returns filing statistics by CPC class.
- `office-action-get-text` (name suggests: reads): Returns office action text.
- `check-api-status` (name suggests: reads): Health-checks configured APIs.
- `get-cpc-info` (name suggests: reads): Looks up a CPC classification.
- `get-status-code` (name suggests: reads): Explains USPTO status codes.

## FAQ

### Which keys do I need?

A USPTO Open Data key, EPO OPS consumer key and secret, and a Google Cloud service account for BigQuery; each is optional.

### Can Patents MCP Server run remotely?

Yes: set TRANSPORT=httpStream and a PORT.

### Will BigQuery cost money?

The README notes a 1 TB monthly free tier and that broad full-text searches scan about 200 to 300 GB.

### What happened to PatentsView?

Support was removed after its API host was decommissioned in March 2026.

### How do I add Patents MCP Server to Claude Code?

Run this command in your terminal: claude mcp add patents-mcp-server --env USPTO_API_KEY='<USPTO_API_KEY>' --env EPO_CONSUMER_KEY='<EPO_CONSUMER_KEY>' --env EPO_CONSUMER_SECRET='<EPO_CONSUMER_SECRET>' --env GOOGLE_CREDENTIALS_JSON='<GOOGLE_CREDENTIALS_JSON>' -- npx -y patents-mcp-server

### What are the best alternatives to Patents MCP Server?

The closest alternatives to Patents MCP Server are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP and Pitot.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## 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.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons 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.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [ELBI](https://ai-powered.com/mcp/elbi): ELBI is an open-source MCP server for analytics and data.
- [MCP Observatory: one read only walk over every https endpoint in the official registry](https://ai-powered.com/mcp/mcp-observatory-one-read-only-walk-over-every-https-endpoint): MCP Observatory: one read only walk over every https endpoint in the official registry is an MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/patents-mcp-server
