patents-mcp
MCP server for patent search and prior art discovery powered by Google Patents public dataset on BigQuery. Supports searching patents, fetching full patent details with CPC codes and citations, and retrieving legal claims text.
README
patents-mcp
An MCP (Model Context Protocol) server for patent search and prior art discovery, powered by the Google Patents public dataset on BigQuery.
Built with the official Go MCP SDK.
Why patents-mcp?
Existing patent MCP servers are either paid, single-source, or unmaintained. patents-mcp is:
- Free — built on Google Patents public dataset (1TB/month free on BigQuery)
- Open source — MIT licensed
- Production grade — structured logging, graceful shutdown, clean architecture
- Extensible — each tool is self-contained, easy to add new tools
Available Tools
| Tool | Description |
|---|---|
search_patents |
Search patents by keyword, technology area, or inventor name |
get_patent |
Fetch full patent details by publication number |
get_patent_claims |
Fetch patent claims text |
Prerequisites
- Go 1.21+
- A Google Cloud account (free)
- BigQuery API enabled on your GCP project
Setup
1. Google Cloud Setup
- Create a GCP project at console.cloud.google.com
- Enable the BigQuery API
- Create a service account with the following roles:
BigQuery Job UserBigQuery Data Viewer
- Download the service account JSON key
2. Install
git clone https://github.com/tushariitr-19/patents-mcp
cd patents-mcp
go build -o patents-mcp-server ./cmd/server/
3. Configure
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"
export GCP_PROJECT_ID="your-gcp-project-id"
# Optional: enable debug logging
export DEBUG=true
Usage with Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"patents-mcp": {
"command": "/path/to/patents-mcp-server",
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json",
"GCP_PROJECT_ID": "your-gcp-project-id"
}
}
}
}
Example Prompts
Once connected to Claude Desktop:
- "Search for patents related to transformer neural networks"
- "Find prior art for context-aware UI element hiding"
- "What patents has Google filed related to quantum computing?"
- "Find patents by inventor Yann LeCun"
Architecture
patents-mcp/
├── cmd/server/main.go ← entry point, env vars, graceful shutdown
├── server/server.go ← MCP server setup, tool registration
├── tools/
│ └── search.go ← search_patents tool (self-contained)
├── bigquery/
│ └── client.go ← BigQuery query execution
├── logger/
│ └── logger.go ← structured logging via zap
└── models/
└── patent.go ← shared Patent struct
Each tool owns its own dependencies — the server is agnostic of what tools do internally. Adding a new tool is a single line in server/server.go.
Contributing
PRs welcome. To add a new tool:
- Create
tools/<toolname>.go - Define your input struct and tool definition
- Register it in
server/server.gowith one line
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.