Skip to main content
Glama
pipeworx-io

mcp-wikidata-sparql

by pipeworx-io

mcp-wikidata-sparql

Wikidata SPARQL MCP — Wikidata Query Service

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

Tools

Tool

Description

query

Run a SPARQL query against the Wikidata Query Service. Returns JSON bindings by default.

instances_of

Convenience: list all items that are an instance of a Wikidata class.

subclasses_of

Return all subclasses of a Wikidata class via transitive P279 (subclass-of) traversal; takes a Wikidata entity id (e.g. Q11424) and returns labelled subclass items up to the specified limit.

properties_of

Convenience: all statements (property → value) about an entity.

entities_at

Geo-spatial query: items near a point. Use instance_of to filter by class.

Related MCP server: MCP Wikidata Server

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 1338+ 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
-
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.
    Last updated
    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.
    Last updated
    5
    4
    MIT
  • F
    license
    -
    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.
    Last updated
    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