entities_at
Pack: wikidata-sparql · Endpoint: https://gateway.pipeworx.io/wikidata-sparql/mcp
Geo-spatial query: items near a point. Use instance_of to filter by class.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | |
longitude | number | yes | |
radius_km | number | no | Search radius in km (default 1) |
instance_of | string | no | Class id filter (e.g. “Q33506” = museum) |
lang | string | no | |
limit | number | no |
Example call
Arguments
{
"latitude": 48.8566,
"longitude": 2.3522
}
curl
curl -X POST https://gateway.pipeworx.io/wikidata-sparql/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"entities_at","arguments":{"latitude":48.8566,"longitude":2.3522}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('entities_at', {
"latitude": 48.8566,
"longitude": 2.3522
});
More examples
{
"latitude": 51.5074,
"longitude": -0.1278,
"radius_km": 5,
"instance_of": "Q33506",
"lang": "en",
"limit": 25
}
Response shape
| Field | Type | Description |
|---|---|---|
head | object | |
results | object |
Full JSON Schema
{
"type": "object",
"properties": {
"head": {
"type": "object",
"properties": {
"vars": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"results": {
"type": "object",
"properties": {
"bindings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"item": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string",
"description": "Item URI"
}
}
},
"itemLabel": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string",
"description": "Item label"
}
}
},
"coord": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string",
"description": "WKT coordinate"
}
}
},
"distance": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string",
"description": "Distance in km"
}
}
}
}
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"wikidata-sparql": {
"url": "https://gateway.pipeworx.io/wikidata-sparql/mcp"
}
}
}
See Getting Started for client-specific install steps.