# Patents Mcp

> MCP server for patent search and prior art discovery powered by Google Patents public dataset

- **Type:** MCP server
- **Install:** `agentstack add mcp-tushariitr-19-patents-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [tushariitr-19](https://agentstack.voostack.com/s/tushariitr-19)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [tushariitr-19](https://github.com/tushariitr-19)
- **Source:** https://github.com/tushariitr-19/patents-mcp

## Install

```sh
agentstack add mcp-tushariitr-19-patents-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# patents-mcp

[](https://golang.org)
[](LICENSE)
[](https://glama.ai/mcp/servers/tushariitr-19/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](https://github.com/modelcontextprotocol/go-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

1. Create a GCP project at [console.cloud.google.com](https://console.cloud.google.com)
2. Enable the BigQuery API
3. Create a service account with the following roles:
   - `BigQuery Job User`
   - `BigQuery Data Viewer`
4. Download the service account JSON key

### 2. Install

```bash
git clone https://github.com/tushariitr-19/patents-mcp
cd patents-mcp
go build -o patents-mcp-server ./cmd/server/
```

### 3. Configure

```bash
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`):

```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"
      }
    }
  }
}
```

## Screenshots

### Available Tools

## 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:

1. Create `tools/.go`
2. Define your input struct and tool definition
3. Register it in `server/server.go` with one line

## License

MIT

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [tushariitr-19](https://github.com/tushariitr-19)
- **Source:** [tushariitr-19/patents-mcp](https://github.com/tushariitr-19/patents-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-tushariitr-19-patents-mcp
- Seller: https://agentstack.voostack.com/s/tushariitr-19
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
