MCPInstall

mpep-search

Expert system for searching USPTO MPEP, 35 USC statutes, 37 CFR regulations, and post-Jan 2024 updates.

Installs
70
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/robthepcguy/claude-patent-creator --skill mpep-search
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads mpep-search automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

MPEP Search Skill

Search MPEP corpus through hybrid RAG (FAISS vector + BM25 keyword + HyDE + cross-encoder reranking).

Sources:

  • MPEP: Manual of Patent Examining Procedure
  • 35 USC: United States Code Title 35
  • 37 CFR: Code of Federal Regulations Title 37
  • Subsequent Publications: Federal Register updates (post-Jan 2024)

Core Operations

1. search_mpep

Inputs:

  • query (string, required): Search query (minimum 3 characters)
  • top_k (int, optional): Number of results (default: 5, max: 20)
  • retrieve_k (int | None, optional): Candidates before reranking (default: top_k * 4, max: 100)
  • source_filter (string | None, optional): Filter by source ("MPEP", "35_USC", "37_CFR", "SUBSEQUENT", or None)
  • is_statute (bool | None, optional): Filter for statute content
  • is_regulation (bool | None, optional): Filter for regulation content
  • is_update (bool | None, optional): Filter for recent updates

Outputs:

{
    "rank": int,
    "source": str,
    "section": str,
    "file": str,
    "page": int,
    "has_statute": bool,
    "has_mpep_ref": bool,
    "has_rule_ref": bool,
    "is_statute": bool,
    "is_regulation": bool,
    "is_update": bool,
    "relevance_score": float,
    "text": str,
    # Optional for SUBSEQUENT:
    "doc_type": str,
    "fr_citation": str,
    "effective_date": str
}

Examples:

# Basic search
search_mpep("enablement requirement 35 USC 112", top_k=5)

# Search only statutes
search_mpep("written description", top_k=10, is_statute=True)

# Search recent updates
search_mpep("AI inventorship", is_update=True)

# Filter by source
search_mpep("fee schedule", source_filter="37_CFR")

2. get_mpep_section

Retrieve all content from specific MPEP section.

Inputs:

  • section_number (string, required): MPEP section number (e.g., "2100", "608.01")
  • max_chunks (int, optional): Maximum chunks to return (default: 50)

Outputs:

{
    "section": str,
    "total_chunks": int,
    "chunks": [
        {
            "text": str,
            "metadata": {
                "source": str,
                "file": str,
                "page": int,
                "section": str,
                "has_statute": bool,
                "has_mpep_ref": bool,
                "has_rule_ref": bool,
                "is_statute": bool,
                "is_regulation": bool,
                "is_update": bool
            }
        }
    ]
}

Error Response:

{"error": "No content found for MPEP section {section_number}"}

Examples:

# Get MPEP 2100 (Patentability)
get_mpep_section("2100", max_chunks=50)

# Get subsection
get_mpep_section("608.01")

Input Validation

Query validation:

  • Minimum 3 characters
  • Case-insensitive
  • No empty/whitespace-only queries

Section number validation:

  • Numeric with optional decimal (e.g., "100", "2100", "608.01")

Limits:

  • top_k capped at 20
  • retrieve_k capped at 100

Implementation Notes

Index Location:

  • FAISS index: mcp_server/index/mpep_index.faiss
  • Metadata: mcp_server/index/mpep_metadata.json
  • BM25 index: mcp_server/index/mpep_bm25.json

Search Architecture:

  1. HyDE Query Expansion (hypothetical documents)
  2. Hybrid Retrieval (FAISS vector + BM25 keyword via RRF)
  3. Cross-Encoder Reranking (final relevance scores)
  4. Metadata Filtering (source/type filters)

Dependencies:

  • sentence-transformers (BGE-base-en-v1.5)
  • FAISS (vector search)
  • rank-bm25 (keyword search)
  • Cross-encoder (reranking)
  • HyDE (optional, graceful degradation)

Error Handling:

  • Clear error messages for missing index/invalid queries
  • Graceful degradation if HyDE fails
  • Input validation before processing

FAQ

What does the mpep-search skill do?

Expert system for searching USPTO MPEP, 35 USC statutes, 37 CFR regulations, and post-Jan 2024 updates.

How do I install mpep-search?

Run npx skills add https://github.com/robthepcguy/claude-patent-creator --skill mpep-search in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/mpep-search/ (personal) or .claude/skills/mpep-search/ (project).

Which AI agents can use mpep-search?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is mpep-search safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains mpep-search?

It is published by robthepcguy in robthepcguy/claude-patent-creator. It has 70 recorded installs.

More from robthepcguy/claude-patent-creator

View all →

patent-application-creator

robthepcguy/claude-patent-creator

End-to-end patent campaign from ANY raw material ("here is some information; make a patent") to a filing-ready provisional package - invention mining, worth-it economics (design-around cost, detectability), exhaustive adversarial prior art, claims-first drafting, machine-verified compliance, hostile-examiner attack pass, and an honest no-go when nothing clears the bar or the fence is not worth the money

Testing & QA825 installs

patent-claims-analyzer

robthepcguy/claude-patent-creator

Automated analysis of patent claims for USPTO compliance with 35 USC 112(b) requirements - antecedent basis, definiteness, claim structure

Security451 installs

patent-diagram-generator

robthepcguy/claude-patent-creator

Create patent-style technical diagrams including flowcharts, block diagrams, and system architectures using Graphviz with reference numbering

Docs & Writing313 installs

prior-art-search

robthepcguy/claude-patent-creator

Systematic 7-step methodology for comprehensive patent prior art searches and patentability assessments using BigQuery and CPC classification

Media & Creative247 installs

bigquery-patent-search

robthepcguy/claude-patent-creator

Fast, cloud-based patent searching across 100 million+ worldwide patents using Google BigQuery - keyword search, CPC classification, patent details retrieval

Data & Databases99 installs

patent-reviewer

robthepcguy/claude-patent-creator

Expert system for reviewing utility patent applications against USPTO MPEP guidelines.

86 installs

Popular other skills

View category →

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.3M installs

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs