cnipa-mcp
v0.1.0CNIPA patent query MCP server: self-contained direct mode (bundled Node) or HTTP proxy mode
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
service_status
查看服务器运行状态:模式(direct 直连 / proxy 代理)、依赖(Node/OpenCV)、 数据目录、默认凭据是否已配置(不显示具体值)。建议排障时首先调用。
query_patent
按专利号查询专利(返回检索信息、著录项目、费用信息)。 参数: patent_no: 单个专利号,或逗号分隔的多个专利号。 支持 CN/ZL 前缀与 .X/.8 等校验码后缀,如 "2024220931344"、"CN2024220931344.8"。 account / password / type_key: CNIPA 账号凭据(缺省时用环境变量);type_key: "1"自然人 / "2"法人 / "3"代理机构(也接受中文写法)。 说明:单个专利号查询失败时,该条数据会带 error 字段;多个专利号时返回数组。 首次调用包含登录流稅
| Parameter | Type | Description |
|---|---|---|
patent_no * | string | |
account | string | |
password | string | |
type_key | string |
query_applicant_patents
按申请人名称查询名下专利,保存完整 JSON(直连模式另生成本地 Excel),并返回前 N 条预览。 参数: sqrmc: 申请人名称,如 "山东大学"。 account / password / type_key: 同 query_patent。 preview_count: 返回结果中预览的记录条数,默认 10,上限 200。 max_pages: >0 时最多拉取该页数(超大申请人快速取样);0=全量。截断时 truncated=True。 托管沙箱(如魔搭免费实例)建议设置,避免超时/超内存。 download_excel: 是否生成并保存 Excel(需要 openpy…
| Parameter | Type | Description |
|---|---|---|
sqrmc * | string | |
account | string | |
download_excel | boolean | |
max_pages | integer | |
password | string | |
preview_count | integer | |
save_dir | string | |
type_key | string |
download_excel_file
下载后端已生成的 Excel 文件到本地(仅代理模式;直连模式的 Excel 由 query_applicant_patents 直接生成,无需此工具)。 参数: filename: 文件名(如 "20260911_153045_山东大学_专利列表.xlsx"),或完整下载 URL。 save_dir: 保存目录,默认 ~/cnipa-exports。
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
save_dir | string |