Skip to content
MCP server

Patents MCP Server

45 patent tools across USPTO, PTAB, EPO and Google BigQuery for IP research

Runs locally

Patents MCP Server is an MCP server for legal and government. It runs locally on your machine and is started by your AI client.

Platforms
CLI, Self-hosted
Runs
Locally
Version
2.0.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a 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

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

Or share it with your project

Add to .mcp.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 Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.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>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "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>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • USPTO_API_KEYUSPTO Open Data Portal key (data.uspto.gov) — enables ODP, PTAB, citations and office actions
  • EPO_CONSUMER_KEYEPO OPS consumer key (developers.epo.org) — enables international patent families and legal status
  • EPO_CONSUMER_SECRETEPO OPS consumer secret
  • GOOGLE_APPLICATION_CREDENTIALSPath to a GCP service-account key with bigquery.jobUser and bigquery.dataViewer — enables full-text search across 90M+ patents
  • GOOGLE_CREDENTIALS_JSONGCP service-account key as inline JSON — the alternative to GOOGLE_APPLICATION_CREDENTIALS when no file can be mounted
  • GOOGLE_CLOUD_PROJECTGCP project ID billed for the BigQuery queries
  • TRANSPORTTransport: 'stdio' (default) or 'httpStream' for remote/Docker deployments
  • PORTPort to listen on when TRANSPORT is httpStream (default 8080)
  • LOG_LEVELLog verbosity: DEBUG, INFO (default), WARN or ERROR
  • HOSTInterface to bind when TRANSPORT is httpStream (default 0.0.0.0)
  • PUBLIC_BASE_URLBase URL used to build the /resources/{id}.pdf links that odp-download-document returns

About Patents MCP Server

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.

Tools this server provides (19)

Taken from the project documentation; the running server may differ.

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-applicationsName suggests: reads
Searches patent applications from 2001.
odp-download-documentName suggests: reads
Downloads a file-wrapper document as a PDF.
ptab-search-proceedingsName suggests: reads
Searches PTAB proceedings.
ptab-search-decisionsName suggests: reads
Searches PTAB decisions.
ptab-search-appealsName suggests: reads
Searches PTAB appeals.
citations-get-enrichedName suggests: reads
Returns enriched citation data.
litigation-searchName suggests: reads
Searches patent litigation.
epo-search-patentsName suggests: reads
Runs a CQL search on EPO data.
epo-family-lookupName suggests: reads
Finds INPADOC family members.
epo-legal-statusName suggests: reads
Returns legal status across offices.
epo-number-convert
Converts between number formats.
bigquery-patent-searchName 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-textName suggests: reads
Returns office action text.
check-api-statusName suggests: reads
Health-checks configured APIs.
get-cpc-infoName suggests: reads
Looks up a CPC classification.
get-status-codeName suggests: reads
Explains USPTO status codes.

What it does

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

Pricing

Pricing unknown

Needs your own USPTO, EPO and Google Cloud credentials

Patents MCP Server 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.

How AIPoweredBot checks servers