Google Patents Mcp

Google Patents Mcp

🚀 谷歌专利项目 MCP 服务器文档

这是一个用于访问 Google Patents 数据的服务器端工具。借助该服务器,你可以使用 SerpApi 接口开展专利搜索,还支持自定义参数和过滤器。

🚀 快速开始

安装

  1. 克隆仓库:
git clone 
cd google-patents-mcp
  1. 安装依赖:
npm install
  1. 创建配置文件 .env(参考 .env.example)并添加 SERPAPI_API_KEY

运行

  1. 构建项目:
npm run build
  1. 启动服务:
npm start

或者在开发环境中使用自动重建功能:

npm run dev

✨ 主要特性

  • 支持使用 SerpApi 接口进行专利搜索。
  • 可自定义参数和过滤器。
  • 提供多种运行模式,支持开发环境的自动重建。

📦 安装指南

克隆仓库

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 文件)。

  • 0 关注
  • 0 收藏,24 浏览
  • system 提出于 2025-09-21 21:09

相似服务问题

相关AI产品