mcp-wikidata

mcp-wikidata

15

The Wikidata MCP Server is a tool for interfacing with the Wikidata API using the Model Context Protocol, enabling operations like searching for identifiers and executing SPARQL queries. It provides a range of tools for retrieving and managing metadata related to Wikidata entities and properties.

Overview

A server implementation for Wikidata API using the Model Context Protocol (MCP). This project offers tools to interact with Wikidata, including searching identifiers, extracting metadata, and executing SPARQL queries. It includes features such as the ability to search for Wikidata entity IDs, property IDs, and execute SPARQL queries.

Installation

  • Install via Smithery: Use npx -y @smithery/cli to install.
  • Manual Installation: Requires uv and additional dependencies via git clone and uv sync.

Run

  • Start the server using uv run. Optional client tests available to demonstrate functionality.

Wikidata MCP Tools

  • search_entity for entity ID search.
  • search_property for property ID search.
  • get_properties for entity properties.
  • execute_sparql for running SPARQL queries.
  • get_metadata for retrieving label and description.