setup-patent-system

setup-patent-system is a command for Claude Code from Raw1mage/patentmcp. It costs 22 tokens per session (1,437 once invoked), scanned A, a copy of setup-patent-system, MIT.

A one-time setup command for installing and configuring the patent creator system, including its documents, search index, cloud search, and MCP server connection.

In plain words
What is it for?
Run it when installing the system on a machine or preparing a new environment for searching patent law and patent documents.
Why use it?
It brings the required downloads, Python packages, hardware settings, search index, and service registration together in one setup process.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-patent-creator-standalone plugin — 17 skills, 16 commands, 13 agents, 2 hooks shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Raw1mage/patentmcp
Claude Code
/plugin install claude-patent-creator-standalone

Made for: Claude Code.

Or install claude-patent-creator-standalone, the plugin that ships this one along with the rest of its 17 skills, 16 commands, 13 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-patent-system

README.md
[![agentmods](https://agentmods.dev/badge/commands/raw1mage/patentmcp/setup-patent-system.svg)](https://agentmods.dev/commands/raw1mage/patentmcp/setup-patent-system)
Your own site
<a href="https://agentmods.dev/commands/raw1mage/patentmcp/setup-patent-system"><img src="https://agentmods.dev/badge/commands/raw1mage/patentmcp/setup-patent-system.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,437 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01437
Opus 5 $0.00011 $0.00718
Sonnet 5 $0.00004 $0.00287
Haiku 4.5 $0.00002 $0.00144

Measured 6d ago against content hash 515f2a3721d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

setup-patent-system scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to setup-patent-system — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

refs/Claude-Patent-Creator/commands/setup-patent-system.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Setup Patent Creator System

Complete one-time setup for all patent creator capabilities.

What This Does

The patent-creator setup CLI handles everything automatically:

  1. Detect GPU and install PyTorch with correct CUDA version
  2. Download MPEP PDFs (500MB) - USPTO examination manual
  3. Download Legal Sources - 35 USC, 37 CFR, Federal Register updates
  4. Build Search Index - FAISS + BM25 hybrid search (5-65 min depending on GPU)
  5. Configure MCP server registration with Claude Code

Total Time: 30-90 minutes (most time is MPEP download and index building)

Requirements

  • Python 3.9-3.12 (3.11 recommended). Python 3.13+ may lack wheels for PyTorch/FAISS.
  • 8GB+ RAM (16GB for index building)
  • 5GB free disk space
  • Internet connection (for downloads)
  • Optional: NVIDIA GPU (10x faster index building)

Process

Step 1: Find Compatible Python

Python 3.13+ will NOT work — PyTorch and FAISS may not have wheels. Find 3.9-3.12:

# Check default
python --version 2>&1

# If 3.13+, look for compatible versions:
# Windows (py launcher):
py -3.12 --version 2>&1
py -3.11 --version 2>&1
py -3.10 --version 2>&1

# Linux/macOS:
python3.12 --version 2>&1
python3.11 --version 2>&1

Use the first compatible version found (3.9-3.12). Remember this as PYTHON_CMD for all remaining steps.

If no compatible Python is found, tell the user to install Python 3.12 from python.org.

Step 2: Create venv and Install Package

cd ${CLAUDE_PLUGIN_ROOT}
${PYTHON_CMD} -m venv venv

Use the venv Python for all remaining commands:

  • Windows: ${CLAUDE_PLUGIN_ROOT}/venv/Scripts/python
  • Linux/macOS: ${CLAUDE_PLUGIN_ROOT}/venv/bin/python

Install the package:

${VENV_PYTHON} -m pip install --upgrade pip
${VENV_PYTHON} -m pip install -e .

Step 3: Run Automated Setup

The patent-creator setup CLI handles GPU detection, PyTorch installation, MPEP downloads, and index building automatically:

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 167 lines · 22 tokens per session scan A 515f2a3721d8

Subscribe to this mod's changes

setup-patent-system is a command published in the GitHub repository Raw1mage/patentmcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 1,437 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to setup-patent-system, differing in 0 lines, and is treated as a copy.