Integrations
Provides access to the project repository for installation via git clone from GitHub.
Enables integration with LangChain through langchain-mcp-adapters, allowing AI agents to interact with Wikidata's knowledge graph through the Model Context Protocol.
Provides tools for interacting with Wikidata, including searching for entity and property identifiers, retrieving entity metadata (labels and descriptions), accessing entity properties, and executing SPARQL queries against the Wikidata knowledge base.
维基数据 MCP 服务器
使用模型上下文协议 (MCP) 实现 Wikidata API 的服务器端。该项目提供与 Wikidata 交互的工具,例如搜索标识符(实体和属性)、提取元数据(标签和描述)以及执行 sparql 查询。
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Wikidata MCP 服务器:
手动安装
如果尚未安装uv
,请安装。
然后,安装依赖项。
跑步
使用以下命令运行服务器:
如果您想使用简单的客户端代码(使用langchain-mcp-adapters
)进行测试,请使用以下命令运行客户端:
LLM 提取有效的实体和属性标识符,执行 sparql 查询,最后推荐一部由奉俊昊执导的电影。
Wikidata MCP 工具
服务器中实现了以下工具:
工具 | 描述 |
---|---|
search_entity(query: str) | 通过查询来搜索 Wikidata 实体 ID。 |
search_property(query: str) | 通过查询来搜索 Wikidata 属性 ID。 |
get_properties(entity_id: str) | 获取与给定 Wikidata 实体 ID 关联的属性。 |
execute_sparql(sparql_query: str) | 在 Wikidata 上执行 SPARQL 查询。 |
get_metadata(entity_id: str, language: str = "en") | 检索给定 Wikidata 实体 ID 的英文标签和描述。 |
执照
MIT 许可证
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
使用模型上下文协议与 Wikidata API 交互的服务器实现,提供搜索标识符、提取元数据和执行 SPARQL 查询的工具。
Related Resources
Related MCP Servers
- -securityAlicense-qualityEnables programmatic interaction with Wikimedia APIs, offering features like searching content, retrieving page information, and accessing historical events across multiple languages.Last updated -62PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server utilizing Claude AI for generating intelligent queries and offering documentation assistance based on API documentation analysis.Last updated -32TypeScript
- -securityAlicense-qualityA Model Context Protocol server that enables Large Language Models to seamlessly interact with ClickHouse databases, supporting resource listing, schema retrieval, and query execution.Last updated -1PythonMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables searching, reading, and editing wiki pages on Wizzypedia from MCP-enabled tools like Cursor or Claude Desktop.Last updated -6JavaScript