这是一个用于访问 Google Patents 数据的服务器端工具。借助该服务器,你可以使用 SerpApi 接口开展专利搜索,还支持自定义参数和过滤器。
git clone
cd google-patents-mcp
npm install
.env(参考 .env.example)并添加 SERPAPI_API_KEY。npm run build
npm start
或者在开发环境中使用自动重建功能:
npm run dev
git clone
cd google-patents-mcp
npm install
创建配置文件 .env(参考 .env.example)并添加 SERPAPI_API_KEY。
{
"method": "POST",
"path": "/api/search",
"body": {
"query": string,
"num": integer,
"language": string,
"status": ["GRANT", "APPLICATION"],
"after": string,
"before": string,
"inventor": string,
"assignee": string,
"country": string,
"type": ["PATENT", "DESIGN"],
"scholar": boolean
}
}
{
"organicResults": {
"items": [
{
"title": string,
"link": string,
"snippet": string,
"patentNumber": string,
"publicationDate": string,
"filingDate": string,
"status": string,
"type": string,
"inventors": [string],
"assignees": [string]
}
],
"totalResults": integer
}
}
3000,可自定义。/tmp 目录下。LOG_LEVEL 环境变量控制(默认为 info)。error, warn, info, http, verbose, debug, silly。express:HTTP 服务框架。dotenv:加载环境变量。winston:日志库。本项目采用 MIT License(详见 LICENSE 文件)。