Patent Creator MCP Server
Allows searching over 100 million existing patents worldwide using Google BigQuery's public patent dataset, enabling prior art searches and patent analysis.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Patent Creator MCP Serversearch prior art for a solar-powered backpack"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Claude Patent Creator
An AI-powered patent creation and analysis system for Claude Code.
I built this because I needed to file a patent myself. I used AI to build the system, used the system to file the patent, and it worked. Now it's open source so anyone can use it. You do not need to be a lawyer or a programmer. If you can describe your idea in a chat window, you can use this.
In plain terms, this tool lets you:
Ask patent-rule questions in plain English. "Do my claims have to be numbered?" "How long can the abstract be?" You get the actual rule, with a citation, in about a second. (Under the hood it searches the MPEP, the examiner's rulebook, plus the patent statutes and regulations.)
Find out whether your idea is actually new. Search more than 100 million existing patents worldwide for anything close to your invention. This is called a prior art search, and it is the single most important step — it is how you learn whether a patent is even worth pursuing.
Get your draft checked before a human ever bills you an hour. The tool reads your claims and application the way an examiner would and flags the mechanical problems: unclear wording, missing sections, an abstract that is too long. It also tells you which checks it did not run, so a clean report means what it says.
Make the drawings. Patent-style diagrams and flowcharts from a description, no design software.
Go from "here is my idea" to a reviewable draft application. A guided workflow takes your description (or even your source code), hunts for prior art, drafts claims and a specification, checks everything, and hands you a package a patent professional can review quickly — for US or European filing.
New to the vocabulary? Every term this page uses is explained in the Glossary in plain English.
What this tool will and will not do — read this first
This tool is built for people who cannot afford a mistake, so it is honest to a fault. Know what you are getting:
It will tell you "no." If the search finds your idea already exists, the tool's job is to show you the evidence and save you the filing fee — not to flatter you into spending money. A well-reasoned "this is not new, and here is why" is the tool working, not failing.
It never says "verified" loosely. Every automated check reports what it ran and what it skipped. If a report looks clean, you can trust that the words mean exactly what they say.
It does not file anything for you. You review, you decide, you file. The tool prepares; you commit.
It is not a lawyer and does not give legal advice. What it produces is a well-prepared draft plus organized evidence — built so that a patent professional's review is fast and cheap instead of slow and expensive. For anything you intend to file, have a registered patent practitioner look at it. The point of this tool is to make that look-over affordable, not to skip it.
Some judgments are human-only. Whether your invention is "non-obvious" and whether it is the kind of thing patent law protects at all are legal judgments no software makes reliably. The tool arms you for those conversations; it does not have them for you.
Related MCP server: Open Patent MCP Gateway
Table of Contents
Quick Start
Never used Claude Code? It's Anthropic's AI assistant that runs in a terminal or as a desktop app — install it first (a paid Claude subscription is the only cost to start). Then come back here; setup is one command and the tool talks you through the rest.
Pick the path that fits your setup. All three get you to the same place.
Option A: Claude Code Plugin (Easiest)
If you're already using Claude Code, this is the fastest way in:
# Add the marketplace and install
/plugin marketplace add RobThePCGuy/Claude-Patent-Creator
/plugin install claude-patent-creator-standalone@claude-patent-creator
# Run setup
/claude-patent-creator-standalone:setup-patent-systemOption B: One-Line Install
pip install git+https://github.com/RobThePCGuy/Claude-Patent-Creator.git && patent-creator setupThis handles everything automatically: installs dependencies, detects your GPU, downloads MPEP PDFs (~500MB), builds the search index, and registers the MCP server with Claude Code. Restart Claude Code when it finishes.
Option C: Manual Install
git clone https://github.com/RobThePCGuy/Claude-Patent-Creator.git
cd Claude-Patent-Creator
# Optional: use a virtual environment
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
pip install -e .
patent-creator setupVerify It Worked
After any install path, run:
patent-creator healthYou should see a status report showing which components are ready. If something's off, the output will tell you what to fix.
What Can I Actually Do With This?
Here are some real examples. You can type these directly in Claude Code and the right skill or tool kicks in automatically. Say it in your own words — the "what to say" column is a starting point, not a required incantation.
What you want to do | What to say | What happens |
Find out if a rule applies to you | "Search MPEP for claim definiteness requirements" — or just "do my claims have to be written a certain way?" | The tool searches the examiner's rulebook and returns the relevant sections, with citations you can read yourself |
See if your idea already exists | "Search for patents about [your idea]" — e.g. "self-heating coffee mug" | Searches 100M+ existing patents and shows you the closest matches, so you know what you're up against |
Get your draft claims checked | "Review these claims" (paste them in) | Flags unclear wording, terms used before they're introduced, and structural problems — the mechanical mistakes an examiner rejects first |
Check a whole application |
| Runs the claims, description, and formatting checks together and reports everything at once |
Go from idea to draft application |
| A guided workflow: describe the invention, the tool searches prior art, drafts, checks, and assembles a reviewable package (typically about an hour) |
Make a drawing | "Create a block diagram showing [your system]" | Produces a patent-style figure, no design software needed |
Dig deep on whether your idea is new | "Conduct a prior art search for [your invention]" | A thorough multi-angle hunt through existing patents, with an honest verdict on what it found |
How It Works
Everything from here down gets progressively more technical. You do not need any of it to use the tool — the sections above plus the Glossary are enough. This part is for developers, patent professionals, and the curious.
The system has two modes that can work independently or together:
MCP Server is the engine. It exposes 20+ tools that any MCP-compatible client (Claude Code, Claude Desktop, etc.) can call programmatically. These tools handle search, analysis, and diagram generation.
Claude Code Plugin adds the interactive layer. Skills activate automatically based on what you're doing. Agents handle long-running tasks in the background. Slash commands give you quick access to common workflows.
Under the hood, patent regulation search uses a hybrid approach: FAISS vector search finds semantically similar content, BM25 lexical search catches exact terminology matches, and a cross-encoder reranker sorts the combined results by relevance. Patent search goes through Google BigQuery's public patent dataset.
You (Claude Code) ──> MCP Server ──> Search / Analysis / Diagrams
│
┌──────────────┼──────────────┐
v v v
MPEP/USC/CFR BigQuery Graphviz
(hybrid RAG) (100M+ patents) (diagrams)Installation Options
Installs Python package dependencies
Detects your hardware (NVIDIA GPU, Apple Silicon, or CPU-only)
If a GPU is detected, uninstalls CPU-only PyTorch and installs the GPU version
Restarts the setup process with GPU-enabled PyTorch
Downloads MPEP, 35 USC, and 37 CFR PDFs (~500MB) from the USPTO
Builds the hybrid search index (FAISS + BM25) with GPU acceleration if available
Registers the MCP server with Claude Code
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
pip install git+https://github.com/RobThePCGuy/Claude-Patent-Creator.git && patent-creator setupIf you go this route, remember to activate the venv before running any manual commands. Claude Code handles activation automatically.
claude --plugin-dir ./Claude-Patent-CreatorThis loads the plugin directly from your local checkout without installing from the marketplace.
CLI Commands
patent-creator setup # Full setup wizard (downloads, builds index, registers MCP)
patent-creator health # System health check (shows what's working and what isn't)
patent-creator status # Same as health
patent-creator verify-config # Check Claude Code MCP configuration
patent-creator serve # Run the MCP server manually
patent-creator rebuild-index # Rebuild the MPEP search index
patent-creator download-mpep # Download MPEP PDFs only
patent-creator download-all # Download all sources (MPEP + 35 USC + 37 CFR)
patent-creator check-bigquery # Test BigQuery connectionMCP Tools Reference
Search
Tool | What it does |
| Hybrid RAG search across MPEP, 35 USC, and 37 CFR with filters |
| Pull full content of a specific MPEP section |
| Full-text keyword search worldwide, claims included (recommended; free SerpApi key, 250 searches/month) |
| Keyword search fallback when no SerpApi key is set (~$2 a search past the free monthly TiB) |
| Get details on a specific patent (claims by default; abstract/description opt-in) |
| Get details on up to 50 patents in one query, same cost as one |
| Search by CPC classification code |
| Search via the USPTO API |
| Get patent details from USPTO |
| Pull recent filings |
Getting the campaign workflow (skills)
The MCP server above gives Claude the TOOLS. The campaign workflow — the skill that runs mining, prior art, worth-it economics, drafting, and the red teams end to end — ships as a Claude Code plugin. Two commands:
claude plugin marketplace add RobThePCGuy/Claude-Patent-Creator
claude plugin install claude-patent-creator-standalone@claude-patent-creatorRe-run the install command after upgrades to refresh the skills.
Analysis
Tool | What it does |
| 35 USC 112(b) compliance check (definiteness, antecedent basis, structure) |
| 35 USC 112(a) adequacy check (written description, enablement, best mode) |
| MPEP 608 compliance (abstract, title, drawings, required sections) |
| Whole-package consistency: stale verification stamps, claim-count disagreements, status contradictions, commentary inside filing copies, date errors |
Generation
Tool | What it does |
| Generate patent-style diagrams from Graphviz DOT code |
| Build a flowchart from a list of steps and connections |
| Build a block diagram from components and relationships |
| Add patent reference numbers to an existing SVG diagram |
| List available diagram templates |
System
Tool | What it does |
| Search index statistics |
| BigQuery configuration status |
| Graphviz availability |
| USPTO API connectivity |
| Combined patent retrieval across sources |
Skills, Agents, and Slash Commands
Skills (activate automatically)
You don't need to call these directly. Just describe what you want to do and the right skill kicks in.
Skill | When it activates | What it brings |
setup-assistant | Installing, configuring, or troubleshooting | Full setup lifecycle guidance |
patent-reviewer | Reviewing a complete application for compliance | Comprehensive review (claims + spec + formalities) |
patent-claims-analyzer | Reviewing claims specifically for 35 USC 112(b) | Deep-dive claims analysis (definiteness, antecedent basis, structure) |
patent-search | Searching patents or prior art | BigQuery search workflows via the MCP tools |
bigquery-patent-search | Quick BigQuery-only patent search | Keyword, CPC, and patent detail retrieval across 100M+ patents |
mpep-search | Finding MPEP sections or regulations | Hybrid RAG search |
patent-diagram-generator | Creating technical diagrams | Flowcharts, block diagrams, system architectures via Graphviz |
patent-application-creator | Drafting a patent application interactively | Guided end-to-end workflow (prior art, claims, spec, diagrams, compliance) |
prior-art-search | Novelty or freedom-to-operate analysis | 7-step prior art discovery methodology |
index-manager | Building or rebuilding the search index | MPEP index lifecycle management |
development-assistant | Adding features or creating tools | Development workflows and patterns |
troubleshooting-assistant | Something's broken | Systematic 6-step diagnostics |
testing-assistant | Running tests or validation | Test suite execution |
Agents (long-running, work independently)
These run in the background while you keep working on other things.
Agent | What it does | How long | Output |
patent-creator | Drafts a complete USPTO-ready application | 55-80 min | Specification, claims, abstract, diagrams, validation report |
prior-art-searcher | Comprehensive prior art search | 15-30 min | Patentability report, top 10 prior art, claim strategy, IDS list |
To use them: "Create a patent for [your invention], use the patent-creator agent"
Slash Commands
/create-patent # Complete patent creation workflow (55-80 min)
/search-prior-art # Prior art search with novelty analysis
/full-review # Parallel review (claims + spec + formalities)
/review-claims # Claims-only 35 USC 112(b) analysis
/review-specification # Specification-only 35 USC 112(a) analysis
/review-formalities # MPEP 608 formalities checkConfiguration
Environment Variables
Create a .env file in the project root (see .env.example):
# Required for BigQuery patent search
GOOGLE_CLOUD_PROJECT=your-project-id
# Optional: EPO OPS API (for EP patent full-text search)
# Free registration at https://developers.epo.org
EPO_OPS_KEY=your-consumer-key
EPO_OPS_SECRET=your-consumer-secret
# Optional API keys (for HyDE query expansion)
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
# Optional settings
PATENT_LOG_LEVEL=INFO
PATENT_LOG_FORMAT=human
PATENT_ENABLE_METRICS=true
PATENT_MPEP_USE_HYDE=false
PATENT_MPEP_DEVICE=gpu
PATENT_OPERATION_TIMEOUT=300BigQuery gives you access to 100M+ worldwide patents. It requires a Google Cloud project with billing enabled (the public patent dataset itself is free to query within BigQuery's free tier).
# 1. Install Google Cloud SDK
# https://cloud.google.com/sdk/docs/install
# 2. Authenticate
gcloud auth application-default login
# 3. Set quota project (replace with your project ID)
gcloud auth application-default set-quota-project your-project-id
# 4. Set the environment variable
export GOOGLE_CLOUD_PROJECT="your-project-id" # Linux/macOS
$env:GOOGLE_CLOUD_PROJECT="your-project-id" # Windows PowerShell
# 5. Test it
patent-creator check-bigqueryGit Bash is required for the claude mcp add command on Windows. Install Git for Windows and set the path:
# In your .env file
CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exeUse forward slashes in MCP config paths. The setup wizard handles this, but if you're configuring manually:
# Correct
claude mcp add ... -- "C:/Users/YourName/venv/Scripts/python.exe"
# Wrong (will fail)
claude mcp add ... -- "C:\Users\YourName\venv\Scripts\python.exe"Requirements
Minimum
Python: 3.9 - 3.13 (3.14 is experimental)
RAM: 8GB
Disk: ~2GB (MPEP PDFs + search index)
Optional (but recommended)
GPU: NVIDIA with CUDA 12.8 (makes indexing 5-10x faster) or Apple Silicon (2-3x faster)
Google Cloud: Project with BigQuery enabled (for patent search)
Graphviz: System package (for diagram generation)
Package | Version | Purpose |
mcp | >=2.0.0, <3.0.0 | MCP Python SDK (MCPServer) |
sentence-transformers | >=5.1.2, <7.0.0 | Text embeddings |
faiss-cpu | >=1.13.2 | Vector similarity search |
numpy | >=1.26.0, <3.0.0 | Array operations |
rank-bm25 | >=0.2.2 | Lexical search |
transformers | >=4.57.6, <6.0.0 | HuggingFace models |
google-cloud-bigquery | >=3.41.0 | Patent search |
pydantic | >=2.12.5 | Data validation |
graphviz | >=0.21 | Diagram generation |
PyMuPDF | >=1.26.0 | PDF processing |
See pyproject.toml for the complete list.
Architecture
claude-patent-creator/
├── .claude-plugin/ # Plugin manifest and marketplace config
├── mcp_server/ # Core MCP server
│ ├── server.py # MCPServer entry point
│ ├── mpep_search.py # Hybrid RAG search engine
│ ├── bigquery_search.py # BigQuery patent search
│ ├── claims_analyzer.py # 35 USC 112(b) analyzer
│ ├── specification_analyzer.py # 112(a) analyzer
│ ├── fThis server cannot be deployed
Maintenance
Related MCP Connectors
Patent search, USPTO data, patent landscape & pgvector prior-art search for agents.
Patent prior-art search, claim comparison, and codebase scans for patentable tech (patent_scan).
Real-time Amazon, WIPO & PACER data for AI agents — 19 tools via the MCP protocol.
AI-powered patent intelligence for search & analysis
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for patent search and prior art discovery powered by Google Patents public dataset on BigQuery. Supports searching patents, fetching full patent details with CPC codes and citations, and retrieving legal claims text.36MIT
- -licenseNot gradedqualityCmaintenanceMulti-source patent search MCP server that allows AI agents to search global patent databases (Google Patents, BigQuery, EPO OPS) via natural language queries.-
- FlicenseNot gradedqualityAmaintenanceExposes 20+ programmatic tools that any MCP-compatible client can call to search patent rules and statutes with citations, hunt prior art across 100M+ patents via Google BigQuery, check drafts for examiner-style compliance problems, and generate patent-style diagrams. It serves as the underlying engine for patent research, analysis, and application drafting workflows.-
- FlicenseNot gradedqualityAmaintenanceEnables users to search patent rules and prior art across MPEP/USC/CFR and BigQuery's 100M+ patent dataset, run automated 35 USC 112 compliance and claim reviews, and generate patent-style diagrams. It exposes 20+ tools for patent drafting, analysis, and diagram generation through any MCP-compatible client.-