The PatSnap MCP server allows you to collect and analyze patent-related information from PatSnap's API. It provides tools for trend analysis and reporting, making it easier to understand patent landscapes for specific technologies or keywords.
Follow these steps to set up the PatSnap MCP server:
Install the package using npm:
npm install @kunihiros/patsnap-mcp
Ensure you have valid PatSnap API credentials (Client ID and Secret), which you can obtain from https://open.patsnap.com/home
To integrate this MCP server with your MCP Host, add the following configuration to your cline_mcp_settings.json
file:
{
"mcpServers": {
"@kunihiros/patsnap-mcp": {
"command": "npx",
"args": ["@kunihiros/patsnap-mcp"],
"env": {
"PATSNAP_CLIENT_ID": "your_patsnap_client_id_here",
"PATSNAP_CLIENT_SECRET": "your_patsnap_client_secret_here"
},
"disabled": false,
"autoApprove": []
}
}
}
Be sure to replace the placeholder values with your actual PatSnap API credentials.
The server provides several tools for patent analysis:
Use get_patent_trends
to analyze annual application and issued trends for patents. This helps you understand the development trajectory of patents related to specific technology fields or keywords.
Note: Either keywords or IPC classification must be specified.
get_word_cloud: Obtain a snapshot of frequently occurring keywords/phrases from the most recent 5,000 published patents. Returns up to 100 keywords.
get_wheel_of_innovation: Provides a two-tiered hierarchical view of keywords/phrases in a technology space, showing common terms and their associations.
Note: Both tools require either keywords or IPC classification.
get_most_cited_patents: View the top 10 patents cited most frequently by others, indicating influential or core technology.
get_simple_legal_status: Provides a breakdown of the simple legal status (Active, Inactive, Pending) for patents in the technology field.
get_most_litigated_patents: Identify the top 10 patents involved in the most litigation cases.
get_top_authorities_of_origin: Returns the top authorities (priority countries) of origin for patents matching your criteria.
get_top_inventors: Shows the top 10 inventors in the specified technology field.
get_top_assignees: Shows the top 10 companies (assignees) with the largest patent portfolios in the field.
For all tools, note that:
Remember to set your PatSnap credentials as environment variables for the server to function properly.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "kunihiros-patsnap-mcp" '{"command":"npx","args":["@kunihiros/patsnap-mcp"],"env":{"PATSNAP_CLIENT_ID":"your_patsnap_client_id_here","PATSNAP_CLIENT_SECRET":"your_patsnap_client_secret_here"},"disabled":false,"autoApprove":[]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"@kunihiros/patsnap-mcp": {
"command": "npx",
"args": [
"@kunihiros/patsnap-mcp"
],
"env": {
"PATSNAP_CLIENT_ID": "your_patsnap_client_id_here",
"PATSNAP_CLIENT_SECRET": "your_patsnap_client_secret_here"
},
"disabled": false,
"autoApprove": []
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"@kunihiros/patsnap-mcp": {
"command": "npx",
"args": [
"@kunihiros/patsnap-mcp"
],
"env": {
"PATSNAP_CLIENT_ID": "your_patsnap_client_id_here",
"PATSNAP_CLIENT_SECRET": "your_patsnap_client_secret_here"
},
"disabled": false,
"autoApprove": []
}
}
}
3. Restart Claude Desktop for the changes to take effect