by RobThePCGuy
USPTO patent creation system with MCP server + Claude Code plugin. Hybrid RAG search over MPEP/USC/CFR, BigQuery access to 76M+ patents, automated 35 USC 112 compliance checks, prior art search, diagram generation. GPU-accelerated with skills and autonomous agents.
# Add to your Claude Code skills
git clone https://github.com/RobThePCGuy/Claude-Patent-CreatorGuides for using ai agents skills like 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, whether you're a developer exploring AI tooling or a patent professional looking to speed up your workflow.
In plain terms, this tool lets you:
No comments yet. Be the first to share your thoughts!
Pick the path that fits your setup. All three get you to the same place.
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-system
pip install git+https://github.com/RobThePCGuy/Claude-Patent-Creator.git && patent-creator setup
This 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.
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 setup
After any install path, run:
patent-creator health
You should see a status report showing which components are ready. If something's off, the output will tell you what to fix.
Here are some real examples. You can type these directly in Claude Code and the right skill or tool kicks in automatically.
| What you want to do | What to say | What happens |
|---|---|---|
| Find the MPEP rule on claim definiteness | "Search MPEP for claim definiteness requirements" | Hybrid search returns the most relevant MPEP sections with citations |
| Look for prior art | "Search for patents about neural network training filed in 2024" | BigQuery searches 100M+ patents and returns matching results |
| Check your claims | "Review these claims for 35 USC 112(b) compliance" | Automated analysis flags indefinite terms, missing antecedent basis, structural issues |
| Review a full application | /full-review | Runs claims + specification + formalities checks in parallel |
| Create a patent from scratch | /create-patent | Guided 6-phase workflow, takes 55-80 min, produces a complete filing package |
| Generate a diagram | "Create a block diagram showing the system architecture" | Generates a patent-style Graphviz diagram |
| Search prior art thoroughly | "Conduct a prior art search for [your invention]" | Automated novelty and freedom-to-operate analysis |
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)
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 setup
If you go this route, remember to activate the venv before running any manual commands. Claude Code handles activation automatically.
claude --plugin-dir ./Claude-Patent-Creator
This loads the plugin directly from your local checkout without installing from the marketplace.
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 connection
| Tool | What it does |
|---|---|
| search_mpep | Hybrid RAG search across MPEP, 35 USC, and 37 CFR with filters |
| get_mpep_section | Pull full content of a specific MPEP section |
| search_patents_bigquery | Search 100M+ patents by keyword |
| get_patent_bigquery | Get full details on a specific patent |
| search_patents_by_cpc_bigquery | Search by CPC classification code |
| search_uspto_api | Search via the USPTO API |
| get_uspto_patent | Get patent details from USPTO |
| get_recent_uspto_patents | Pull recent filings |
| Tool | What it does |
|---|---|
| review_patent_claims | 35 USC 112(b) compliance check (definiteness, antecedent basis, structure) |
| review_specification | 35 USC 112(a) adequacy check (written description, enablement, best mode) |
| check_formalities | MPEP 608 compliance (abstract, title, drawings, required sections) |
| Tool | What it does |
|---|---|
| render_diagram | Generate patent-style diagrams from Graphviz DOT code |
| create_flowchart | Build a flowchart from a list of steps and connections |
| create_block_diagram | Build a block diagram from components and relationships |
| add_diagram_references | Add patent reference numbers to an existing SVG diagram |
| get_diagram_templates | List available diagram templates |
| Tool | What it does |
|---|---|
| get_index_stats | Search index statistics |
| check_bigquery_status | BigQuery configuration status |
| check_diagram_tools_status | Graphviz availability |
| check_uspto_api_status | USPTO API connectivity |
| `get_patent_detail