商业智能 MCP

维基数据实体MCP服务器

维基数据是一个共同维护的知识库,拥有超过1.21亿个项目,涵盖人员、组织、地点、作品和概念。它对于实体解析、知识图谱、搜索增强和结构化研究非常重要。

MCP 版本: 1.0.0 10 MCP工具 身份验证
维基数据实体

基本网址

https://mcp.pressmonitor.com/wikidata/v1

身份验证

MCP 调用也使用 Bearer 令牌通过 JSON-RPC 2.0 请求。

Authorization: Bearer YOUR_TOKEN

发现工具

首先列出MCP服务器公开的工具。

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
tool suggest_entities

建议实体

建议实体

参数

名称 类型 必填 描述
query_text string 查询文本
lang string 语言
limit string 限制
offset string 偏移量

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"suggest_entities","arguments":{"query_text":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool search_entities_by_label

按标签搜索实体

按标签搜索实体

参数

名称 类型 必填 描述
query_text string 查询文本
lang string 语言
limit string 限制
offset string 偏移量

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_label","arguments":{"query_text":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool search_entities_by_description

按描述搜索实体

按描述搜索实体

参数

名称 类型 必填 描述
query_text string 查询文本
lang string 语言
limit string 限制
offset string 偏移量

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_description","arguments":{"query_text":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool search_entities_by_type

按类型搜索实体

按类型搜索实体

参数

名称 类型 必填 描述
type string 类型
query_text string 查询文本
lang string 语言
limit string 限制
offset string 偏移量

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_type","arguments":{"type":"SOME_STRING_VALUE","query_text":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool search_entities_by_claim_value

按声明值搜索实体

按声明值搜索实体

参数

名称 类型 必填 描述
property string 属性
value string
mode string 模式
lang string 语言
limit string 限制
offset string 偏移量

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_claim_value","arguments":{"property":"SOME_STRING_VALUE","value":"SOME_STRING_VALUE","mode":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool search_entities_by_property

按属性搜索实体

按属性搜索实体

参数

名称 类型 必填 描述
property string 属性
value string
qualifier string 限定符
rank string 等级
lang string 语言
limit string 限制
offset string 偏移量

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_property","arguments":{"property":"SOME_STRING_VALUE","value":"SOME_STRING_VALUE","qualifier":"SOME_STRING_VALUE","rank":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool search_entities_by_date_range

按日期范围搜索实体

按日期范围搜索实体

参数

名称 类型 必填 描述
property string 属性
from string 起始
to string 终止
value string
lang string 语言
limit string 限制
offset string 偏移量

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_date_range","arguments":{"property":"SOME_STRING_VALUE","from":"SOME_STRING_VALUE","to":"SOME_STRING_VALUE","value":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool get_entity_by_id

通过ID获取实体

通过ID获取实体

参数

名称 类型 必填 描述
wikidata_id string 维基数据ID
lang string 语言

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_entity_by_id","arguments":{"wikidata_id":"SOME_STRING_VALUE","lang":"en"}}}'
tool get_entity_claims

获取实体声明

获取实体声明

参数

名称 类型 必填 描述
wikidata_id string 维基数据ID
lang string 语言
limit string 限制
offset string 偏移量

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_entity_claims","arguments":{"wikidata_id":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}'
tool get_properties

获取属性

获取属性

代码示例

curl -X POST \ 'https://mcp.pressmonitor.com/wikidata/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_properties","arguments":[]}}'