Reference
Data source: Wikidata (Wikimedia)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/wikidata/
claude_desktop_config.json
{
"mcpServers": {
"gnist-wikidata": {
"url": "https://context.gnist.ai/mcp/wikidata/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/wikidata/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_wikidata_entity", "arguments": {"label": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/wikidata/
5 endpoints available:
GET /rest/wikidata/search_wikidata_entityGET /rest/wikidata/get_wikidata_entityGET /rest/wikidata/get_wikidata_linked_idsGET /rest/wikidata/wikidata_sparqlGET /rest/wikidata/report_feedback
Shell
curl "https://context.gnist.ai/rest/wikidata/search_wikidata_entity?label=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/wikidata/search_wikidata_entity",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"label": "example"
},
)
print(resp.json())
Command Line
Command
gc wikidata
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
search_wikidata_entitySearch Wikidata for entities by name or alias.
| Parameter | Type | Required | Description |
|---|---|---|---|
label | string | required | Name or phrase to search for (e.g. "Barack Obama", "Apple Inc"). |
language | string | optional | BCP-47 language code for labels and descriptions. Default "en". (default: "en") |
limit | integer | optional | Maximum results to return (1–20, default 5). (default: 5) |
get_wikidata_entityFetch a Wikidata entity with its statements, normalized to human-readable form.
| Parameter | Type | Required | Description |
|---|---|---|---|
qid | string | required | Wikidata item ID (e.g. "Q76" for Barack Obama, "Q312" for Apple Inc). |
get_wikidata_linked_idsReturn all external database identifiers for a Wikidata entity.
| Parameter | Type | Required | Description |
|---|---|---|---|
qid | string | required | Wikidata item ID (e.g. "Q76" for Barack Obama). |
wikidata_sparqlExecute a SPARQL query against the Wikidata Query Service.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | SPARQL SELECT query string. Must be valid SPARQL 1.1. |
timeout_s | integer | optional | Query timeout in seconds (default 30, max 55). (default: 30) |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |