Patents Mcp Server

io.github.sapientsai由 GitHub 帳號 sapientsai 發布v1.2.3更新於 Nov 3, 2026

Patent intelligence — USPTO Open Data, PTAB, EPO OPS and BigQuery full-text search.

概覽

AI 產生的概覽

本機 MCP 伺服器,為助理提供專利情報:USPTO ODP、PTAB、EPO OPS,以及涵蓋 9,000 萬件以上專利的 BigQuery 全文檢索。

可以做什麼
  • 檢索並讀取 USPTO 申請案、審查歷程、讓與、延續資料及卷宗 PDF
  • 查詢 PTAB 程序、決定與上訴,以及引證、訴訟和審查意見
  • 檢索 EPO 專利,取得書目、摘要、申請專利範圍與說明書,查詢 INPADOC 同族與法律狀態
  • 執行 BigQuery 專利全文檢索、同族查詢、引證網路與 CPC 申請統計
  • 查詢 CPC 分類號與 USPTO 狀態碼含義,並檢查已設定的資料來源
適用情境
適合專利態勢分析、先前技術檢索與自由實施(FTO)研究、競爭對手專利組合分析、PTAB 研究與專利監控,讓助理直接使用官方專利資料來源,而非公開網頁。
執行需求
以 Node.js 本機程序執行(npm 套件,預設 stdio,可選 HTTP 傳輸)。各資料來源憑證為選用:USPTO_API_KEY 用於 ODP、PTAB、引證與審查意見;EPO_CONSUMER_KEY 與 EPO_CONSUMER_SECRET 用於 EPO OPS;BigQuery 需 GOOGLE_APPLICATION_CREDENTIALS 或 GOOGLE_CREDENTIALS_JSON 加 GOOGLE_CLOUD_PROJECT。缺少金鑰的工具不會註冊。需要連線至上游 API 的網路。
安裝前請注意
需要多項第三方憑證:USPTO_API_KEY、EPO_CONSUMER_KEY、EPO_CONSUMER_SECRET,以及具備 BigQuery 權限的 GCP 服務帳戶金鑰(GOOGLE_APPLICATION_CREDENTIALS 或內嵌 GOOGLE_CREDENTIALS_JSON)。BigQuery 查詢會計入 GOOGLE_CLOUD_PROJECT 費用;大範圍全文檢索每次約掃描 200-300GB,而免費額度為每月 1TB,可能產生費用。文件下載會透過伺服器自身的 USPTO 金鑰代理。查詢內容與專利識別碼會傳送給 USPTO、EPO 與 Google。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Patents Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

patents-mcp-server

FastMCP TypeScript patent intelligence MCP server. 45 tools across USPTO, EPO, and Google Patents for IP landscape analysis, freedom-to-operate research, and patent monitoring.

Note: PatentsView support was removed in May 2026 — its API host search.patentsview.org was decommissioned on 2026-03-20 when PatentsView migrated to USPTO ODP as bulk-download datasets only (no live API replacement). US full-text search is now available via Google BigQuery; bibliographic data via USPTO ODP. See docs/MCP_PLAN-PatentsView-Rehoming_2026-05-30.md for the options analysis.

Data Sources

SourceToolsKey Capability
USPTO ODP30Applications, document PDF download, PTAB, citations, litigation, office actions
EPO OPS8INPADOC patent families, legal status across ~44 offices, claims/descriptions
Google BigQuery4Full-text search across 90M+ patents, citation networks, CPC analytics

Tools only register when their required API keys are configured — no broken tools cluttering the MCP client.

Quick Start

bash
pnpm installcp .env.example .env    # Add your API keyspnpm build

Run via stdio (Claude Desktop / Claude Code)

bash
node dist/index.js

Run via HTTP (remote deployment)

bash
TRANSPORT=httpStream PORT=8080 node dist/index.js

MCP Configuration (.mcp.json)

json
{  "mcpServers": {    "patents": {      "command": "node",      "args": ["dist/index.js"],      "env": {        "USPTO_API_KEY": "${USPTO_API_KEY}",        "EPO_CONSUMER_KEY": "${EPO_CONSUMER_KEY}",        "EPO_CONSUMER_SECRET": "${EPO_CONSUMER_SECRET}",        "GOOGLE_APPLICATION_CREDENTIALS": "${GOOGLE_APPLICATION_CREDENTIALS}",        "GOOGLE_CLOUD_PROJECT": "${GOOGLE_CLOUD_PROJECT}"      }    }  }}

Test with MCP Inspector

bash
npx @modelcontextprotocol/inspector node dist/index.js

Configuration

API Keys

SourceEnv Var(s)Where to Get
USPTO ODPUSPTO_API_KEYdata.uspto.gov → MyODP
EPO OPSEPO_CONSUMER_KEY + EPO_CONSUMER_SECRETdevelopers.epo.org
BigQueryGOOGLE_APPLICATION_CREDENTIALS + GOOGLE_CLOUD_PROJECTGCP Console (service account with BigQuery roles)

Missing API keys disable related tools gracefully — the server still starts with whatever sources are configured. Use the check-api-status tool to verify which sources are available.

Credential Management with envpkt

