# Wikidata MCP Server MCP server

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

## Facts

- Endpoint: https://wikidata.caseyjhand.com/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: A (100/100, scanned 2026-09-22) · report https://gateturbo.com/report/1d60e24c-1866-46c5-80fd-da3549b545a1
- Tools: 7
- Category: Search & web · source: registry
- Repository: https://github.com/cyanheads/wikidata-mcp-server
- Last probed: 2026-09-21 · first listed: 2026-09-20
- Directory page: https://gateturbo.com/mcp/wikidata-mcp-server · this document: https://gateturbo.com/mcp/wikidata-mcp-server.md · JSON: https://gateturbo.com/api/directory/servers/wikidata-mcp-server

## Tools (7)

- `wikidata_search_entities`: Search Wikidata for items or properties by text query. Returns QIDs or PIDs with labels, descriptions, and match metadata indicating whether
- `wikidata_get_entity`: Fetch a Wikidata entity (item or property) by QID or PID. The fields parameter narrows the upstream fetch, not just the response — asking fo
- `wikidata_get_labels`: Resolve one or more QIDs or PIDs to their human-readable labels and descriptions. Lightweight — returns no claim data. Supports up to 50 IDs
- `wikidata_get_statements`: Fetch property claims for a Wikidata entity with qualifier and reference detail. Value QIDs are resolved to human-readable labels by default
- `wikidata_get_sitelinks`: Fetch Wikipedia and Wikimedia project article URLs for a Wikidata item. A sitelink maps a site code (e.g., "enwiki") to a Wikipedia article 
- `wikidata_sparql_query`: Execute a SPARQL SELECT query against the Wikidata Query Service. Full graph power: multi-hop traversals, aggregations, subqueries, OPTIONAL
- `wikidata_resolve_external_id`: Look up a Wikidata entity by an external identifier such as a DOI, PubMed ID, ORCID iD, or OpenAlex ID. Returns match=<entity> on success, m

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect Wikidata MCP Server to your gate (https://gateturbo.com/login?next=/discovery?connect=wikidata-mcp-server).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/wikidata-mcp-server/claude · Claude Desktop → https://gateturbo.com/mcp/wikidata-mcp-server/claude-desktop · ChatGPT → https://gateturbo.com/mcp/wikidata-mcp-server/chatgpt · Codex → https://gateturbo.com/mcp/wikidata-mcp-server/codex · Cursor → https://gateturbo.com/mcp/wikidata-mcp-server/cursor · Windsurf → https://gateturbo.com/mcp/wikidata-mcp-server/windsurf · VS Code → https://gateturbo.com/mcp/wikidata-mcp-server/vscode · Gemini CLI → https://gateturbo.com/mcp/wikidata-mcp-server/gemini-cli · OpenClaw → https://gateturbo.com/mcp/wikidata-mcp-server/openclaw · n8n → https://gateturbo.com/mcp/wikidata-mcp-server/n8n · A script or server → https://gateturbo.com/mcp/wikidata-mcp-server/script

### Direct: Claude Code

Add Wikidata MCP Server to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

```bash
claude mcp add --transport http wikidata-mcp-server https://wikidata.caseyjhand.com/mcp
```

### Direct: Cursor

Add Wikidata MCP Server to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

```json
{
  "mcpServers": {
    "wikidata-mcp-server": {
      "url": "https://wikidata.caseyjhand.com/mcp"
    }
  }
}
```

### Direct: VS Code

Add Wikidata MCP Server to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

```json
{
  "servers": {
    "wikidata-mcp-server": {
      "type": "http",
      "url": "https://wikidata.caseyjhand.com/mcp"
    }
  }
}
```

### Direct: Codex

Add Wikidata MCP Server to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.wikidata_mcp_server]
url = "https://wikidata.caseyjhand.com/mcp"
```

### Direct: Claude

Add Wikidata MCP Server as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "Wikidata MCP Server" and paste the URL below.
3. Save; the tools appear in new chats.

```
https://wikidata.caseyjhand.com/mcp
```

### Direct: ChatGPT

Add Wikidata MCP Server as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "Wikidata MCP Server" with the URL below.
3. Set authentication to none.

```
https://wikidata.caseyjhand.com/mcp
```

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
