Getting started
MCP server
Connect Claude, ChatGPT, Cursor or your own agent to patentgrep. It can then search US patents and applications, read claims, follow citations and look for prior art for you.
Add the address on the right to any app that supports MCP. Apps connect in one of two ways:
| How | Best for | What you need |
|---|---|---|
| Sign in with Google | Claude, ChatGPT, Cursor, VS Code and other apps | A patentgrep account. The app opens a sign-in page and you choose Allow. |
| API key | Command-line agents, scripts and servers | A key from your account, sent in the X-Api-Key header. |
Set-up for Claude Code, Claude, ChatGPT, Cursor, VS Code and GitHub Copilot, Codex, Gemini CLI and any other client. Tool calls count toward your account's daily limit.
https://mcp.patentgrep.com/mcpClaude Code
- Run the command on the right.
--scope usermakes patentgrep available in every project. - In Claude Code, run
/mcp, choose patentgrep, then Authenticate. Your browser opens: sign in with Google and choose Allow. - Run
claude mcp listto check. patentgrep shows as connected.
With an API key there is nothing to approve: export PATENTGREP_KEY first and Claude Code saves the key in its config.
claude mcp add --transport http --scope user patentgrep \
https://mcp.patentgrep.com/mcp
# Then, in Claude Code, run /mcp and choose Authenticateclaude mcp add --transport http --scope user patentgrep \
https://mcp.patentgrep.com/mcp \
--header "X-Api-Key: $PATENTGREP_KEY"Claude and Claude Desktop
Add patentgrep as a custom connector once, on claude.ai or in Claude Desktop. It then works in the Claude apps too. Free plans can add one custom connector.
- Open Customize → Connectors, choose + Add, then Add custom connector.
- Name it patentgrep, paste the server address and choose Continue.
- Keep the sign-in settings Claude detects and choose Add.
- Choose Connect, sign in with Google and choose Allow.
- In a chat, open + → Connectors and turn patentgrep on.
On Team and Enterprise plans, an owner adds the connector in Organization settings → Connectors. Members then choose Connect in their own settings.
https://mcp.patentgrep.com/mcpChatGPT
ChatGPT adds MCP servers as plugins. Whether you can add one depends on your plan and, in a workspace, on what your admin allows.
- Go to chatgpt.com/plugins, choose +, then Add custom MCP server.
- Name it patentgrep and describe it, for example: Search and read US patents.
- Under Connection, paste the server address. For authentication, choose OAuth.
- Choose I understand and want to continue, then Create as a plugin.
- Sign in with Google and choose Allow. In a chat, type @ and pick patentgrep.
https://mcp.patentgrep.com/mcpCursor
Add to Cursor installs patentgrep with sign-in in one click. Or add it yourself to ~/.cursor/mcp.json, or to .cursor/mcp.json for one project.
- Paste the config on the right and save.
- In Cursor's MCP settings, patentgrep asks you to sign in. Sign in with Google and choose Allow.
With an API key, Cursor reads PATENTGREP_KEY from the environment it starts in. You can also paste the key in place of ${env:PATENTGREP_KEY}.
{
"mcpServers": {
"patentgrep": {
"url": "https://mcp.patentgrep.com/mcp"
}
}
}{
"mcpServers": {
"patentgrep": {
"url": "https://mcp.patentgrep.com/mcp",
"headers": {
"X-Api-Key": "${env:PATENTGREP_KEY}"
}
}
}
}VS Code and GitHub Copilot
Copilot's agent mode uses the MCP servers in mcp.json. Run MCP: Open User Configuration from the Command Palette to add patentgrep everywhere, or create .vscode/mcp.json for one workspace.
- Paste the config on the right and save.
- Choose Start above patentgrep in
mcp.json. VS Code asks you to sign in with Google or, with the API key version, for your key, and stores it securely. - In Copilot Chat, switch to Agent and turn on patentgrep's tools in the tools menu.
{
"servers": {
"patentgrep": {
"type": "http",
"url": "https://mcp.patentgrep.com/mcp"
}
}
}{
"inputs": [
{
"type": "promptString",
"id": "patentgrep-key",
"description": "patentgrep API key",
"password": true
}
],
"servers": {
"patentgrep": {
"type": "http",
"url": "https://mcp.patentgrep.com/mcp",
"headers": {
"X-Api-Key": "${input:patentgrep-key}"
}
}
}
}Codex
The Codex CLI and IDE extension share ~/.codex/config.toml.
- Sign in: run the command. Codex finds patentgrep's sign-in and opens your browser: sign in with Google and choose Allow.
- API key: add the config to
~/.codex/config.tomland exportPATENTGREP_KEYbefore starting Codex. Codex sends it as a Bearer token, which patentgrep accepts.
codex mcp add patentgrep --url https://mcp.patentgrep.com/mcp
# Codex opens your browser to sign in.
# To sign in again later: codex mcp login patentgrep[mcp_servers.patentgrep]
url = "https://mcp.patentgrep.com/mcp"
bearer_token_env_var = "PATENTGREP_KEY"Gemini CLI
- Sign in: add the server with the command, then run
/mcp auth patentgrepin Gemini CLI to sign in with Google. - API key: add the config to
~/.gemini/settings.json. Gemini CLI fills in$PATENTGREP_KEYfrom your environment.
gemini mcp add --transport http --scope user patentgrep \
https://mcp.patentgrep.com/mcp
# Then, in Gemini CLI, run /mcp auth patentgrep{
"mcpServers": {
"patentgrep": {
"type": "http",
"url": "https://mcp.patentgrep.com/mcp",
"headers": {
"X-Api-Key": "$PATENTGREP_KEY"
}
}
}
}Any MCP client
patentgrep speaks MCP over Streamable HTTP. Clients that support MCP sign-in find it on their own from the server's 401 response. Others send an API key.
| Setting | Value |
|---|---|
| Address | https://mcp.patentgrep.com/mcp |
| Transport | Streamable HTTP |
| API key | X-Api-Key: <key> or Authorization: Bearer <key> |
| Sign-in | OAuth 2.1 with PKCE and dynamic client registration. Metadata at /.well-known/oauth-protected-resource/mcp; scope patents:read. |
Keep the key in your client's settings or environment, never in the address.
curl https://mcp.patentgrep.com/mcp \
-H "X-Api-Key: $PATENTGREP_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": {
"name": "curl",
"version": "1.0"
}
}
}'HTTP/2 401
www-authenticate: Bearer realm="OAuth",
resource_metadata="https://mcp.patentgrep.com/.well-known/oauth-protected-resource/mcp",
scope="patents:read"Tools
Nine tools, all read-only. Each returns the same data as the HTTP API.
| Tool | What it does | Main arguments |
|---|---|---|
search_patents | Search grants and applications by words, query syntax or a plain description. | q, mode, type, from, to, cpc, assignee, company, sort, page |
get_patent | Read one patent: title, abstract, dates, parties and classification. | doc_id, such as US12251523B2 |
get_claims | Read the claims word for word, with which claims depend on which. | doc_id |
get_citations | List what a patent cites, or what cites it. | doc_id, direction, category, cursor |
find_prior_art | Find documents published before a patent's earliest claimed filing date. | doc_id, q, type, cpc |
find_similar | Find patents close to a given one, leaving out its own family. | doc_id, q, type, cpc |
aggregate | Count a search's matches by year, technology class, company and type. | Same filters as search_patents |
get_company | A company's publication counts, and which names are counted as that company. | slug, such as intel-corp-087add0438 |
get_cpc | Look up a classification code: its official title and how many patents use it. | code, such as H01M |
Results are evidence, not a legal opinion. Tools say when a search relaxed its matching and when family or citation coverage is incomplete, so your agent can tell you.
{
"name": "search_patents",
"arguments": {
"q": "solid electrolyte lithium",
"mode": "best",
"type": "grant",
"from": "2020",
"sort": "newest"
}
}Signing in and keys
- The first time an app connects, it opens patentgrep's sign-in page. Sign in with Google, check the app's name and where it will send you back to, then choose Allow.
- The app gets access to patentgrep's tools only. It never sees your Google password or an API key.
- Each connected app is listed with your API keys. Revoke it there to disconnect it; it stops working within a minute.
- API keys work in every client that can send a header. Create one key per tool so you can revoke one without the others.
Limits and errors
- Each tool call counts as one request toward your account's daily limit: 1,000 a day on the free plan, reset at midnight UTC.
- Connecting, signing in and listing tools don't count.
- The limit is shared by all your keys and connected apps.
- Most calls answer in seconds. A plain-language search can take longer, so allow a few minutes before a client gives up.
A failed call returns an error with status, message, retryable and retryAfter. Retry only when retryable is true, after retryAfter seconds. Errors lists the statuses.
{
"error": {
"status": 429,
"message": "Too many requests at once. Wait ten seconds and retry.",
"retryable": true,
"action": "retry_after_delay",
"retryAfter": 10
}
}