总局召回数据
数据来源:
市场监管总局缺陷消费品召回:
http://qxzh.samr.gov.cn/qxzh/qxxxcx/web.jsp
https://www.recall.org.cn/search.html?type=1
总局召回数据的 MCP 接口与 API 调用
以下接口由青悦 MCP 服务提供,同一份工具同时支持 MCP 协议与 HTTP 直连,两者共用同一个 access_key,按实际调用量计费。
想用 Claude Code / Codex / WorkBuddy / Qoder 等 AI 客户端一次接入全部服务?
查看 MCP 统一入口
MCP · StreamableHttp
https://mcp.epmap.org/v1/recall/mcp
MCP · SSE
https://mcp.epmap.org/v1/recall/sse
HTTP 直连
https://mcp.epmap.org/v1/recall/api
计费说明 按小时结算,同一小时内同一工具的调用量合并计算;合计不足 ¥0.01 的按 ¥0.01 收取;单价为 ¥0 的免费工具不计费。
的返回示例
接入教程:四步调通第一个接口
1
获取 access_key
到 API KEY 管理 创建一枚令牌,形如
sk_xxxxxxxx。它等同于账户的计费权限,不要贴进公开仓库、聊天工具或截图。
2
选择要调用的接口
- 产品召回(get_recall_info)
无数据
端点:
https://mcp.epmap.org/v1/recall/api/get_recall_info 3
复制代码运行
import requests
API_KEY = "sk_xxxxxxxxxxxxxxxx" # 到 https://data.epmap.org/api_key 创建
BASE = "https://mcp.epmap.org/v1/recall/api"
# 下面两种写法等价,跑其中一种即可(两段都跑会各扣一次费)
# 方式一:GET,参数走 query string
resp = requests.get(
f"{BASE}/get_recall_info",
headers={"Authorization": f"Bearer {API_KEY}"},
params={
"pubtime_start": "2025-01-01",
"pubtime_end": "2025-12-31",
"company_name": "某汽车公司",
"keyword": "召回",
"defect_type": "汽车",
"source": "市场监管总局",
"stock_name": "某某股份",
"stock_code": "600000",
"page": "1",
"page_size": "20",
},
timeout=30,
)
print(resp.status_code)
print(resp.json())
# 方式二:POST,参数走 JSON body(写 json=,不要用 data= 传表单)
resp = requests.post(
f"{BASE}/get_recall_info",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"pubtime_start": "2025-01-01",
"pubtime_end": "2025-12-31",
"company_name": "某汽车公司",
"keyword": "召回",
"defect_type": "汽车",
"source": "市场监管总局",
"stock_name": "某某股份",
"stock_code": "600000",
"page": "1",
"page_size": "20",
},
timeout=30,
)
print(resp.status_code)
print(resp.json())
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
API_KEY = "sk_xxxxxxxxxxxxxxxx"
URL = "https://mcp.epmap.org/v1/recall/mcp"
async def main():
async with streamablehttp_client(
URL, headers={"Authorization": f"Bearer {API_KEY}"}
) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
# 先看服务端提供了哪些工具
listed = await session.list_tools()
print([t.name for t in listed.tools])
result = await session.call_tool(
"get_recall_info",
{
"pubtime_start": "2025-01-01",
"pubtime_end": "2025-12-31",
"company_name": "某汽车公司",
"keyword": "召回",
"defect_type": "汽车",
"source": "市场监管总局",
"stock_name": "某某股份",
"stock_code": "600000",
"page": "1",
"page_size": "20",
},
)
print(result.structuredContent or result.content[0].text)
asyncio.run(main())
需要
pip install "mcp>=1.2"。curl -G "https://mcp.epmap.org/v1/recall/api/get_recall_info" \ -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \ --data-urlencode 'pubtime_start=2025-01-01' \ --data-urlencode 'pubtime_end=2025-12-31' \ --data-urlencode 'company_name=某汽车公司' \ --data-urlencode 'keyword=召回' \ --data-urlencode 'defect_type=汽车' \ --data-urlencode 'source=市场监管总局' \ --data-urlencode 'stock_name=某某股份' \ --data-urlencode 'stock_code=600000' \ --data-urlencode 'page=1' \ --data-urlencode 'page_size=20'
{
"mcpServers": {
"epmap-recall": {
"type": "streamable-http",
"url": "https://mcp.epmap.org/v1/recall/mcp",
"headers": {
"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"
}
}
}
}
粘贴到 Claude Desktop / Cursor 等客户端的
mcpServers 配置中即可。
4
两点注意事项
- 上面的示例参数是真实数据,调用一次就会按单价扣费,调试时请控制调用次数。
MCP
