Skip to main content
Glama

MCP Wikidata Server

by joelgombin

get_relations

Retrieve incoming, outgoing, or all relations of a Wikidata entity, with options to filter by specific properties and set a result limit.

Instructions

Get relations of a Wikidata entity

Input Schema

NameRequiredDescriptionDefault
entity_idYesWikidata entity ID
limitNoMaximum number of relations
property_filterNoFilter by specific properties
relation_typeNoType of relations to retrieveoutgoing

Input Schema (JSON Schema)

{ "properties": { "entity_id": { "description": "Wikidata entity ID", "type": "string" }, "limit": { "default": 20, "description": "Maximum number of relations", "maximum": 100, "type": "integer" }, "property_filter": { "description": "Filter by specific properties", "items": { "type": "string" }, "type": "array" }, "relation_type": { "default": "outgoing", "description": "Type of relations to retrieve", "enum": [ "incoming", "outgoing", "all" ], "type": "string" } }, "required": [ "entity_id" ], "type": "object" }
Install Server

Other Tools from MCP Wikidata Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/joelgombin/mcp-wikidata'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server