USPTO PTAB MCP Server
by john-walkoe
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging level. Logs record flow metadata only (tool, request id, status, counts) - never query text, response bodies, OCR text, or signed URLs. | INFO |
| PROXY_TOKEN | No | Fixed proxy auth token for cross-process registration. | auto |
| FASTMCP_HOST | No | HTTP bind address. | 127.0.0.1 |
| FASTMCP_PORT | No | HTTP port - use 8765 on Windows (8000 is often in the Hyper-V reserved range). | 8000 |
| PTAB_LOG_DIR | No | Opt-in rotating file logs (default: stderr only). | |
| PTAB_DATA_DIR | No | Runtime data directory for persistent links and encryption keys (created mode 0700). | ~/.uspto_ptab_mcp/data |
| USPTO_API_KEY | Yes | Required. USPTO ODP API key. | |
| USPTO_TIMEOUT | No | Configurable timeout for USPTO API requests (API request tuning). | |
| PTAB_AUTH_MODE | No | none (stdio / X-API-KEY HTTP) or oauth (OAuth 2.1 authorization server plus protected resource, HTTP only). | none |
| DOCLING_TIMEOUT | No | Docling read timeout (seconds). | 300 |
| MISTRAL_API_KEY | No | Optional. Enables the Mistral OCR tier for scanned pages with no text layer. | |
| PTAB_PROXY_PORT | No | Local download proxy port (default 8083; standalone mode only). | 8083 |
| PYPDF_MAX_PAGES | No | Page cap for the native-text-layer extraction tier. | 200 |
| CORS_EXTRA_ORIGIN | No | Extra CORS origins for HTTP mode (e.g. https://claude.ai). | |
| DOCLING_MAX_PAGES | No | Skip Docling above this page count (large docs go to Mistral). | 20 |
| DOCLING_SERVE_URL | No | 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). | |
| FASTMCP_TRANSPORT | No | Transport mode: stdio (Claude Desktop) or http (Docker/remote). | stdio |
| MISTRAL_OCR_MODEL | No | Pin a dated OCR model slug. | mistral-ocr-latest |
| PROXY_ALLOWED_IPS | No | Extra client IPs/CIDRs allowed at the proxy (Docker subnets). | |
| PTAB_OWNER_EMAILS | No | 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_LINK_MAX_USES | No | Downloads one persistent link allows before it is dropped (0 disables the ceiling). | 25 |
| PTAB_LINK_TTL_DAYS | No | Lifetime of a persistent download link in days (never less than 1). | 1 |
| PTAB_LOG_MAX_BYTES | No | File log rotation size. | 10485760 |
| PTAB_MAX_PDF_BYTES | No | Bound on the size of a PDF buffered from USPTO by the download proxy under the shared rate-limit slot. | |
| MISTRAL_OCR_TIMEOUT | No | Mistral OCR request timeout (seconds). | 120.0 |
| PTAB_ENABLE_PROMPTS | No | Register the 11 prompt templates. Off by default; nothing appears in the client UI unless this is true. | false |
| PTAB_PROXY_BASE_URL | No | Externally reachable proxy base URL (Docker/reverse proxy) - used in every emitted download link. | |
| INTERNAL_AUTH_SECRET | No | Required in HTTP mode (X-API-KEY auth); also signs centralized-proxy JWTs. | |
| PTAB_OCR_DAILY_LIMIT | No | Rolling 24h OCR-call allowance per caller (0 disables). | 500 |
| CENTRALIZED_PROXY_URL | No | Full base URL of the PFW centralized proxy (e.g. http://pfw:8080 in Docker) - takes precedence over CENTRALIZED_PROXY_PORT. | |
| MCP_APP_EXTRA_DOMAINS | No | Extra CSP domains for MCP App iframes (comma-separated). | |
| MISTRAL_OCR_MAX_PAGES | No | Page cap for the Mistral OCR tier. | 50 |
| PTAB_LOG_BACKUP_COUNT | No | Rotated file logs kept. | 5 |
| CENTRALIZED_PROXY_PORT | No | Legacy port-only PFW config (localhost). Set to "none" for standalone use, or 8080 when the USPTO PFW MCP is installed on its default proxy port. | none |
| ENABLE_ALWAYS_ON_PROXY | No | Start the download proxy at startup vs on-demand. | true |
| FASTMCP_STATELESS_HTTP | No | 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. | true |
| USPTO_DOWNLOAD_TIMEOUT | No | Configurable timeout for USPTO downloads (API request tuning). | |
| USPTO_MAX_CONTENT_CHARS | No | Character ceiling for extracted document text. | 120000 |
| USPTO_MAX_RESPONSE_CHARS | No | Character ceiling for structured tool responses (response-size guard). | 40000 |
| PTAB_ENABLE_USER_MANAGEMENT | No | Register ptab_manage_users. Off by default, so a default install exposes 14 tools, not 15. Requires PTAB_AUTH_MODE=oauth. | false |
| USPTO_SHARED_MAX_CONCURRENT | No | Shared concurrency-slot pool size (USPTO's burst limit is 1 in flight per key). | 1 |
| USPTO_SHARED_RATE_LIMIT_DIR | No | 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 | No | Shared token-bucket refill rate (only read when USPTO_SHARED_RATE_LIMIT_DIR is set). | 4.0 |
| PTAB_CONTENT_DEADLINE_SECONDS | No | 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. | 85 |
| USPTO_RESPONSE_BOUNDS_ENABLED | No | Master switch for the response-size guard. | true |
| USPTO_SHARED_MAX_WAIT_SECONDS | No | 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 of max(5 s, Retry-After) that every acquire waits out. | 45 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivitySlowing
ResponsivenessNo recent community issues