patentscope
Enables searching and retrieving Google Patents data via SerpApi, including patent metadata, abstracts, claims, descriptions, family members, citations, and filters such as date, inventor, assignee, country, language, status, and type.
Allows patent searches to optionally include Google Scholar results.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
patentscope
CLI for searching and retrieving Google Patents data via the SerpApi Google Patents API. Also works as an MCP server for AI-assisted patent research.
Credits
This project is a fork of the original google-patents-mcp by Kunihiro Sasayama. We extend our gratitude for the foundational work and inspiration.
Related MCP server: google-image-search-mcp
Quick Start
# Install
bun add -g @softwarestartups/patentscope
# Or run without installing
bunx @softwarestartups/patentscope search "quantum computing"Pre-built binaries (no runtime required) are available on the GitHub Releases page.
Use with Claude Code
This repo is a Claude Code plugin marketplace. Install the companion skill so Claude Code can drive patentscope for you:
/plugin marketplace add SoftwareStartups/patentscope
/plugin install patentscope@softwarestartups-patentscopeOnce installed, just ask Claude in plain language (e.g., "Search patents for adaptive optics by Inventor X") and the skill will activate automatically. The plugin tracks this repo's releases — run /plugin marketplace update softwarestartups-patentscope to get the latest skill revisions.
Prerequisites
Bun: Version 1.0 or higher (not needed when using a pre-built binary).
SerpApi API Key: A valid key from SerpApi.
Configuration
Save your API key once with the login command:
patentscope login
# Enter your SerpApi API key: ****
# Or non-interactively
patentscope login --api-key YOUR_KEYThe key is stored in ~/.config/patentscope/config.json with strict file permissions.
To remove the stored key:
patentscope logoutThe SERPAPI_API_KEY environment variable takes precedence over the stored config, useful for CI or temporary overrides.
CLI Usage
Usage: patentscope <command> [flags]
Commands:
login Save your SerpApi API key
logout Remove saved API key
search [query] Search Google Patents
get <patentId> Get patent details
serve Start the MCP server on stdio
Flags:
-h, --help Show this help message
-v, --version Show version information
--json Output as JSONAll human-readable output goes to stderr. Stdout is reserved for --json structured output and the MCP JSON-RPC transport (in serve mode).
Searching patents
# Basic search
patentscope search "neural network chip"
# With filters
patentscope search "battery" --status GRANT --country US --num 20
# Date range
patentscope search "CRISPR" --after publication:20230101 --before publication:20231231
# Filter by inventor or assignee
patentscope search --inventor "John Smith" --assignee "Google"
# JSON output
patentscope search "quantum computing" --jsonSearch flags:
Flag | Description |
| Page number (default: 1) |
| Results per page (10-100, default: 10) |
| Sort by |
| Max date (e.g. |
| Min date (e.g. |
| Filter by inventor |
| Filter by assignee |
| Country code (e.g. |
| Language (e.g. |
|
|
|
|
| Include Google Scholar results |
Retrieving patent details
# Get metadata and abstract (default)
patentscope get US7654321B2
# Get specific sections
patentscope get US7654321B2 --include claims,description
# Get everything
patentscope get EP3456789A1 --include metadata,abstract,claims,description,family_members,citations
# Limit content length
patentscope get US7654321B2 --include description,claims --maxLength 5000
# JSON output
patentscope get US7654321B2 --jsonGet flags:
Flag | Description |
| Comma-separated sections: |
| Maximum character length for returned content |
JSON output mode
Add --json to any command for structured output on stdout:
patentscope search "quantum computing" --json
patentscope get US7654321B2 --json
patentscope --version --json
patentscope --help --jsonMCP Server
The serve command starts an MCP server on stdio, exposing two tools:
search_patents and get_patent.
MCP Host Configuration
Using a pre-built binary (download from GitHub Releases):
{
"mcpServers": {
"patentscope": {
"command": "/path/to/patentscope-darwin-arm64",
"args": ["serve"]
}
}
}Using bunx:
{
"mcpServers": {
"patentscope": {
"command": "bunx",
"args": ["@softwarestartups/patentscope", "serve"]
}
}
}The MCP server uses the API key from ~/.config/patentscope/config.json (set via patentscope login). Override with the SERPAPI_API_KEY environment variable if needed.
MCP Tools
search_patents
Searches Google Patents via SerpApi. Returns patent metadata (title, publication number, assignee, inventor, dates, and patent_link).
Parameter | Type | Required | Description |
| string | No | Search query (semicolon-separated terms) |
| integer | No | Page number (default: 1) |
| integer | No | Results per page (10-100, default: 10) |
| string | No |
|
| string | No | Max date (e.g. |
| string | No | Min date (e.g. |
| string | No | Inventor name (comma-separated) |
| string | No | Assignee name (comma-separated) |
| string | No | Country code (e.g. |
| string | No | Language (e.g. |
| string | No |
|
| string | No |
|
| boolean | No | Include Google Scholar results (default: false) |
get_patent
Fetches comprehensive patent data including claims, description, family members, citations, and metadata.
Parameter | Type | Required | Description |
| string | No* | Full Google Patents URL |
| string | No* | Patent ID (e.g. |
| array | No | Sections to include (default: |
| integer | No | Maximum character length for content |
*At least one of patent_url or patent_id must be provided. If both are given, patent_url takes precedence.
Binary Releases
Pre-built binaries for all supported platforms are available on the GitHub Releases page. No Bun or Node.js installation required.
Platform | Architecture | Binary |
Linux | x64 |
|
Linux | arm64 |
|
macOS | x64 |
|
macOS | arm64 |
|
curl -L https://github.com/SoftwareStartups/patentscope/releases/latest/download/patentscope-darwin-arm64 -o patentscope
chmod +x patentscope
./patentscope login
./patentscope search "quantum computing"Releasing
Push a semver tag to trigger the release workflow:
git tag v1.2.3
git push origin v1.2.3Development
Setup
git clone https://github.com/SoftwareStartups/patentscope.git
cd patentscope
bun install
patentscope login # or: export SERPAPI_API_KEY=your_keyWorkflow
task build # Build
task format # Format code
task check # Lint + typecheck
task test # Unit + integration tests
task test:e2e # End-to-end tests (real API calls)
task all # clean -> install -> build -> check -> testRun locally
bun src/index.ts search "quantum computing"
bun src/index.ts get US7654321B2
bun src/index.ts serveLogging
Logs go to stderr. Control the level via LOG_LEVEL (error, warn, info, http, verbose, debug, silly). Defaults to info.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
SEO & marketing toolkit for AI agents: GA4, Search Console, AdSense, GTM, PageSpeed, Trends.
19 market-data tools for AI agents: company KYC, SEC filings, patents, auctions, tenders
Web knowledge fetching tools for your agent.
44 tools for AI agents: Trends, SERP, SEO audits, screenshots, weather, FX, whois, RSS.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates with SerpAPI and YouTube to provide comprehensive search capabilities across Google Search, News, Scholar, Trends, Finance, Maps, Images, YouTube, and transcript retrieval for AI assistants.2MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to search, download, and analyze Google images via SerpAPI.320ISC

justserpapi-mcpofficial
AlicenseAqualityCmaintenanceEnables AI assistants to search Google, Maps, Trends, and other web data through JustSerpAPI endpoints. Supports natural language queries, endpoint discovery, pagination, and schema inspection.51MIT- AlicenseNot gradedqualityCmaintenanceWraps SerpApi to enable AI agents to perform web searches via various search engines.285 npmMIT