Skip to content
MCP server

Wikidata MCP Server

Search and fetch Wikidata entities, execute SPARQL queries, and resolve external…

Install
Pricing
Open source
Runs
Locally or Remotely
Version
0.4.0
Listing updated
5 days ago

About Wikidata MCP Server

Wikidata MCP Server is an open-source MCP server. It can run locally on your machine or as a hosted remote server.

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

Install

Run in a terminal

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

Add to Settings → Connectors → Add custom connector

https://wikidata.caseyjhand.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "wikidata-mcp-server": {
      "url": "https://wikidata.caseyjhand.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "wikidata-mcp-server": {
      "serverUrl": "https://wikidata.caseyjhand.com/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

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

Configuration

  • WIKIDATA_USER_AGENTUser-Agent string for Wikimedia requests. Wikimedia policy requires a descriptive value.
  • WIKIDATA_SPARQL_TIMEOUT_MSMax time to wait for a SPARQL response in milliseconds.
  • WIKIDATA_REST_TIMEOUT_MSMax time to wait for REST API responses in milliseconds.
  • WIKIDATA_CLAMP_LIMITSServe a count above its per-call cap at the cap, with a notice; false rejects it instead.
  • MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
  • MCP_TRANSPORT_TYPESelects the HTTP transport.
  • MCP_HTTP_HOSTThe hostname for the HTTP server.
  • MCP_HTTP_PORTThe port to run the HTTP server on.
  • MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.
  • MCP_AUTH_MODEAuthentication mode to use: 'none', 'jwt', or 'oauth'.
  • WIKIDATA_USER_AGENTUser-Agent string for Wikimedia requests. Wikimedia policy requires a descriptive value.
  • WIKIDATA_SPARQL_TIMEOUT_MSMax time to wait for a SPARQL response in milliseconds.
  • WIKIDATA_REST_TIMEOUT_MSMax time to wait for REST API responses in milliseconds.
  • WIKIDATA_CLAMP_LIMITSServe a count above its per-call cap at the cap, with a notice; false rejects it instead.
  • MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Pricing

Open source

Wikidata MCP Server FAQ

Is Wikidata MCP Server free?

Yes. Wikidata MCP Server is open source, so you can use and self-host it for free.

How do I add Wikidata MCP Server to Claude Code?

Run this command in your terminal: claude mcp add --transport http wikidata-mcp-server https://wikidata.caseyjhand.com/mcp