mcp-wikidata-sparql
Allows running SPARQL queries against the Wikidata Query Service, providing tools for querying entities, subclasses, properties, and geo-spatial data.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-wikidata-sparqlshow properties of Q42"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| Run a SPARQL query against the Wikidata Query Service. Returns JSON bindings by default. |
| Convenience: list all items that are an instance of a Wikidata class. |
| 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. |
| Convenience: all statements (property → value) about an entity. |
| 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
This server cannot be installed
Maintenance
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
- AlicenseAqualityFmaintenanceA server implementation for interacting with Wikidata API using the Model Context Protocol, providing tools for searching identifiers, extracting metadata, and executing SPARQL queries.Last updated548MIT
- AlicenseBqualityDmaintenanceProvides 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 updated54MIT
- Flicense-qualityDmaintenanceConnects 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 updated2
- Alicense-qualityCmaintenanceEnables programmatic queries against the OpenStreetMap database using the Overpass API.Last updated154MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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