This project uses envpkt for credential management. API keys are stored as sealed (age-encrypted) packets and non-secret config as [env.*] entries in envpkt.toml. The .mcp.json references env vars via ${VAR} syntax, which are loaded by eval "$(envpkt env export)" in your shell profile.

Path Expansion

GOOGLE_APPLICATION_CREDENTIALS supports tilde (~) and environment variable ($HOME, ${HOME}) expansion via functype-os. Use paths like ~/.config/gcloud/key.json instead of absolute paths.

BigQuery Cost Notes

  • Free tier: 1TB/month of queries scanned
  • A broad full-text search across 90M patents scans ~200-300GB per query
  • Targeted queries (patent number, family, CPC with date range) scan much less
  • Every query runs a dry run first; estimated cost is included in the response

Tools

USPTO ODP (13 tools)

Official USPTO Open Data Portal — applications, prosecution history, assignments, documents.

  • odp-search-applications — Search patent applications (2001+)
  • odp-get-application / metadata / continuity / assignment / adjustment / attorney / foreign-priority / transactions / documents
  • odp-download-document — Download a file-wrapper document as a PDF (proxies the authenticated fetch through the server's key)
  • odp-search-datasets / get-dataset — Bulk data products

PTAB (7 tools)

Post-grant proceedings — IPR, PGR, CBM, ex parte appeals.

  • ptab-search-proceedings / get-proceeding / get-documents
  • ptab-search-decisions / get-decision
  • ptab-search-appeals / get-appeal

Citations & Litigation (6 tools)

Patent citations and litigation data.

  • citations-get-enriched / search / get-metrics
  • litigation-search / get-case / get-patent

EPO OPS (8 tools)

European Patent Office — international coverage, INPADOC families, legal status.

  • epo-search-patents — CQL search (title, abstract, applicant, inventor, CPC, date)
  • epo-get-biblio / abstract / claims / description — Patent document sections
  • epo-family-lookup — INPADOC family members across all jurisdictions
  • epo-legal-status — Legal status across ~44 patent offices
  • epo-number-convert — Convert between number formats

Google BigQuery (4 tools)

Full-text search across 90M+ patent documents. Replaces PPUBS for claims search.

  • bigquery-patent-search — Full-text search across titles and abstracts
  • bigquery-patent-family — Family members by INPADOC family ID
  • bigquery-citation-network — Citation graph (depth 1 or 2)
  • bigquery-cpc-analytics — Filing statistics by CPC classification

Office Actions (4 tools)

USPTO office action data (migrating to ODP in 2026).

  • office-action-get-text / search / get-citations / get-rejections

Utility (3 tools)

  • check-api-status — Health check all configured APIs
  • get-cpc-info — CPC classification lookup
  • get-status-code — USPTO status code meanings

Prompts

Six workflow prompt templates for common patent analysis tasks:

PromptPurpose
prior_art_searchMulti-source prior art search workflow
patent_validityStructured validity analysis (102/103/112)
competitor_portfolioCompetitor patent portfolio analysis
ptab_researchPTAB proceedings research (IPR/PGR/CBM)
freedom_to_operateFTO analysis methodology
patent_landscapeTechnology area landscape mapping

Resources

URIDescription
patents://cpc/{code}CPC classification info
patents://status-codesUSPTO status code definitions
patents://sourcesData source overview
patents://search-syntaxQuery syntax guide (EPO CQL, ODP, BigQuery)

Development

bash
pnpm validate        # Format + lint + typecheck + test + buildpnpm test            # Run testspnpm build           # Production buildpnpm typecheck       # Type check onlypnpm codegen         # Regenerate Zod schemas from OpenAPI specspnpm fetch-specs     # Re-download OpenAPI specs from upstream

OpenAPI Codegen

Response schemas are generated from upstream OpenAPI specs using Hey API with the Zod plugin:

bash
pnpm fetch-specs     # Download USPTO ODP specpnpm codegen         # Generate src/generated/odp/zod.gen.ts

Generated code is committed to the repo so CI doesn't need the codegen step.

Testing

Integration tests run against live APIs when credentials are available:

bash
# Requires USPTO_API_KEY in envpnpm test

Tests skip gracefully when API keys are absent.

Architecture

Built with FastMCP + Zod + ts-builds + functype-os.

src/├── index.ts                    # Entry point├── server.ts                   # FastMCP instance├── tools/                      # 45 tools across 7 modules (conditional registration)├── clients/                    # API clients (base, ODP, EPO, BigQuery)├── generated/                  # Zod schemas from OpenAPI specs (Hey API codegen)├── specs/                      # Local copies of OpenAPI specs├── resources/                  # 4 MCP resources├── prompts/                    # 6 prompt templates└── lib/                        # Config, retry, errors, patent number normalization

License

MIT

Acknowledgments


Sponsored by [SapientsAI] SapientsAI — Building agentic AI for businesses

來源:README.md,提交 3dab394

工具

3

check-api-status

Check the health and configuration status of all patent data APIs (ODP, EPO, BigQuery).

無需輸入參數。

get-cpc-info

Look up CPC (Cooperative Patent Classification) code information. Returns the description for a given CPC section, class, or subclass code.

輸入參數code必填

get-status-code

Look up the meaning of a USPTO application status code. Returns a human-readable description of what the status code indicates about the application's current state.

輸入參數code必填

版本歷史

1
  1. v1.2.3最新Oct 29, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分