The PatSnap MCP server collects patent-related information from PatSnap's API for trend analysis and reporting purposes. It provides various tools to analyze patent trends, identify key players, and understand technology landscapes through the PatSnap Insights API.
This server offers several patent analysis tools:
To install the PatSnap MCP server:
# Install the package
npm install @kunihiros/patsnap-mcp
The server requires PatSnap API credentials to function. You'll need to set up environment variables for authentication:
export PATSNAP_CLIENT_ID="your_patsnap_client_id_here"
export PATSNAP_CLIENT_SECRET="your_patsnap_client_secret_here"
To integrate this server with your MCP Host, add the following 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": []
}
}
}
All tools require either keywords or IPC classification to be specified. When both are provided, IPC is typically prioritized.
Here are examples of how to use some of the available tools:
// Get patent application trends for AI-related patents
const trends = await get_patent_trends({
keywords: "artificial intelligence",
years: 5
});
// Get top companies in the machine learning space
const topAssignees = await get_top_assignees({
keywords: "machine learning",
limit: 10
});
// Get word cloud for blockchain technology
const wordCloud = await get_word_cloud({
keywords: "blockchain",
limit: 50
});
To obtain the required tokens for the PatSnap service, visit PatSnap Open Platform and register for API access.
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