current_officeholder

Pack: wikidata-sparql · Endpoint: https://gateway.pipeworx.io/wikidata-sparql/mcp

Who currently holds a political office / leadership position for a place — answers “who is the current mayor of London”, “who is the prime minister of Japan”, “president of France”, “governor of California”, “who leads <city/country>”. Give the place or organization name; returns the current head of government (mayor / premier / prime minister) and head of state (president / monarch) with their name and start date, from Wikidata. Coverage is best for countries and major cities; small municipalities may not be recorded.

Parameters

NameTypeRequiredDescription
ofstringyesThe place or organization, e.g. “London”, “Japan”, “California”, “São Paulo”. Resolved to a Wikidata entity automatically.
langstringnoLanguage for names (default en; use e.g. “pt” for Portuguese place/person names).

Example call

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":"current_officeholder","arguments":{}}}'

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.

Regenerated from source · build July 22, 2026