Patent MCP Server

Patent MCP Server

An MCP server that gives AI agents access to global patent data, including 1.4 billion records and Chinese full-text, with zero-config mode for basic tools.

Category
Visit Server

README

Patent MCP Server

πŸš€ Clone. Install. Done. Give your AI agent the ability to read global patents β€” no API key, no cloud, no external service.

Tests Python License MCP

An MCP (Model Context Protocol) server that gives AI agents access to global patent data β€” 1.4 billion patent records, Chinese full-text included. Runs locally on your machine. No external API, no subscription.


Why Self-Deployed

  • It's just Python. Install it, your agent uses it. No server to maintain, no credential to share.
  • No API key for 80% of use cases. Patent details and claims come straight from Google Patents public pages.
  • Your data stays local. Nothing leaves your machine except the same HTTP requests a browser would make.
  • BigQuery search is optional. Only turn it on if you need full-text search across 1.4B records.

30-Second Install

git clone https://github.com/deeparchi-ai/patent-mcp-server.git
cd patent-mcp-server
pip install -e .

Quick Start

Pick your agent platform and add this to its MCP config:

Claude Desktop

{
  "mcpServers": {
    "patent-mcp": {
      "command": "python",
      "args": ["-m", "src.server"],
      "cwd": "/path/to/patent-mcp-server"
    }
  }
}

Cursor / Windsurf / Cline

Same config as Claude Desktop above.

Hermes Agent

mcp_servers:
  patent-mcp:
    command: "python"
    args: ["-m", "src.server"]
    workdir: "/path/to/patent-mcp-server"

Any MCP Client (via mcp.json)

mcp-get install deeparchi-ai/patent-mcp-server

Now ask your agent:

"Get patent US-7650331-B1 and summarize the claims."


What's Included

Tool What It Does Needs Setup?
get_patent Full patent details: classifications, citations (X/Y/A/D), inventors, assignees, family No
get_patent_claims US patent claims text β€” the legal scope of protection No
search_patents Search 1.4B patents by keyword, country, CPC, date range Optional GCP

The first two cover 80% of use cases. Zero cost. Zero setup.


Optional: Enable BigQuery Search

If you need search_patents, add a GCP project:

  1. Create a GCP project with BigQuery enabled
  2. Create a service account, download JSON key
  3. Set env vars:
    export GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"
    export GCP_PROJECT_ID="your-project-id"
    
  4. Copy the wrapper template and fill in your paths:
    cp run.sh.example run.sh
    # Edit run.sh β†’ set your GCP paths
    

BigQuery free tier: 1 TB/month β€” individual use is essentially free.


Advanced: Team Server (HTTP/SSE)

Need multiple people to share one patent-mcp instance? Start it as an HTTP server:

cp run-http.sh.example run-http.sh
# Edit β†’ set GCP creds (skip if only using web tools)
PORT=8090 ./run-http.sh

Team members connect with:

mcp_servers:
  patent-mcp:
    url: "http://<server-ip>:8090/sse"

A systemd service template is included for production deployment.


Tools Reference

get_patent

get_patent(publication_number="US-7650331-B1")

Returns: classifications, citations (X/Y/A/D prior art markers), family ID, dates, inventors, assignees. Cites prior art markers so your agent can assess novelty at a glance.

get_patent_claims

get_patent_claims(publication_number="US-7650331-B1")

Returns: full claims text. (US patents only; non-US return empty.)

search_patents

search_patents(query="transformer attention", country="CN", after="2023-01-01", limit=5)

CN results include Chinese titles and abstracts. At least one of country, cpc, or after is required.


How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  AI Agent    │────▢│  patent-mcp-server          β”‚
β”‚  (Claude,    β”‚     β”‚  (runs on YOUR machine)     β”‚
β”‚   Cursor,    β”‚     β”‚                             β”‚
β”‚   Hermes)    β”‚     β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚              β”‚     β”‚  β”‚ Web      β”‚ β”‚ BigQuery  β”‚ β”‚
β”‚              β”‚     β”‚  β”‚ Scraper  β”‚ β”‚ Client    β”‚ β”‚
β”‚              β”‚     β”‚  β”‚ (free)   β”‚ β”‚ (optional)β”‚ β”‚
β”‚              β”‚     β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β”‚
β”‚              β”‚     β”‚       β”‚             β”‚       β”‚
β”‚              β”‚     β”‚  Google Patents   BigQuery  β”‚
β”‚              β”‚     β”‚  Public Pages     1.4B rows β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • Web scraping for details β€” fast (~1.5s), free, no credentials
  • BigQuery for search β€” 1.4B records, CN full-text, optional
  • Smart fallback β€” get_patent tries web first, auto-falls to BigQuery if you have it

Development

pip install -e ".[dev]"

pytest tests/ -v          # 32 tests, ~1.5s
ruff check src/ tests/    # lint
mypy src/                 # type check

License

MIT β€” see LICENSE.


Author

DeepArchi OPC β€” AI agent infrastructure for enterprise architecture.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured