About Wikidata SPARQL
Wikidata SPARQL is an MCP server published by QuentinCody in the Developer Tools category: unofficial REMOTE MCP server for Wikidata's SPARQL endpoint, providing access to structured knowledge data, entity relationships, and semantic queries for research and data analysis. Conduid read 5 tools from its source: federated_sparql_query, fetch_results_page, get_entity_info, search_entities and sparql_query. No package is published for it, so it installs from a source checkout.
The repository has 3 stars and 0 forks, and its last commit was on 19 Jun 2026. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass License declared and Scoped permissions. Its topics include devtools.
Install
git clone https://github.com/QuentinCody/wikidata-sparql-mcp-serverTools (5)
federated_sparql_queryExecute a federated SPARQL query spanning the main and scholarly Wikidata graphs. Use internal subgraph federation: SERVICE wdsubgraph:wikidata_main { ... } or SERVICE wdsubgraph:scholarly_articles { ... }. If a federated query is slow, add `hint:Query hint:optimizer "None".` as the first line inside the WHERE clause.fetch_results_pageFetch a page of a previously staged SPARQL result. When sparql_query / federated_sparql_query return a resultId (because the result was large), pass it here to page through the rows.get_entity_infoGet a compact, readable summary of a Wikidata entity by ID: label, description, aliases, and its statements with property/value IDs resolved to labels. Far smaller than the raw entity dump. Use this (not SPARQL) when you already know the Q-id or P-id.search_entitiesSearch Wikidata for items or PROPERTIES by name/label. Returns a compact list of matching IDs with labels and descriptions — much faster than SPARQL for resolving a name to an ID. To discover a property's P-number (e.g. 'occupation' -> P106) for use in SPARQL, set type='property'.sparql_queryExecute a SPARQL query against Wikidata and get back a compact results table (URIs shortened to wd:/wdt: form). For finding an entity or property by name, prefer search_entities. Tip: add SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } and select ?xLabel to get readable labels. Always add a LIMIT to SELECT queries. Large results are staged — use fetch_results_page to read them.Security checks
Static checks derived from the repository a month ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 749 words.
- !License declaredNo license file. Legally you have no right to use it in a product.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 5 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
The repository's README runs to about 749 words, fetched a month ago. The original in the repository is authoritative.
Read full README