USPTO Patent MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@USPTO Patent MCP Serversearch for patents related to quantum computing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
USPTO Patent MCP Server
A FastMCP server for accessing United States Patent and Trademark Office (USPTO) patent and patent application data through multiple APIs including the Patent Public Search API, the Open Data Portal (ODP) API, PTAB API v3, and Patent Litigation APIs. Using this server, Claude Desktop can pull data from USPTO APIs, search through PTAB proceedings and decisions, analyze patent litigation, research prosecution history, and more:

For an introduction to MCP servers see Introducing the Model Context Protocol.
Special thanks to Parker Hancock, author of the amazing Patent Client project, for blazing the trail to understanding of the string of requests and responses needed to pull data through the Public Search API.
Features
This server provides 52 tools across 6 USPTO data sources (27 active, 25 unavailable due to API shutdowns):
Patent Search - Full-text search of granted patents and published applications via PPUBS
Full Text Documents - Get complete text of patents including claims, description, and specification
PDF Downloads - Download patents as PDF files (Claude Desktop doesn't support this as a client currently)
Prosecution History - Access transactions and file wrapper data via ODP
Patent Family Data - Continuity information, foreign priority, and related applications
Bulk Datasets - Search and access USPTO bulk data products including PatentsView disambiguated data
Note on unavailable APIs: The PatentsView API (search.patentsview.org) was shut down on March 20, 2026, with its data migrated to ODP bulk datasets. The Office Action and Enriched Citation APIs (developer.uspto.gov) were decommissioned in early 2026. The Patent Litigation API is not offered on the USPTO Open Data Portal; litigation data is available as a bulk download. All 25 affected tools remain registered and return helpful workaround guidance pointing to alternative tools.
API Sources
Source | Description | Auth Required | Status |
ppubs.uspto.gov | Full text documents, PDF downloads, advanced search (daily updates) | No | Active |
api.uspto.gov (ODP) | Metadata, continuity, transactions, assignments, prosecution history | Yes (ODP API Key) | Active |
PTAB Trial API | IPR/PGR/CBM proceedings, decisions, appeals | Yes (ODP API Key) | Active (ODP v3.0) |
Patent Litigation API | 74,000+ district court patent cases | N/A | Not offered on ODP (issue #16) |
PatentsView API | Disambiguated inventor/assignee data, advanced search | N/A | Shut down March 2026 |
Office Action APIs | Full-text office actions, citations, rejections | N/A | Decommissioned early 2026 |
Prerequisites
Python 3.10-3.13 (3.12 recommended)
Claude Desktop (for integration). Other models and MCP clients have not been tested.
UV for Python version and dependency management
If you're a Python developer but still unfamiliar with uv, you're in for a treat. It's faster and easier than having a separate Python version manager (like pyenv) and setting up, activating, and maintaining virtual environments with venv and pip.
If you don't already have uv installed:
curl -LsSf https://astral.sh/uv/install.sh | shInstallation
Clone this repository:
git clone https://github.com/riemannzeta/patent_mcp_server cd patent_mcp_serverInstall dependencies with uv:
uv syncVerify installation:
uv run patent-mcp-serverShould output:
INFO Starting USPTO Patent MCP server with stdio transport
API Key Setup
USPTO ODP API Key (Required for most tools)
To use the api.uspto.gov tools (ODP, PTAB), you need an Open Data Portal API key. Without it, these endpoints return 403 Forbidden. The Patent Litigation API is not offered on ODP and does not require an API key.
Create a USPTO.gov account at data.uspto.gov (requires ID.me verification)
Once signed in, visit "My ODP" in the site navigation to get your API key
See the Getting Started guide for detailed instructions
Create a
.envfile in the patent_mcp_server directory:USPTO_API_KEY=your_actual_key_hereNote: The PPUBS tools will work without this API key.
Configuration
The server can be configured using environment variables in your .env file. All settings are optional with sensible defaults:
# API Keys
USPTO_API_KEY=your_key_here
# Logging
LOG_LEVEL=INFO # Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
# HTTP Settings
REQUEST_TIMEOUT=30.0 # Request timeout in seconds
MAX_RETRIES=3 # Maximum number of retry attempts
RETRY_MIN_WAIT=2 # Minimum wait time between retries (seconds)
RETRY_MAX_WAIT=10 # Maximum wait time between retries (seconds)
# Session Management
SESSION_EXPIRY_MINUTES=30 # How long to cache ppubs sessions
ENABLE_CACHING=true # Enable/disable session caching
# API Endpoints (usually don't need to change)
PPUBS_BASE_URL=https://ppubs.uspto.gov
API_BASE_URL=https://api.uspto.gov # ODP API endpoint (NOT data.uspto.gov)Claude Desktop Configuration
To integrate this MCP server with Claude Desktop:
Update your Claude Desktop configuration file (
claude_desktop_config.json):{ "mcpServers": { "patents": { "command": "uv", "args": [ "--directory", "/Users/username/patent_mcp_server", "run", "patent-mcp-server" ] } } }You can find
claude_desktop_config.jsonon a Mac by opening the Claude Desktop app, opening Settings (from the Claude menu or by Command + ' on the keyboard), clicking "Developer" in the sidebar, and "Edit Config."Replace
/Users/username/patent_mcp_serverwith the actual path to your patent_mcp_server directory.
When integrated with Claude Desktop, the server will be automatically started when needed and doesn't need to be run separately.
Claude Code Configuration
To integrate this MCP server with Claude Code for a particular project, from the project root:
claude mcp add-json patents '{"command": "uv", "args": ["--directory", "/path/to/patent_mcp_server", "run", "patent-mcp-server"]}'If you're already running Claude Code, you'll have to /exit and restart. Then /mcp to verify that it's configured.
Available Tools
Utility Tools
Tool | Description |
| Check status of all USPTO APIs |
| Get CPC classification information |
| Look up USPTO status code meaning |
Patent Public Search (ppubs.uspto.gov)
Tool | Description |
| Search granted patents (full-text, daily updates) |
| Search published patent applications |
| Get full patent document by GUID |
| Get patent's full text by number |
| Download patent as PDF |
Open Data Portal (api.uspto.gov)
Tool | Description |
| Get basic application data |
| Search applications with filters |
| Get comprehensive metadata |
| Get patent family/continuity data |
| Get ownership/assignment records |
| Get patent term adjustment data |
| Get attorney/agent of record |
| Get foreign priority claims |
| Get prosecution transaction history |
| Get file wrapper documents |
| Search bulk data products |
| Get dataset product details |
PTAB Trial API (api.uspto.gov ODP v3.0)
Tool | Description |
| Search IPR/PGR/CBM proceedings by patent number, party, status |
| Get details for a specific proceeding by number |
| List documents filed in a proceeding |
| Search PTAB decisions |
| Get a specific decision by trial number |
| Search ex parte appeals |
| Get details for a specific appeal |
Patent Litigation API (Unavailable — not offered on ODP, issue #16)
All 4 Litigation tools return API_UNAVAILABLE. The Patent Litigation API is not listed in the ODP Swagger catalog. The OCE Patent Litigation dataset (74,000+ district court cases) is distributed as a bulk download at https://www.uspto.gov/ip-policy/economic-research/research-datasets/patent-litigation-docket-reports-data.
Tool | Workaround |
| OCE Patent Litigation bulk dataset |
| OCE Patent Litigation bulk dataset |
| OCE Patent Litigation bulk dataset or |
| OCE Patent Litigation bulk dataset |
PatentsView API (Unavailable — shut down March 2026)
All 14 PatentsView tools return API_UNAVAILABLE with workaround guidance. PatentsView data has been migrated to the USPTO Open Data Portal as bulk downloadable datasets. Use ppubs_search_patents for patent search, odp_search_datasets to find bulk datasets.
Tool | Workaround |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Office Action APIs (Unavailable — decommissioned early 2026)
All 4 Office Action tools return API_UNAVAILABLE. Use odp_get_documents to access office action documents from the file wrapper.
Tool | Workaround |
|
|
|
|
|
|
|
|
Enriched Citation APIs (Unavailable — decommissioned early 2026)
All 3 Enriched Citation tools return API_UNAVAILABLE. Use odp_get_documents or ppubs tools as workarounds.
Tool | Workaround |
|
|
|
|
|
|
Resources and Prompts
The server also provides MCP Resources (accessible via @ mentions):
patents://cpc/{code}- CPC classification informationpatents://status-codes- USPTO status code definitionspatents://sources- Data source informationpatents://search-syntax- Query syntax guide
And MCP Prompts (workflow templates):
prior_art_search- Comprehensive prior art search guidepatent_validity- Patent validity analysis workflowcompetitor_portfolio- Competitor portfolio analysisptab_research- PTAB proceeding research guidefreedom_to_operate- FTO analysis workflowpatent_landscape- Technology landscape mapping
Testing
The project includes comprehensive test suites:
# Run unit tests (default - skips integration tests)
uv run pytest
# Run with verbose output
uv run pytest -v
# Run integration tests (requires network access)
uv run pytest -m integration
# Run all tests including integration
uv run pytest -m ""
# Run with coverage report
uv run pytest --cov=patent_mcp_serverTest results are stored in /test/test_results/.
Development
To install development dependencies:
uv sync --devPublishing to PyPI
# Build distribution packages
rm -rf dist/ && uv run python -m build
# Upload to PyPI
uv run twine upload dist/*Contributing
Issues and PRs welcome. See CONTRIBUTING.md for the contribution guide, and AGENTS.md for guidance specific to AI agents. Use the bug report or feature request templates when filing an issue — they prompt for the tool call, the constructed request URL/body, and the raw API response, which is usually enough to land a fix in one turn.
Version History
v0.9.5 (Current)
Re-enable 7 PTAB tools on USPTO ODP v3.0:
ptab_search_proceedings,ptab_get_proceeding,ptab_get_documents,ptab_search_decisions,ptab_get_decision,ptab_search_appeals,ptab_get_appeal(issue #23). PTAB data relocated to ODP/api/v1/patent/trials/*and/api/v1/patent/appeals/*(paths not in the ODP Swagger UI); the standalone-API decommission (issue #16) was correct for the Patent Litigation API, but PTAB moved rather than disappeared.Active tool count: 27 (up from 20); unavailable: 25 (down from 32); total registered remains 52
v0.9.4
Fix
ppubs_search_patents/ppubs_search_applicationsquery semantics (issue #21): default operator changed fromORtoAND, so multi-word queries likemachine learningno longer match the entire corpus and collapse into the latest-grants fallback underdate_publ descsort.Fix template-mutation bug in PPUBS client (
search_query.copy()→copy.deepcopy(...)), eliminating a concurrency hazard between parallel calls.Fix
odp_search_applicationsfilters being silently ignored upstream (issue #21): switched from GET query-string params to POST with a Lucene-styleqbody.assignee_name,inventor_name,application_number,patent_number, and filing-date ranges are now properly AND-combined into the search. Tool now returnsMISSING_FILTERrather than dumping the full 12.8M-record corpus when called with no filters.Updated
ppubs_search_patents/ppubs_search_applications/odp_search_applicationsdocstrings to reflect the corrected semantics and document Lucene query support on ODP.Added
CONTRIBUTING.md,AGENTS.md, bug-report + feature-request issue templates, and a PR template.
v0.9.0
Handle PTAB Trial API and Patent Litigation API unavailability on ODP (issue #16)
All 7
ptab_*tools and 4 litigation tools now returnAPI_UNAVAILABLEwith workaround guidance pointing to PPUBS tools and USPTO bulk datasetsActive tool count: 20 (down from 31); unavailable: 32 (up from 21); total registered remains 52
Added unit tests for all 11 newly-unavailable tools and extended the shared error-structure parametrization
Updated
check_api_status,resources.pydata sources, client docstrings, and README to reflect the shutdown
v0.8.0
Handle decommissioned PatentsView API (shut down March 20, 2026)
All 14
patentsview_*tools returnAPI_UNAVAILABLEwith workaround guidanceFixed circular references in office_actions resources that pointed to unavailable PatentsView tools
Updated API Sources table, configuration, and documentation
v0.7.0
Handle decommissioned Office Action and Enriched Citation APIs (developer.uspto.gov)
All 7 affected tools return
API_UNAVAILABLEwith workaround guidanceAdded
test/unit/test_unavailable_tools.pyfor decommissioned tool testingCode cleanup: removed dead code, improved docstrings
v0.6.2
Updated API key registration instructions: keys are now obtained from data.uspto.gov ("My ODP")
Clarified that
api.uspto.govis the correct API endpoint (notdata.uspto.govwhich is the web portal)Noted PTAB API v3 migration to ODP and Office Action API migration (early 2026)
v0.6.1
Added PatentsView attorney search tools (
patentsview_search_attorneys,patentsview_get_attorney)Added PatentsView IPC classification tools (
patentsview_lookup_ipc,patentsview_search_by_ipc)Fixed bug in
search_publicationsmethod (pagination options not being passed)
v0.6.0
PyPI release preparation
v0.5.0
Focused on USPTO-only data sources
Renamed ODP tools with
odp_prefix for clarityImproved function signatures (using
queryinstead ofq)
v0.3.0
Added 33 new tools (PTAB, PatentsView, Office Actions, Citations, Litigation)
Rate limiting support for PatentsView API
Comprehensive async client architecture
v0.2.2
Centralized configuration with environment variables
Standardized error handling
Input validation with Pydantic
Retry logic with exponential backoff
Session caching for PPUBS
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/riemannzeta/patent_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server