
An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

A Model Context Protocol server that provides access to the USPTO Patent Trial and Appeal Board Open Data Portal API for searching proceedings and retrieving PTAB documents.
USPTO PTAB MCP Server is cataloged as an MCP server attributed to john-walkoe. A Model Context Protocol server that provides access to the USPTO Patent Trial and Appeal Board Open Data Portal API for searching proceedings and retrieving PTAB documents. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for USPTO PTAB MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The server provides specialized search tools for trials (IPR/PGR/CBM), ex parte appeals, and interferences.
The server tries the PDF's native text layer first and can fall back to Mistral OCR for scanned pages, which requires a Mistral API key.
Yes, field sets are configurable through YAML without code changes to control context reduction.
README.md · 11e7ce5c4c4a · Fetched 2026-11-13 10:28:45 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A high-performance Model Context Protocol (MCP) server for the USPTO Patent Trial and Appeal Board (PTAB) Open Data Portal API with token-saving context reduction capabilities, hybrid document extraction, and seamless cross-MCP integration for complete patent lifecycle analysis.
| Document | Description |
|---|---|
| 📥 Installation Guide | Complete cross-platform setup with automated scripts |
| 🔑 API Key Guide | Step-by-step instructions for obtaining USPTO and Mistral API keys with screenshots |
| 📖 Usage Examples | Function examples, workflows, and integration patterns |
| 🎯 Prompt Templates | Detailed guide to sophisticated prompt templates for legal & research workflows |
| ⚙️ Field Customization | Comprehensive guide to customizing field sets for optimal context reduction |
| 🔒 Security Guidelines | Comprehensive security best practices |
| 🛡️ Security Scanning | Automated secret detection and prompt injection protection guide |
| Content Provenance | Retrieved-text handling posture: verbatim document text, provenance labeling, detection-only injection scanning |
| 🧪 Testing Guide | Test suite documentation and API key setup |
| 🔄 MCP Update Guide | Instructions for updating existing USPTO MCPs for PTAB integration |
| ⚖️ License | MIT License terms and conditions |
Why This PTAB MCP Was Delayed
The release of this USPTO PTAB MCP was delayed due to a major API transition by the USPTO. The original version in development used the USPTO Developer Hub API's PTAB Endpoints (developer.uspto.gov), which were officially decommissioned on January 6, 2026. See the official USPTO PTAB Transition Guide for details.
Action Required: Update Other USPTO MCPs
If you installed any of the author's other USPTO MCP servers before January 19, 2026, you should update them to benefit from enhanced PTAB integration. While the existing MCPs will continue to work without updates, updating (especially Patent File Wrapper MCP) is highly recommended for optimal centralized proxy support and cross USPTO Workflows involving PTAB.
⚠️ IMPORTANT: If you plan to install this PTAB MCP, it is highly recommended to install (or update if previously installed) Patent File Wrapper (PFW) MCP first before installing PTAB. The updated PFW includes essential centralized proxy enhancements that enable PTAB document downloads through PFW's unified proxy server.
📖 See the complete MCP Update Guide for:
This server runs on FastMCP 4.0.3 (fastmcp[apps]>=4.0.3,<5.0.0) on the MCP Python SDK 2.x, speaking MCP protocol revision 2026-07-28, with MCP Apps visual views, dual transport modes, and a browser-safe download proxy.
What's new:
/download/persistent/{hash}). Clicking one in any browser downloads the PDF directly — no headers, no 401s.http://localhost:8083/downloads, a browser page listing recently generated download links.DOCLING_MAX_PAGES, default 20). Progress notifications stream during long extractions.FASTMCP_TRANSPORT=http for Docker / reverse-proxy deployments, with X-API-KEY auth, a claude.ai probe fix, security headers, and an open /health endpoint.Environment variables:
| Variable | Default | Purpose |
|---|---|---|
USPTO_API_KEY | — | Required. USPTO ODP API key |
MISTRAL_API_KEY | unset | Optional. Enables the Mistral OCR tier for scanned pages with no text layer |
MISTRAL_OCR_MODEL | mistral-ocr-latest | Pin a dated OCR model slug |
DOCLING_SERVE_URL | unset | Base URL of a self-hosted docling-serve instance; enables the Docling extraction tier (e.g. http://localhost:5001 or https://your-docling-host.example.com) |
DOCLING_TIMEOUT | 300 | Docling read timeout (seconds) |
DOCLING_MAX_PAGES | 20 | Skip Docling above this page count (large docs → Mistral) |
FASTMCP_TRANSPORT | stdio | stdio (Claude Desktop) or http (Docker/remote) |
FASTMCP_HOST | 127.0.0.1 | HTTP bind address |
FASTMCP_PORT | 8000 | HTTP port — use 8765 on Windows (8000 is often in the Hyper-V reserved range) |
FASTMCP_STATELESS_HTTP | true | Stateless streamable HTTP: no server-side session table, every request self-contained. Required for clients that don't replay mcp-session-id and for load-balanced / multi-replica deploys |
CORS_EXTRA_ORIGIN | unset | Extra CORS origins for HTTP mode (e.g. https://claude.ai) |
INTERNAL_AUTH_SECRET | unset | Required in HTTP mode (X-API-KEY auth); also signs centralized-proxy JWTs |
ENABLE_ALWAYS_ON_PROXY | true | Start the download proxy at startup vs on-demand |
PTAB_PROXY_PORT | 8083 | Local download proxy port |
PTAB_PROXY_BASE_URL | unset | Externally reachable proxy base URL (Docker/reverse proxy) — used in every emitted download link |
PROXY_ALLOWED_IPS | unset | Extra client IPs/CIDRs allowed at the proxy (Docker subnets) |
PROXY_TOKEN | auto | Fixed proxy auth token for cross-process registration |
CENTRALIZED_PROXY_URL | unset | Full base URL of the PFW centralized proxy (e.g. http://pfw:8080 in Docker) — takes precedence over CENTRALIZED_PROXY_PORT |
CENTRALIZED_PROXY_PORT | none | Legacy port-only PFW config (localhost) |
MCP_APP_EXTRA_DOMAINS | unset | Extra CSP domains for MCP App iframes (comma-separated) |
LOG_LEVEL | INFO | Logging level. Logs record flow metadata only (tool, request id, status, counts) — never query text, response bodies, OCR text, or signed URLs |
PTAB_LOG_DIR | unset | Opt-in rotating file logs (default: stderr only) |
PTAB_LOG_MAX_BYTES | 10485760 | File log rotation size |
PTAB_LOG_BACKUP_COUNT | 5 | Rotated file logs kept |
PTAB_ENABLE_PROMPTS | false | Register the 11 prompt templates. Off by default; nothing appears in the client UI unless this is true |
PTAB_ENABLE_USER_MANAGEMENT | false | Register ptab_manage_users. Off by default, so a default install exposes 14 tools, not 15. Requires PTAB_AUTH_MODE=oauth |
PTAB_AUTH_MODE | none | none (stdio / X-API-KEY HTTP) or oauth (OAuth 2.1 authorization server plus protected resource, HTTP only) |
PTAB_OWNER_EMAILS | unset | oauth mode: comma-separated owner accounts. When set, only these accounts can hold ptab:admin and only they can grant the admin role. Unset keeps every active roster admin as admin |
PTAB_DATA_DIR | ~/.uspto_ptab_mcp/data | Runtime data directory for persistent links and encryption keys (created mode 0700) |
PTAB_LINK_TTL_DAYS | 1 | Lifetime of a persistent download link in days (never less than 1) |
PTAB_LINK_MAX_USES | 25 | Downloads one persistent link allows before it is dropped (0 disables the ceiling) |
PTAB_CONTENT_DEADLINE_SECONDS | 85 | One end-to-end time limit per PTAB_get_document_content call, shared by the download, Mistral OCR and its retries, and Docling. A run that does not finish returns a "Deadline exceeded" result |
PTAB_OCR_DAILY_LIMIT | 500 | Rolling 24h OCR-call allowance per caller (0 disables) |
PYPDF_MAX_PAGES | 200 | Page cap for the native-text-layer extraction tier |
MISTRAL_OCR_MAX_PAGES | 50 | Page cap for the Mistral OCR tier |
MISTRAL_OCR_TIMEOUT | 120.0 | Mistral OCR request timeout (seconds) |
USPTO_SHARED_RATE_LIMIT_DIR | unset | Directory backing the cross-process USPTO rate limiter. Unset means the shared limiter is off and no rate is enforced in-process |
USPTO_SHARED_RATE_LIMIT_RPS | 4.0 | Shared token-bucket refill rate (only read when the directory above is set) |
USPTO_SHARED_MAX_CONCURRENT | 1 | Shared concurrency-slot pool size (USPTO's burst limit is 1 in flight per key) |
USPTO_SHARED_MAX_WAIT_SECONDS | 45 | How long a call waits in the shared FIFO queue for a slot and a token before answering with the rate-limit envelope. A 429 seen by any process writes a shared cooldown (cooldown.json in the directory above) of max(5 s, Retry-After) that every acquire waits out |
USPTO_MAX_RESPONSE_CHARS | 40000 | Character ceiling for structured tool responses (response-size guard) |
USPTO_MAX_CONTENT_CHARS | 120000 | Character ceiling for extracted document text |
USPTO_RESPONSE_BOUNDS_ENABLED | true | Master switch for the response-size guard |
Docker readiness: the /health endpoint, FASTMCP_TRANSPORT=http, PTAB_PROXY_BASE_URL, CENTRALIZED_PROXY_URL, and PROXY_ALLOWED_IPS together make the server deployable behind Docker/reverse proxies. Compose files live in the separate uspto_docker_mcp repository.
Run PowerShell as Administrator, then:
# Navigate to your user profile
cd $env:USERPROFILE
# If git is installed:
git clone https://github.com/john-walkoe/uspto_ptab_mcp.git
cd uspto_ptab_mcp
# If git is NOT installed:
# Download and extract the repository to C:\Users\YOUR_USERNAME\uspto_ptab_mcp
# Then navigate to the folder:
# cd C:\Users\YOUR_USERNAME\uspto_ptab_mcp
# The script detects if uv is installed and if it is not it will install uv - https://docs.astral.sh/uv
# Run setup script (sets execution policy for this session only):
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
.\deploy\windows_setup.ps1
# View INSTALL.md for sample script output.
# Close Powershell Window.
# If choose option to "configure Claude Desktop integration" during the script then restart Claude Desktop
The PowerShell script will:
{
"mcpServers": {
"uspto_ptab": {
"command": "uv",
"args": [
"--directory",
"C:/Users/YOUR_USERNAME/uspto_ptab_mcp",
"run",
"ptab-mcp"
],
"env": {
"USPTO_API_KEY": "your_actual_USPTO_api_key_here",
"MISTRAL_API_KEY": "your_mistral_api_key_here_OPTIONAL",
"CENTRALIZED_PROXY_PORT": "none",
"PTAB_PROXY_PORT": "8083"
}
}
}
}
Proxy Configuration Notes:
"none" for standalone use (not recommended)8083, avoids conflict with PFW on 8080)
8080), but will fall back to PTAB's local proxy portFor detailed installation, manual setup, and troubleshooting, see INSTALL.md
PTAB-2024-08-23_IPR2024-01353_PAT-7883848_FINAL_WRITTEN_DECISION.pdfUser Requests the following:
LLM Performs these steps:
Step 1: Discovery (Minimal) → Step 2: Selection and Analysis (Balanced - Optional) → Step 3: Detailed Trial Review → Step 4 (Optional): Select specific trial documents for examination → Step 5 (Optional): Retrieve document_id(s) from documents list → Step 6 (Optional): Document Extraction for LLM use and/or Download Links of PDFs for user's use
The field configuration supports an optimized research progression:
PTAB_search_trials_complete for selected trials with complete structured data for LLM's use in analysisPTAB_get_documents to get the document_id(s)This MCP server includes sophisticated AI-optimized prompt templates for complex PTAB workflows. Prompt registration is opt-in server-side: prompts are not registered unless the server is started with PTAB_ENABLE_PROMPTS=true. For detailed documentation on all templates, features, and usage examples, see PROMPTS.md.
| Category | Templates | Purpose |
|---|---|---|
| Legal Analysis | /trial_precedent_research, /ipr_challenge_defense_PFW, /portfolio_ptab_risk_assessment_PFW_FPD | Litigation research, defensive strategy, portfolio risk assessment |
| Research & Prosecution | /prior_art_board_decision_mining, /ptab_prior_art_validation_PFW_CITATIONS, /technology_landscape_ptab_analysis_PFW | Prior art research, examiner citation validation, competitive intelligence |
| Document Management | /complete_trial_litigation_package, /trial_timeline_analysis, /complete_prosecution_lifecycle_PFW_FPD_CITATIONS | Organized retrieval, timeline analysis, comprehensive lifecycle workflows |
Key Features Across All Templates:
| Function (Display Name) | Context Reduction | Use Case |
|---|---|---|
PTAB_search_trials_minimal (Search trials minimal) | typical 95-99% | Ultra-fast trial discovery (user-customizable minimal fields) |
PTAB_search_trials_balanced (Search trials balanced) | typical 85-95% | Comprehensive trial analysis (no documentBag) |
PTAB_search_trials_complete (Search trials complete) | typical 80-90% | Complete trial data for detailed examination |
| Function (Display Name) | Context Reduction | Use Case |
|---|---|---|
PTAB_search_appeals_minimal (Search appeals minimal) | typical 95-99% | Ultra-fast appeal discovery (user-customizable minimal fields) |
PTAB_search_appeals_balanced (Search appeals balanced) | typical 85-95% | Comprehensive appeal analysis (no documentBag) |
PTAB_search_appeals_complete (Search appeals complete) | typical 80-90% | Complete appeal data for detailed examination |
| Function (Display Name) | Context Reduction | Use Case |
|---|---|---|
PTAB_search_interferences_minimal (Search interferences minimal) | typical 95-99% | Ultra-fast interference discovery (user-customizable minimal fields) |
PTAB_search_interferences_balanced (Search interferences balanced) | typical 85-95% | Comprehensive interference analysis (no documentBag) |
PTAB_search_interferences_complete (Search interferences complete) | typical 80-90% | Complete interference data for detailed examination |
search_trials_* tools to analyze inter partes review, post-grant review, and covered business method proceedingssearch_appeals_* tools to research PTAB appeal decisions and examiner reversal patternssearch_interferences_* tools to analyze priority disputes between inventorsapplicationNumberText and patent numbers# Find IPR proceedings for specific patent
PTAB_search_trials_minimal(
patent_number="7883848",
trial_type="IPR",
limit=50
)
# Technology area IPR analysis
PTAB_search_trials_balanced(
petitioner_name="Apple Inc",
filing_date_from="2020-01-01",
filing_date_to="2024-12-31",
limit=100
)
# Cross-MCP workflow example
# 1. Find patents with PFW
# 2. Check PTAB challenge history
PTAB_search_trials_minimal(
patent_number=patent_from_pfw,
limit=20
)
| Function (Display Name) | Purpose | Requirements |
|---|---|---|
PTAB_get_documents (Get trial documents) | Full docket access for any PTAB proceeding with pagination, sort, and filtering. Trials use POST search endpoint (true count, next_offset); appeals/interferences use GET. | USPTO_API_KEY |
PTAB_get_document_content (PTAB get document content) | Intelligent hybrid document extraction (PyPDF2 + OCR) | USPTO_API_KEY (+ MISTRAL_API_KEY for OCR fallback) |
PTAB_get_document_download (PTAB get document download) | Secure browser-accessible download URLs with enhanced filenames | USPTO_API_KEY |
PTAB_get_documents): Full docket access for all PTAB proceeding types
trials/documents/search); returns true total_documents count (e.g. 105 for a heavily-litigated IPR) and next_offset hint. The legacy GET endpoint was silently capped at 25 documents.offset + limit parameters - Page through the complete docket: offset=0, limit=25 → first 25; offset=25, limit=25 → next 25, etc.sort_order parameter - "asc" returns oldest-first (Petition, POPR, early exhibits); "desc" (default) returns newest-first (FWD, Sur-Reply, hearing transcripts)document_title filter - Case-insensitive substring match on documentTypeDescriptionText (e.g. document_title='Final Written Decision', document_title='Patent Owner Response'). Matches the description field, not the title field.document_category filter - Coarse category filter: PETITION, RESPONSE, ORDER, DECISION, MOTION, FINALfiling_party filter - Filter by BOARD, PETITIONER, or PATENT OWNERPTAB_search_trials_balanced → fileDownloadURI) which contains the complete docket.PTAB_get_document_content): Hybrid auto-optimized extraction
provenance_note labeling extracted text as quoted document data (not instructions), and a detection-only scan adds an injection_scan annotation (kind labels only, keyed by document ID) when the text is injection-shaped — the key is absent when clean, and the text itself is always returned verbatim. See docs/CONTENT_PROVENANCE.mdPTAB_get_document_download): Secure proxy downloads with enhanced filenames
PTAB-2024-08-23_IPR2024-01353_PAT-7883848_FINAL_WRITTEN_DECISION.pdf| Function (Display Name) | Purpose | Requirements |
|---|---|---|
PTAB_get_guidance (PTAB get guidance) | Context-efficient selective guidance sections (95-99% token reduction) | None |
NEW: PTAB_get_guidance Tool - Solves MCP Resources visibility problem with selective guidance sections:
🎯 Quick Reference Chart - Know exactly which section to call:
PTAB_get_guidance("tools")PTAB_get_guidance("documents")PTAB_get_guidance("tools")PTAB_get_guidance("workflows_pfw")PTAB_get_guidance("workflows_fpd")PTAB_get_guidance("workflows_citations")PTAB_get_guidance("workflows_pinecone")PTAB_get_guidance("workflows_complete")PTAB_get_guidance("tools")PTAB_get_guidance("cost")PTAB_get_guidance("limits")The tool provides specific workflows, field recommendations, API call optimization strategies, anti-patterns to avoid, and cross-MCP integration patterns for maximum efficiency. The cost section is about token footprint, not money. See USAGE_EXAMPLES.md for detailed examples and integration workflows.
| Function (Display Name) | Purpose | Requirements |
|---|---|---|
PTAB_get_field_configs (Get field configs) | View current YAML field configuration | None |
| Function | Purpose | Requirements |
|---|---|---|
ptab_manage_users | Registered-user management for OAuth deployments | Registration-gated by PTAB_ENABLE_USER_MANAGEMENT=true (default off); in OAuth mode also requires the ptab:admin scope |
For comprehensive usage examples, including:
See the detailed USAGE_EXAMPLES.md documentation.
The MCP server supports user-customizable field sets through YAML configuration for optimal context reduction. You can modify field sets without changing any code!
For comprehensive field customization documentation, see CUSTOMIZATION.md.
field_configs.yaml in the project root directory# symbolThree data types with progressive disclosure:
trials_minimal:
fields:
- trialNumber # IPR2024-01353
- patentOwnerData.applicationNumberText # → PFW integration
- patentOwnerData.patentNumber # Patent number
- regularPetitionerData.realPartyInInterestName # Petitioner
- trialMetaData.trialStatusCategory # Status
See CUSTOMIZATION.md for:
This MCP is designed to work seamlessly with other USPTO MCPs and knowledge bases for comprehensive patent lifecycle analysis:
| MCP Server | Purpose | GitHub Repository |
|---|---|---|
| USPTO Patent File Wrapper (PFW) | Prosecution history & documents | uspto_pfw_mcp |
| USPTO Final Petition Decisions (FPD) | Petition decisions during prosecution | uspto_fpd_mcp |
| USPTO Enriched Citation | AI-extracted citation intelligence from Office Actions mailed Oct 2017-present | uspto_enriched_citation_mcp |
| Pinecone Assistant MCP | Patent law knowledge base with AI-powered chat and citations (MPEP, examination guidance) - 1 API key, limited free tier | pinecone_assistant_mcp |
| Pinecone RAG MCP | Patent law knowledge base with custom embeddings (MPEP, examination guidance) - Requires Pinecone + embedding model, monthly resetting free tier | pinecone_rag_mcp |
The Patent Trial and Appeal Board (PTAB) MCP provides access to post-grant proceedings and appeal decisions, tracking patent challenges after issuance. When combined with the other MCPs, it enables:
Cross-Referencing Fields:
patentOwnerData.applicationNumberText - Primary key linking PTAB proceedings to PFW prosecutionpatentOwnerData.patentNumber - Patent number linking to Citations and other MCPspatentOwnerData.groupArtUnitNumber - Art unit analysis across all MCPsregularPetitionerData.realPartyInInterestName - Party matching across MCPspatentOwnerData.technologyCenterNumber - Technology classification analysisProgressive Workflow:
assistant_context / RAG MCP: semantic_search)For detailed integration workflows, cross-referencing examples, and complete use cases, see USAGE_EXAMPLES.md.
When both PFW and PTAB MCPs are installed, PTAB automatically integrates with PFW's centralized proxy for unified document management:
Architecture Benefits:
How It Works:
PTAB-{date}_{trial}_{patent}_{description}.pdfPOST {CENTRALIZED_PROXY_URL}/register-ptab-document (JWT-authenticated, includes enhanced filename)Configuring the PFW location: set CENTRALIZED_PROXY_URL to PFW's proxy base URL — http://localhost:8080 on one machine, http://pfw:8080 between Docker containers, or an external HTTPS base behind a reverse proxy. (Legacy CENTRALIZED_PROXY_PORT still works for localhost setups.) When registering across hosts, PFW's PROXY_ALLOWED_IPS must admit PTAB's source IP.
Standalone Mode:
/download/persistent/{hash}) — encrypted SQLite-backed, browser-safe, survive proxy restarts| Method | Response Size | Context Usage | Features |
|---|---|---|---|
| Direct curl | ~200KB+ | High | Raw API access |
| MCP Balanced | ~30KB | Medium | Key fields for analysis |
| MCP Minimal | ~5KB | Very Low | Essential data only |
| Custom Fields | ~2KB | Ultra-Low | 2-3 fields only (99% reduction) |
tests/TEST_SUITE.md: 18 tests covering the 14 tools registered by default against the live USPTO API via Claude Desktop, including the MCP Apps views, persistent download links, the downloads page, the extraction tiers, and HTTP transport mode. Run it after any significant change.
# Full pytest suite — hermetic by default: no API key or network needed
# (tests marked @pytest.mark.network auto-skip unless PTAB_RUN_NETWORK_TESTS=1)
uv run pytest
# test_deployment bash-helper tests need bash on PATH
Configuration Files:
pyproject.toml ([tool.pytest.ini_options]): Configures pytest for async tests
asyncio_mode = "auto" for seamless async/await testingnetwork marker for live-API tests.pre-commit-config.yaml: Git pre-commit hooks for security
detect-secrets and the prompt-injection scan before each commituv run pre-commit installSee tests/README.md for comprehensive testing guide.
uspto_ptab_mcp/
├── field_configs.yaml # Root-level field customization (YAML)
├── .pre-commit-config.yaml # Pre-commit hooks for security scanning
├── .secrets.baseline # Baseline file for detect-secrets (tracks known secrets)
├── .prompt_injections.baseline # Baseline file for prompt injection detection
├── src/
│ └── ptab_mcp/
│ ├── main.py # Composition root: FastMCP server, instructions, tool registration
│ ├── runtime.py # Settings/logging/keys and service singletons
│ ├── server_bootstrap.py # Server/proxy startup (stdio, HTTP, hybrid)
│ ├── middleware.py # HTTP auth + security-header middleware
│ ├── __main__.py # Entry point for -m execution
│ ├── app_uris.py # MCP App resource URIs
│ ├── shared_secure_storage.py # Secure API key storage (DPAPI/chmod 600)
│ ├── tools/ # The 15 MCP tools (14 register by default)
│ │ ├── trials.py # PTAB_search_trials_minimal/balanced/complete
│ │ ├── appeals.py # PTAB_search_appeals_minimal/balanced/complete
│ │ ├── interferences.py # PTAB_search_interferences_minimal/balanced/complete
│ │ ├── documents.py # PTAB_get_documents/download/content (+ extraction tiers)
│ │ ├── guidance.py # PTAB_get_guidance, PTAB_get_field_configs
│ │ └── admin.py # ptab_manage_users (registration-gated)
│ ├── auth/ # Optional OAuth 2.1 sign-in (PTAB_AUTH_MODE=oauth)
│ ├── config/
│ │ ├── field_manager.py # YAML field configuration management
│ │ ├── settings.py # Environment configuration
│ │ ├── tool_reflections.py # Sectioned LLM guidance (10 sections, 95-99% token reduction)
│ │ ├── api_constants.py # API configuration constants (official USPTO rate limits)
│ │ ├── filter_field_mapping.py # Field mapping for search filters
│ │ ├── log_config.py # Logging configuration (SanitizingFilter on every handler)
│ │ └── storage_paths.py # File storage path utilities
│ ├── prompts/ # 11 AI-optimized prompt templates
│ ├── api/
│ │ ├── ptab_client.py # PTAB API client (ODP API integration)
│ │ ├── proceedings.py # Trial/appeal/interference adapters
│ │ ├── docling_client.py # Docling OCR client (self-hosted tier)
│ │ └── field_constants.py # Field name constants
│ ├── proxy/
│ │ ├── server.py # HTTP proxy for secure downloads
│ │ ├── rate_limiter.py # USPTO rate limiting compliance
│ │ ├── secure_link_cache.py # Persistent download links
│ │ ├── centralized_integration.py # PFW proxy integration
│ │ └── models.py # Pydantic models for proxy
│ ├── shared/
│ │ ├── error_utils.py # Error handling utilities
│ │ ├── circuit_breaker.py # Circuit breaker pattern
│ │ ├── internal_auth.py # Internal authentication (JWT)
│ │ ├── injection_scan.py # Detection-only scanner + provenance note for retrieved text
│ │ ├── dpapi_crypto.py # Windows DPAPI encryption
│ │ ├── cache.py # Caching utilities
│ │ ├── log_sanitizer.py # Log sanitization (API key masking)
│ │ ├── safe_logger.py # SafeLogger wrapper (auto-sanitization)
│ │ └── uspto_shared_rate_limiter.py # Cross-process USPTO rate limiter
│ ├── services/
│ │ └── ocr_service.py # OCR quality detection and processing
│ ├── ui/ # MCP App HTML views (search results, downloads, user management)
│ ├── validation/
│ │ └── validators.py # Input validation functions
│ └── util/
│ ├── response_formatter.py # Response formatting
│ ├── search_runner.py # Shared search execution path
│ ├── identity.py # Authenticated-identity helpers
│ ├── database.py # SQLite helpers
│ └── filter_builder.py # Search filter construction
├── deploy/
│ ├── linux_setup.sh # Linux deployment script (chmod 600 security)
│ ├── windows_setup.ps1 # PowerShell deployment script (DPAPI)
│ ├── manage_api_keys.ps1 # API key management utilities
│ ├── Validation-Helpers.psm1 # PowerShell validation module
│ ├── validation-helpers.sh # Bash validation helpers
│ ├── merge_ptab_to_claude_json.py # Claude Code config merger (Python)
│ └── quick_merge_claude_config.sh # Claude Code config merger (Bash wrapper)
├── docs/
│ └── CONTENT_PROVENANCE.md # Retrieved-text handling posture (security questionnaire answer)
├── tests/ # Hermetic pytest suite + manual end-to-end guide
│ ├── conftest.py # Network-test auto-skip gate + shared mock fixtures
│ ├── TEST_SUITE.md # Manual end-to-end suite (live API via Claude Desktop)
│ └── README.md # Testing documentation
├── .security/ # Commit-time security scanning tools
│ ├── check_prompt_injections.py # Prompt injection detector
│ ├── ptab_prompt_injection_detector.py # Detection engine
│ ├── test_benign.txt # Test benign inputs
│ ├── test_malicious.txt # Test malicious inputs
│ ├── VALIDATION_REPORT.md # Security validation results
│ └── README.md # Security tools documentation
├── reference/
│ ├── PTAB_swagger.yaml # API specification
│ ├── PTAB-to-ODP-PTAB-API-Mapping.txt # Legacy API mapping
│ └── Document_Descriptions_List.csv # Document type reference
├── documentation_photos/ # Visual documentation
├── pyproject.toml # Package configuration (incl. pytest + ruff config)
├── uv.lock # uv lockfile
├── README.md # This file
├── INSTALL.md # Comprehensive installation guide
├── CUSTOMIZATION.md # Field customization guide
├── USAGE_EXAMPLES.md # Function examples and workflows
├── PROMPTS.md # Prompt templates documentation
├── API_KEY_GUIDE.md # API key setup guide
├── SSO_SETUP.md # OAuth sign-in setup walkthrough
├── SECURITY_GUIDELINES.md # Security best practices
├── SECURITY_SCANNING.md # Automated secret detection guide
└── LICENSE # MIT License
Runtime Generated Files (not in repo):
~/.uspto_ptab_mcp/
├── logs/
│ ├── ptab_mcp.log # Application logs (10MB rotation, 5 backups)
│ └── security.log # Security events (10MB rotation, 10 backups)
├── .uspto_api_key # Encrypted USPTO API key (DPAPI/chmod 600)
├── .mistral_api_key # Encrypted Mistral API key (DPAPI/chmod 600)
└── .uspto_internal_auth_secret # Internal auth secret (shared across MCPs)
Setting USPTO API Key:
set USPTO_API_KEY=your_key$env:USPTO_API_KEY="your_key"export USPTO_API_KEY=your_keySetting Mistral API Key (for OCR):
set MISTRAL_API_KEY=your_key$env:MISTRAL_API_KEY="your_key"export MISTRAL_API_KEY=your_keyuv sync and pip install -e .uv run prefix for uv-managed projectsfield_configs.yaml to include desired fieldsUSPTO_API_KEY environment variable or Claude Desktop configwindows_setup.ps1.venv files when running, preventing proper virtual environment creation.venv folder: Remove-Item ./.venv -Force -Recurse -ErrorAction SilentlyContinue.\deploy\windows_setup.ps1 againIf you need to completely reset the MCP installation to run the Windows Quick installer again:
# Navigate to the project directory
cd C:\Users\YOUR_USERNAME\uspto_ptab_mcp
# Remove Python cache directories
Get-ChildItem -Path ./src -Directory -Recurse -Force | Where-Object { $_.Name -eq '__pycache__' } | Remove-Item -Recurse -Force
# Remove virtual environment
if (Test-Path ".venv") {
Remove-Item ./.venv -Force -Recurse -ErrorAction SilentlyContinue
}
# Remove database files (if any)
Remove-Item ./proxy_documents.db -Force -ErrorAction SilentlyContinue
Remove-Item ./ptab_links.db -Force -ErrorAction SilentlyContinue
# Now you can run the setup script again
.\deploy\windows_setup.ps1
Linux/macOS Reset:
# Navigate to the project directory
cd ~/uspto_ptab_mcp
# Remove Python cache directories
find ./src -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true
# Remove virtual environment and database files
rm -rf .venv
rm -f proxy_documents.db ptab_links.db
# Run setup script again
./deploy/linux_setup.sh
field_configs.yamlPTAB_get_guidance for workflow-specific guidancePTAB documents are party-drafted advocacy: petitions, briefs, and exhibits can embed literally any text a party filed. Retrieved document text is therefore served verbatim (nothing is stripped or rewritten — verbatim fidelity is the product) and handled with a labeling-plus-detection posture:
PTAB_get_document_content responses carry a
provenance_note stating that extracted text is quoted document data, not
instructions, and the server instructions direct the consuming model to
report instruction-like language inside retrieved text rather than act on itinjection_scan annotation with kind labels keyed by document ID —
never the matched text — and the key is absent entirely when the text is
clean (src/ptab_mcp/shared/injection_scan.py)Full write-up: docs/CONTENT_PROVENANCE.md
All API requests include unique request IDs (8-char UUIDs) for correlation:
[a1b2c3d4] Starting POST request to trials/proceedings/search
[a1b2c3d4] Request successful on attempt 1
SECURITY_GUIDELINES.md - Comprehensive security best practicesSECURITY_SCANNING.md - Automated secret detection and prevention guidetests/README.md - Complete testing guide with API key setupMIT License
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND.
Independent Project Notice: This is an independent personal project and is not affiliated with, endorsed by, or sponsored by the United States Patent and Trademark Office (USPTO).
The author makes no representations or warranties, express or implied, including but not limited to:
LIMITATION OF LIABILITY: Under no circumstances shall the author be liable for any direct, indirect, incidental, special, or consequential damages arising from use of this software, even if advised of the possibility of such damages.
By using this software, you acknowledge that you have read this disclaimer and agree to use the software at your own risk, accepting full responsibility for all outcomes and compliance with relevant legal and ethical obligations.
Note for Legal Professionals: While this tool provides access to patent research tools commonly used in legal practice, it is a data retrieval and AI-assisted processing system only. All results require independent verification, critical professional analysis, and cannot substitute for qualified legal counsel or the exercise of your personal professional judgment and duties outlined in the USPTO Guidance on AI Use.
If you find this USPTO PTAB MCP Server useful, please consider supporting the development! This project was developed during my personal time over many hours to provide a comprehensive, production-ready tool for the patent community.
Your support helps maintain and improve this open-source tool for everyone in the patent community. Thank you!
Questions? See INSTALL.md for complete cross-platform installation guide or review the test scripts for working examples.
If you run all 4 USPTO MCPs (Citations, PFW, PTAB, FPD) as HTTP containers on the same box, serving multiple users, under one USPTO API key, each server's own in-process limiter can't see what the other 3 processes are doing — and USPTO's documented limits are per-key (burst=1, 4-15 req/sec depending on call type, plus weekly quotas, and no retry of a 429 within 5 s), not per-process. Point all 4 containers at one bind-mounted directory and they share a single cross-process FIFO queue, a bounded pool of in-flight-request slots, a capacity-1 token bucket and a 429 cooldown, arbitrated via POSIX file locks (crash-safe — a dead process's lock is released by the kernel). Single-MCP or STDIO deployments need nothing; the limiter is off unless the directory variable is set.
# docker-compose.yml (excerpt, all 4 USPTO MCP services)
volumes:
uspto-rate-limit: {}
services:
ptab-mcp:
volumes:
- uspto-rate-limit:/var/run/uspto-shared-rate-limit
environment:
USPTO_SHARED_RATE_LIMIT_DIR: /var/run/uspto-shared-rate-limit
USPTO_SHARED_RATE_LIMIT_RPS: "4" # default; total across ALL 4 MCPs
USPTO_SHARED_MAX_CONCURRENT: "1" # default; shared in-flight slots (burst=1 per key)
USPTO_SHARED_MAX_WAIT_SECONDS: "45" # default; queue wait ceiling
One queue, one token bucket and one concurrency slot are shared across every
process mounting the directory. Waiters are served in arrival order; a call
that cannot get a slot inside the wait ceiling answers at once with the
rate-limit envelope (rate_limited: true, retry_after_seconds). The slot
is taken first and the token after it, so two consecutive sends on the key
are always at least 1/RPS apart. A 429 seen by any process writes
cooldown.json (max(5 s, Retry-After)) and every process waits it out;
the call that saw the 429 retries once after that wait when it is 10 s or
less, else returns the envelope. The download proxy buffers a PDF from USPTO
under the slot (bounded by PTAB_MAX_PDF_BYTES), releases the slot, then
serves the bytes to the user, so slot time follows USPTO's transfer speed
rather than the user's connection.
Set PTAB_AUTH_MODE=oauth to protect the HTTP endpoint with Google +
Microsoft sign-in (OAuth 2.1 with dynamic client registration — works as a
Claude.ai / Claude Desktop custom connector). Access is controlled by a local
SQLite user list; role admin unlocks the ptab_manage_users user-management
tool and its MCP App panel. The default (none) and STDIO are unchanged.
Full walkthrough: SSO_SETUP.md.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for USPTO PTAB MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/uspto_ptab_mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Runs a free Answer Engine Optimization and AI visibility report for a domain and returns a shareable report plus a structured summary.

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.