Wikidata

Wikidata MCP Connector for Claude

A+

Access the world's largest open knowledge graph—query entities via SPARQL, perform vector searches, and manage structured data directly from your AI agent.

8 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect to Wikidata, the central storage for structured data of Wikimedia projects. This MCP server allows your AI agent to tap into millions of items, properties, and statements using both traditional SPARQL queries and modern vector-based semantic search.

What you can do

  • Entity Retrieval — Fetch full data and statements for any Wikidata Item (e.g., Q42) using the get_item and get_item_statements tools.
  • Advanced Querying — Execute complex SPARQL queries against the Wikidata Query Service (WDQS) with execute_sparql to find relationships and patterns across the entire graph.
  • Semantic Search — Use search_items_vector and search_properties_vector to find entities and properties based on meaning rather than just exact keywords.
  • Data Contribution — Update the knowledge graph by creating statements or setting descriptions with create_statement and set_item_description (requires OAuth).
  • Similarity Analysis — Compare text strings against specific entities to get semantic similarity scores using get_similarity_score.

How it works

  1. Subscribe to this server
  2. Provide your User Agent (required by Wikimedia policy)
  3. Optionally provide an OAuth 2.0 Access Token for write operations
  4. Start exploring the world's knowledge from your favorite AI client

Who is this for?

  • Researchers & Academics — instantly verify facts, dates, and relationships across history, science, and culture.
  • Data Scientists — extract structured datasets for analysis or training without leaving the chat interface.
  • Developers — find entity IDs and property schemas to integrate into applications or automate data enrichment.
knowledge-graphsparqlstructured-datasemantic-searchdata-retrievalopen-data

8 tools expose this connector's capabilities to your AI agent.

create_statement

Requires OAuth 2.0 Access Token. Create a new statement for an Item

execute_sparql

Use hint:Query hint:optimizer "None" if queries timeout. Execute a SPARQL query

get_item_statements

Retrieve statements for a Wikidata Item

get_item

g., Q42) via the Wikibase REST API. Retrieve a specific Wikidata Item

get_similarity_score

Compute similarity between text and an entity

search_items_vector

Hybrid vector/keyword search for Items

search_properties_vector

Hybrid vector/keyword search for Properties

set_item_description

Requires OAuth 2.0 Access Token. Set an Item description

See how to talk to your AI agent using Wikidata.

Search for Wikidata items related to 'artificial neural networks' using vector search.

I've performed a vector search for 'artificial neural networks'. The most relevant item is 'artificial neural network' (Q192713), described as a computational model inspired by biological neural networks. Other related items include 'deep learning' (Q197536) and 'machine learning' (Q11660).

Run a SPARQL query to find the 5 most populated cities in Brazil.

Executing the SPARQL query... The 5 most populated cities in Brazil are: 1. São Paulo (Q174), 2. Rio de Janeiro (Q8678), 3. Brasília (Q2844), 4. Salvador (Q36851), and 5. Fortaleza (Q43463).

Get all statements for the Wikidata item Q42.

I've retrieved the statements for Douglas Adams (Q42). Key statements include: instance of 'human' (P31), occupation 'writer' (P106), and notable work 'The Hitchhiker's Guide to the Galaxy' (P800).

You can use the `search_items_vector` tool. It performs a hybrid search using high-dimensional embeddings and keywords to find the most relevant entities based on your natural language description.

Related Connectors