Guides through installation, configuration, and first-time setup of the Claude Patent Creator system.
Guides installation and configuration of the Claude Patent Creator MCP server. Use when setting up for the first time, troubleshooting installation issues, or migrating to a new machine.
/plugin marketplace add RobThePCGuy/Claude-Patent-Creator/plugin install robthepcguy-claude-patent-creator-standalone@RobThePCGuy/Claude-Patent-CreatorThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Expert system for installing, configuring, and setting up the Claude Patent Creator MCP server.
Installing first time, setting up new environment, configuring authentication, troubleshooting installation, migrating to new machine, updating dependencies, verifying health.
# 1. Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
source venv/bin/activate # Linux/macOS
# 2. Run installer
python install.py
# 3. Restart Claude Code
# 4. Test
# Ask Claude: "Search MPEP for claim definiteness"
Requirements:
Verify:
python --version # Should show 3.9-3.12
nvidia-smi # Optional: Check GPU
# Create venv
python -m venv venv
# Activate
venv\Scripts\activate # Windows
source venv/bin/activate # Linux/macOS
# Verify
which python # Should show venv path
Important: Always activate venv before running scripts!
Automated (Recommended):
python install.py
# Handles: PyTorch order, GPU detection, MCP registration
Manual (Advanced):
# Install PyTorch FIRST (critical!)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128
# Then install package (includes all dependencies)
pip install -e .
Why PyTorch order matters: If installed after sentence-transformers, you get CPU-only version.
# Authenticate
gcloud auth application-default login \
--scopes=https://www.googleapis.com/auth/cloud-platform
# Set project
gcloud config set project YOUR_PROJECT_ID
# Add to .env
echo "GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID" >> .env
# Test
python scripts/test_bigquery.py
Automated:
python install.py # Handles registration automatically
Manual:
# Get paths
patent-creator verify-config
# Register (use forward slashes!)
claude mcp add --transport stdio claude-patent-creator --scope user -- \
"C:/path/to/venv/Scripts/python.exe" \
"C:/path/to/mcp_server/server.py"
# Verify
claude mcp list
Critical: Restart Claude Code after registration!
Create .env:
# Required
GOOGLE_CLOUD_PROJECT=your_project_id
ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>
# Optional
PATENT_LOG_LEVEL=INFO
PATENT_LOG_FORMAT=human
PATENT_ENABLE_METRICS=true
# Windows only
CLAUDE_CODE_GIT_BASH_PATH=C:\dev\Git\bin\bash.exe
patent-creator health
# Expected:
# [OK] Python version OK
# [OK] Dependencies installed
# [OK] PyTorch with CUDA
# [OK] MPEP index loaded
# [OK] BigQuery configured
# [OK] All systems operational
python scripts/test_install.py
python scripts/test_gpu.py
python scripts/test_bigquery.py
python scripts/test_analyzers.py
Test each capability:
1. "Search MPEP for claim definiteness requirements"
2. "Search for patents about neural networks filed in 2024"
3. "Review these claims: 1. A system comprising..."
4. "Create a flowchart for user login process"
If all work -> Setup complete!
| Issue | Solution |
|---|---|
| PyTorch CPU-only | Reinstall PyTorch FIRST |
| MCP not loading | Restart Claude Code, verify with claude mcp list |
| Path errors | Use forward slashes (/) not backslashes (\) |
| BigQuery fails | Re-auth: gcloud auth application-default login |
| Index not found | Build: patent-creator rebuild-index |
| Import errors | Activate venv |
venv\Scripts\activatesource venv/bin/activatevenv\Scripts\activate
pip install -e . --upgrade
python scripts/test_install.py
patent-creator rebuild-index
# Wait 5-15 minutes
claude mcp remove claude-patent-creator
python install.py
# Restart Claude Code
# Setup
python install.py
patent-creator health
claude mcp list
# Testing
python scripts/test_install.py
python scripts/test_gpu.py
python scripts/test_bigquery.py
# Maintenance
patent-creator rebuild-index
patent-creator verify-config
.env - Environment variablesrequirements.txt - Dependenciesmcp_server/index/ - MPEP search indexpdfs/ - MPEP PDF files