Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level. Logs record flow metadata only (tool, request id, status, counts) - never query text, response bodies, OCR text, or signed URLs.INFO
PROXY_TOKENNoFixed proxy auth token for cross-process registration.auto
FASTMCP_HOSTNoHTTP bind address.127.0.0.1
FASTMCP_PORTNoHTTP port - use 8765 on Windows (8000 is often in the Hyper-V reserved range).8000
PTAB_LOG_DIRNoOpt-in rotating file logs (default: stderr only).
PTAB_DATA_DIRNoRuntime data directory for persistent links and encryption keys (created mode 0700).~/.uspto_ptab_mcp/data
USPTO_API_KEYYesRequired. USPTO ODP API key.
USPTO_TIMEOUTNoConfigurable timeout for USPTO API requests (API request tuning).
PTAB_AUTH_MODENonone (stdio / X-API-KEY HTTP) or oauth (OAuth 2.1 authorization server plus protected resource, HTTP only).none
DOCLING_TIMEOUTNoDocling read timeout (seconds).300
MISTRAL_API_KEYNoOptional. Enables the Mistral OCR tier for scanned pages with no text layer.
PTAB_PROXY_PORTNoLocal download proxy port (default 8083; standalone mode only).8083
PYPDF_MAX_PAGESNoPage cap for the native-text-layer extraction tier.200
CORS_EXTRA_ORIGINNoExtra CORS origins for HTTP mode (e.g. https://claude.ai).
DOCLING_MAX_PAGESNoSkip Docling above this page count (large docs go to Mistral).20
DOCLING_SERVE_URLNoBase 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_TRANSPORTNoTransport mode: stdio (Claude Desktop) or http (Docker/remote).stdio
MISTRAL_OCR_MODELNoPin a dated OCR model slug.mistral-ocr-latest
PROXY_ALLOWED_IPSNoExtra client IPs/CIDRs allowed at the proxy (Docker subnets).
PTAB_OWNER_EMAILSNooauth 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_USESNoDownloads one persistent link allows before it is dropped (0 disables the ceiling).25
PTAB_LINK_TTL_DAYSNoLifetime of a persistent download link in days (never less than 1).1
PTAB_LOG_MAX_BYTESNoFile log rotation size.10485760
PTAB_MAX_PDF_BYTESNoBound on the size of a PDF buffered from USPTO by the download proxy under the shared rate-limit slot.
MISTRAL_OCR_TIMEOUTNoMistral OCR request timeout (seconds).120.0
PTAB_ENABLE_PROMPTSNoRegister the 11 prompt templates. Off by default; nothing appears in the client UI unless this is true.false
PTAB_PROXY_BASE_URLNoExternally reachable proxy base URL (Docker/reverse proxy) - used in every emitted download link.
INTERNAL_AUTH_SECRETNoRequired in HTTP mode (X-API-KEY auth); also signs centralized-proxy JWTs.
PTAB_OCR_DAILY_LIMITNoRolling 24h OCR-call allowance per caller (0 disables).500
CENTRALIZED_PROXY_URLNoFull base URL of the PFW centralized proxy (e.g. http://pfw:8080 in Docker) - takes precedence over CENTRALIZED_PROXY_PORT.
MCP_APP_EXTRA_DOMAINSNoExtra CSP domains for MCP App iframes (comma-separated).
MISTRAL_OCR_MAX_PAGESNoPage cap for the Mistral OCR tier.50
PTAB_LOG_BACKUP_COUNTNoRotated file logs kept.5
CENTRALIZED_PROXY_PORTNoLegacy 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_PROXYNoStart the download proxy at startup vs on-demand.true
FASTMCP_STATELESS_HTTPNoStateless 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_TIMEOUTNoConfigurable timeout for USPTO downloads (API request tuning).
USPTO_MAX_CONTENT_CHARSNoCharacter ceiling for extracted document text.120000
USPTO_MAX_RESPONSE_CHARSNoCharacter ceiling for structured tool responses (response-size guard).40000
PTAB_ENABLE_USER_MANAGEMENTNoRegister ptab_manage_users. Off by default, so a default install exposes 14 tools, not 15. Requires PTAB_AUTH_MODE=oauth.false
USPTO_SHARED_MAX_CONCURRENTNoShared concurrency-slot pool size (USPTO's burst limit is 1 in flight per key).1
USPTO_SHARED_RATE_LIMIT_DIRNoDirectory 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_RPSNoShared token-bucket refill rate (only read when USPTO_SHARED_RATE_LIMIT_DIR is set).4.0
PTAB_CONTENT_DEADLINE_SECONDSNoOne 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_ENABLEDNoMaster switch for the response-size guard.true
USPTO_SHARED_MAX_WAIT_SECONDSNoHow 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

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources