Skip to main content
Glama
pipeworx-io

mcp-wikidata-sparql

by pipeworx-io

@pipeworx/wikidata-sparql

Wikidata Query Service MCP — full SPARQL access to the entire Wikidata knowledge graph (~100M items, 1.5B statements). Complements the existing wikidata pack (which covers entity search + retrieval).

Part of Pipeworx — an MCP gateway connecting AI agents to 1394+ live data sources.

Tools

  • query(sparql, format?) — run a SPARQL query

  • instances_of(entity_id, limit?) — convenience: all instances of a class (e.g. Q5 = humans)

  • subclasses_of(entity_id, limit?) — convenience: subclass tree

  • properties_of(entity_id, limit?) — convenience: statements about an entity

  • entities_at(latitude, longitude, radius_km?, instance_of?, limit?) — geo-spatial query: items near a point

Related MCP server: MCP Wikidata Server

No auth

The public WDQS at https://query.wikidata.org/sparql is keyless. Fair-use: ≤30 queries / min, ≤60 sec timeout per query. The pack sets a meaningful User-Agent (required by WMF policy).

Tips

Wikidata is enormous — narrow your queries! Use LIMIT, instance of filters, and language tags. Bring schema knowledge from https://www.wikidata.org/wiki/Wikidata:List_of_properties.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "wikidata-sparql": {
      "url": "https://gateway.pipeworx.io/wikidata-sparql/mcp"
    }
  }
}

Or connect to the full Pipeworx gateway for access to all 1394+ data sources:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English:

ask_pipeworx({ question: "your question about Wikidata Sparql data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    F
    maintenance
    A server implementation for interacting with Wikidata API using the Model Context Protocol, providing tools for searching identifiers, extracting metadata, and executing SPARQL queries.
    5
    48
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Provides access to Wikidata for Large Language Models through the Model Context Protocol, offering tools for entity search, detailed retrieval, SPARQL queries, relation exploration, and property-based searches.
    5
    4
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Connects LLMs to Wikidata's structured knowledge base using a hybrid architecture that optimizes for both fast entity searches and complex relational queries. It provides tools for entity and property retrieval, metadata lookups, and direct SPARQL execution to ground AI responses in verified data.
    2

View all related MCP servers

Related MCP Connectors

  • Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.

  • Wikidata MCP — wraps Wikidata API (wikidata.org/w/api.php)

  • Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data.

View all MCP Connectors

Latest Blog Posts

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/pipeworx-io/mcp-wikidata-sparql'

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