Wikidata MCP

MCP endpoint is at /mcp.

Testing ground: open /docs to run tool endpoints interactively.

Tools

Recommended Prompt

User request: '[User Prompt]'.
Follow server instructions for all policy and safety constraints.

Follow this step-by-step workflow:
1. **Identify Candidate Items**
    - Search for concepts or entities and include their descriptions.
    - Collect a few top candidate QIDs and PIDs to examine.

2. **Inspect Entity Structure**
    - Retrieve entity statements for several representative QIDs.
    - Identify which PIDs represent the key relationship(s) you care about.
    - Look for patterns across multiple items (which properties repeat, how values are modeled).

3. **Refine Understanding with Statement Details**
    - When qualifiers, deprecated values, or references matter, retrieve
      statement values for a specific entity and property pair.
    - If the retrieved statements already answer the user's request, stop here and present the results.

4. **Write and Test SPARQL**
    - Construct and execute a SPARQL query using only QIDs/PIDs that were
      user-provided or discovered in prior tool outputs.
    - Inspect the returned rows for missing or incorrect values, unexpected types, or empty columns.
    - If results are not as expected, iteratively refine the SPARQL query
      and repeat until the output is satisfactory.