robthepcguy/claude-patent-creator
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.
npx skills add robthepcguy/claude-patent-creatorREADME
Claude Patent Creator
USPTO patent creation and analysis system with dual-mode architecture: MCP server for programmatic access + Claude Code plugin with skills, autonomous agents, and slash commands. Features hybrid RAG search (FAISS+BM25+reranking) over MPEP/USC/CFR, BigQuery access to 76M+ patents, automated compliance checking, prior art search, and diagram generation.
Project Status
This project is a work in progress and is not fully functional.
Contributions, issues, and pull requests are welcome. Feel free to explore, experiment, or build upon the code. No guarantees of stability or completeness are provided.
Features
Dual-Mode Architecture
| Mode | Use Case | Components | Access Method |
|---|---|---|---|
| MCP Server | Programmatic API access | 20 MCP tools | Any MCP client (Claude Code, Claude Desktop, etc.) |
| Claude Code Plugin | Interactive workflows | 15 skills + 10 agents + slash commands + hooks | Claude Code IDE |
Core Capabilities
Search & Retrieval (20 MCP Tools)
- MPEP/USC/CFR Search - Hybrid RAG (FAISS vector + BM25 lexical + cross-encoder reranking) across 500MB of USPTO regulations
- Patent Search - BigQuery access to 76M+ worldwide patents with full-text search and CPC classification
- USPTO API Integration - Real-time patent data retrieval and recent filings
- Prior Art Discovery - Automated novelty and freedom-to-operate analysis
Automated Analysis
- Claims Review - 35 USC 112(b) compliance: definiteness, antecedent basis, indefinite terms, claim structure
- Specification Review - 35 USC 112(a) adequacy: written description, enablement, best mode
- Formalities Check - MPEP 608 compliance: abstract length, title format, drawings, required sections
Content Generation
- Diagram Generator - Patent-style technical diagrams using Graphviz (block diagrams, flowcharts, system architectures)
- Patent Creation - Guided workflow for drafting complete USPTO-ready applications
Claude Code Plugin Features
- 15 Skills - Specialized expertise modules (setup, development, index management, troubleshooting, testing, patent review, search, diagrams, prior art)
- 10 Autonomous Agents - Long-running workflows (patent-creator, prior-art-searcher, mpep-expert, patent-drafter, etc.)
- Slash Commands - Quick-access workflows (
/create-patent,/search-prior-art,/review-claims,/full-review, etc.) - Hooks System - Custom event-driven automation
Technology Stack
Architecture:
FastMCP (MCP Server Framework)
+-- 20 MCP Tools (search, analysis, generation)
+-- Claude Code Plugin (skills, agents, commands, hooks)
RAG Pipeline:
FAISS Vector Search (BGE-base-en-v1.5, 768-dim embeddings)
+ BM25 Lexical Search (rank-bm25)
+ Cross-Encoder Reranking (MS-MARCO MiniLM-L-6-v2)
+ HyDE Query Expansion (optional, API-based)
Data Sources:
- MPEP (Manual of Patent Examining Procedure)
- 35 USC (Patent Statutes)
- 37 CFR (Patent Regulations)
- Subsequent Publications (USPTO updates)
- BigQuery patents-public-data (76M+ patents)
ML Stack:
PyTorch 2.9+ (CUDA 12.8 for GPU acceleration)
Sentence Transformers 5.1+
HuggingFace Transformers 4.57+
FAISS 1.12+ (CPU/GPU)
Validation & Monitoring:
Pydantic v2 (type safety + input validation)
Structured logging (JSON/human formats)
Performance tracking (@track_performance)
Health check system
Installation
Option 1: One-Line Install (Recommended)
# Installs package, detects GPU, downloads MPEP, builds index, registers MCP server
pip install git+https://github.com/RobThePCGuy/Claude-Patent-Creator.git && patent-creator setup
# Restart Claude Code after completion
What happens automatically:
- Installs Python package dependencies
- Detects hardware (NVIDIA GPU/Apple Silicon/CPU)
- Uninstalls CPU-only PyTorch if GPU detected
- Installs correct PyTorch (CUDA 12.8/MPS/CPU)
- Restarts setup with GPU-enabled PyTorch
- Downloads MPEP PDFs (500MB) from USPTO
- Builds hybrid index with GPU acceleration
- Registers MCP server with Claude Code
Option 2: Manual Installation
# Clone repository
git clone https://github.com/RobThePCGuy/Claude-Patent-Creator.git
cd Claude-Patent-Creator
# Optional: Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
# Install package
pip install -e .
# Run setup wizard
patent-creator setup
Option 3: Claude Code Plugin (Standalone Mode)
# In Claude Code
/p
...