原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Wikidata MCP Server

作者:cyanheads版本 0.3.0i★ –i电脑或云端
注册名称io.github.cyanheads/wikidata-mcp-server

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:3 项中通过 3 项
  • 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
  • 可以做 7 件事(工具) wikidata_search_entities, wikidata_get_entity, wikidata_get_labels, wikidata_get_statements …
  • 需要你自己填写: WIKIDATA_USER_AGENT, WIKIDATA_SPARQL_TIMEOUT_MS, WIKIDATA_REST_TIMEOUT_MS, MCP_LOG_LEVEL

你需要

  • 在云端运行无需安装任何东西,通过互联网连接
  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://wikidata.caseyjhand.com/mcp

或者在你的电脑上运行

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "wikidata": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/wikidata-mcp-server"
      ],
      "env": {
        "WIKIDATA_USER_AGENT": "your-value",
        "WIKIDATA_SPARQL_TIMEOUT_MS": "your-value",
        "WIKIDATA_REST_TIMEOUT_MS": "your-value",
        "MCP_LOG_LEVEL": "your-value"
      }
    }
  }
}

在终端中运行这条命令

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

或者在你的电脑上运行

claude mcp add wikidata --env WIKIDATA_USER_AGENT=your-value --env WIKIDATA_SPARQL_TIMEOUT_MS=your-value --env WIKIDATA_REST_TIMEOUT_MS=your-value --env MCP_LOG_LEVEL=your-value -- npx -y @cyanheads/wikidata-mcp-server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "wikidata": {
      "url": "https://wikidata.caseyjhand.com/mcp"
    }
  }
}

或者在你的电脑上运行

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "wikidata": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/wikidata-mcp-server"
      ],
      "env": {
        "WIKIDATA_USER_AGENT": "your-value",
        "WIKIDATA_SPARQL_TIMEOUT_MS": "your-value",
        "WIKIDATA_REST_TIMEOUT_MS": "your-value",
        "MCP_LOG_LEVEL": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

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

或者在你的电脑上运行

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "wikidata": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/wikidata-mcp-server"
      ],
      "env": {
        "WIKIDATA_USER_AGENT": "your-value",
        "WIKIDATA_SPARQL_TIMEOUT_MS": "your-value",
        "WIKIDATA_REST_TIMEOUT_MS": "your-value",
        "MCP_LOG_LEVEL": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://wikidata.caseyjhand.com/mcp

菜单名称可能因套餐和版本不同而略有差异。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • WIKIDATA_USER_AGENT env
    User-Agent string for Wikimedia requests. Wikimedia policy requires a descriptive value.
  • WIKIDATA_SPARQL_TIMEOUT_MS env
    Max time to wait for a SPARQL response in milliseconds.
  • WIKIDATA_REST_TIMEOUT_MS env
    Max time to wait for REST API responses in milliseconds.
  • MCP_LOG_LEVEL env
    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

工具名称和描述与服务器在 2026年11月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 the hit was on a label or alias. Use type="item" for real-world concepts (people, places, works) and type="property" to find predicate P-ID

  • 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 for labels alone costs a fraction of the whole entity, so name the fields you need. Omit fields for all data; a well-connected item is large e

  • 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 per call (batched automatically). Designed for the common agent pattern: receive QIDs from a SPARQL query, then humanize them.

  • wikidata_get_statements

    Fetch property claims for a Wikidata entity with qualifier and reference detail. Item QIDs and quantity units — in values, qualifiers, and references — are resolved to human-readable labels by default. Use the properties parameter to fetch only specific P-IDs — omitting it return

  • 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 title and URL. Major items can have 300+ sitelinks across languages. Use sites to filter to specific language editions, or wikis_only to ret

  • wikidata_sparql_query

    Execute a SPARQL SELECT query against the Wikidata Query Service. Full graph power: multi-hop traversals, aggregations, subqueries, OPTIONAL, FILTER, UNION, BIND. Standard Wikidata prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:, rdfs:, schema:) are auto-injected. The wikibase:

  • 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= on success, match=null when not found, and match=null with multipleMatches populated when a Wikidata data integrity issue causes more than one entity to claim th

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 cyanheads 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • ✓ 通过

    端点有响应

    在 270 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 7 个工具描述,未发现针对 AI 的隐藏指令

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 5686 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5686 个服务器的 78% 更新
  • 基础检查结果等于或优于此分类中其他 5686 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Wikidata MCP Server 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.3.0)于11天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

Up-to-date docs for AI agents

作者:upstash广泛使用↓ 97.3万/周★ 6.4万前天更新

电脑或云端

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

作者:DeusData广泛使用↓ 1.8万/周★ 4.8万22天前更新

在你的电脑上运行

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

作者:exa-labs正在增长★ 52132个月前更新

在云端运行✓ exa.ai

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@cyanheads/wikidata-mcp-server Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers via MCP. STDIO or Streamable HTTP. 7 Tools • 1 Resource • 1 Skill

Public Hosted Server: https://wikidata.caseyjhand.com/mcp


Overview

Wikidata's knowledge graph. Search and fetch entities, traverse the graph with SPARQL, and resolve external identifiers like DOI, PMID, ORCID, OpenAlex, and IMDb to their Wikidata items. No API key required.

Tools
ToolDescription
wikidata_search_entitiesSearch for items or properties by text query, returning QIDs/PIDs with labels, descriptions, and match metadata
wikidata_get_entityFetch a full entity by QID or PID with optional field and language filtering
wikidata_get_labelsBatch-resolve up to 50 QIDs or PIDs to human-readable labels and descriptions
wikidata_get_statementsFetch property claims for an entity with qualifier detail and QID label resolution
wikidata_get_sitelinksFetch Wikipedia and Wikimedia project article URLs for a Wikidata item
wikidata_sparql_queryExecute a SPARQL SELECT query against the Wikidata Query Service
wikidata_resolve_external_idLook up a Wikidata entity by an external identifier (DOI, PubMed ID, ORCID, OpenAlex ID, etc.)
Resources
ResourceDescription
wikidata://entity/{id}Compact markdown summary of a Wikidata entity — labels, English description, instance-of, Wikipedia link, image, and statement count

All resource data is also reachable via tools.

The published wikidata-guide covers entity disambiguation, qualified statements, external identifiers, and SPARQL. It is included in plugin installs and served over MCP as skill://wikidata-guide/SKILL.md.

Capability reference

wikidata_search_entities tool
  • Searches labels, aliases, and descriptions; type="item" for people, places, and works, type="property" for P-IDs
  • Takes a Wikidata language code (en, de, pt-br; case-insensitive); offset pagination, up to 50 results per call
  • Each hit includes match metadata saying whether it matched a label or alias

wikidata_get_entity tool
  • Q-IDs (e.g. Q76) fetch items and P-IDs (e.g. P31) fetch properties; fields selects labels, descriptions, aliases, statements, or sitelinks, and narrows the upstream fetch (Q76 is 344,114 bytes whole, 6,703 for labels alone)
  • languages filters multilingual maps to the given language codes
  • An entity too large to inline returns an outline of field categories with byte sizes; its retrieval_notice names a fields set that fits and points oversized statements or sitelinks to the tool that can narrow them

wikidata_get_labels tool
  • Up to 50 IDs per call via the MediaWiki wbgetentities API, with one or more language codes per request
  • Reports a found count and notFound IDs for partial results
  • Meant to follow a SPARQL query: run it, then humanize the QIDs

wikidata_get_statements tool
  • properties limits the fetch to specific P-IDs (omit for all); item QIDs and quantity units in values, qualifiers, and references are resolved to labels unless resolve_labels=false
  • References stay grouped by source; unknown or absent values come back as somevalue / novalue
  • A statement set too large to inline returns an outline of P-IDs with byte sizes, largest first (unfiltered, Q30 carries 467 properties across 1,717 statements); re-call with properties whose sizes sum to 24,000 or less, as the retrieval_notice suggests

wikidata_get_sitelinks tool
  • Maps site codes (e.g. enwiki) to article titles and URLs; sites filters to specific codes
  • wikis_only=true keeps only Wikipedia links (drops Wiktionary, Wikiquote, Wikisource, etc.)
  • Q-IDs only; P-IDs are not supported

wikidata_sparql_query tool
  • Runs SELECT queries against the Wikidata Query Service (Blazegraph); ASK, CONSTRUCT, DESCRIBE, updates, and plain search text are rejected before the request is sent
  • Standard prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:) and the wikibase:label SERVICE (when the query uses a ? Label, ? Description, or ? AltLabel variable) are added automatically; language takes one code or a fallback list like fr,en
  • Results are SPARQL 1.1 JSON bindings, capped at 64,000 bytes per response and cut between whole rows; a larger result returns its leading rows with returnedCount, totalCount, and a notice to page with ORDER BY plus LIMIT/OFFSET or to aggregate
  • Client timeout is 1–55s (server hard limit 60s); rate limit is 60 requests/min and 5 concurrent requests per IP

wikidata_resolve_external_id tool
  • Resolves DOI (P356), PMID (P698), ORCID (P496), OpenAlex ID (P10283), IMDb ID (P345), and other external IDs to a QID; whitespace and resolver URL prefixes are stripped, and DOIs, PMIDs, and ORCIDs are normalized
  • The property must have data type external-id; item-valued or media properties (e.g. P31, P18) are rejected
  • Returns match=null when not found (the Query Service lags the live wiki, so null is not proof of absence) and multipleMatches when more than one entity claims the same ID; the label uses the requested language, falling back to mul

wikidata://entity/{id} resource
  • Compact markdown summary — labels (all languages), English description, instance-of (P31), enwiki Wikipedia link, image (P18), and statement count
  • Returned as text/markdown; for full entity data, use wikidata_get_entity
  • id is a Q-ID or P-ID, the same identifiers the tools take

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

Wikidata-specific:

  • Wikidata REST API v1 for entity and statement fetches — no SPARQL overhead for lookup operations
  • MediaWiki wbgetentities API for efficient batch label resolution
  • Wikidata Query Service (Blazegraph) for SPARQL with auto-injected prefix headers and label SERVICE
  • Configurable User-Agent per Wikimedia policy (WIKIDATA_USER_AGENT)
  • Separate timeout configuration for REST and SPARQL endpoints (WIKIDATA_REST_TIMEOUT_MS, WIKIDATA_SPARQL_TIMEOUT_MS)

Agent-friendly output:

  • All tools echo relevant input parameters in the response for traceability
  • wikidata_get_labels designed to follow SPARQL result sets — run the query, then humanize in one call
  • wikidata_resolve_external_id returns multipleMatches instead of a false null when a Wikidata data-integrity issue puts duplicate claims on one external ID
  • Oversized entities and statement sets return a kind: "outline" payload — field/property sizes plus a retrieval_notice naming the exact re-call — instead of a truncated or oversized response

Getting started

Connect to the hosted instance, no install:

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

Or run it locally:

claude mcp add wikidata-mcp-server -- npx -y @cyanheads/wikidata-mcp-server

For other clients, add this to the MCP config file:

{

"mcpServers": { "wikidata-mcp-server": { "command": "npx", "args": ["-y", "@cyanheads/wikidata-mcp-server"] } } }

For Docker or a source build, see Running the server.

Configuration

All configuration is validated at startup via Zod schemas. Key environment variables:

VariableDescriptionDefault
MCP_TRANSPORT_TYPETransport: stdio or httpstdio
MCP_HTTP_PORTHTTP server port3010
MCP_HTTP_ENDPOINT_PATHHTTP endpoint path where the MCP server is mounted/mcp
MCP_PUBLIC_URLPublic origin override for TLS-terminating reverse-proxy deploymentsnone
MCP_AUTH_MODEAuthentication: none, jwt, or oauthnone
MCP_SESSION_MODEHTTP session mode: stateful, stateless, or autostateless
MCP_LOG_LEVELLog level (debug, info, notice, warning, error)info
MCP_GC_PRESSURE_INTERVAL_MSOpt-in forced-GC interval in ms (Bun only)0 (disabled)
LOGS_DIRDirectory for log files (Node.js only) /logs
STORAGE_PROVIDER_TYPEStorage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1in-memory
WIKIDATA_USER_AGENTUser-Agent string for Wikimedia requests (policy requires a descriptive value)wikidata-mcp-server/0.1 (https://github.com/cyanheads/wikidata-mcp-server)
WIKIDATA_SPARQL_TIMEOUT_MSMax wait for a SPARQL response in ms55000
WIKIDATA_REST_TIMEOUT_MSMax wait for REST API responses in ms10000
OTEL_ENABLEDEnable OpenTelemetryfalse

See .env.example for the full list of optional overrides.

Running the server

Local development

Requires Bun v1.4.0 or higher (or Node.js ≥24.0.0).

git clone https://github.com/cyanheads/wikidata-mcp-server.git

cd wikidata-mcp-server bun install cp .env.example .env

  • Build and run the production version:
  # One-time build

bun run rebuild

Run the built server

bun run start:http

or

bun run start:stdio

  • Run checks and tests:
  bun run devcheck  # Lints, formats, type-checks, and more

bun run test # Runs the test suite

Docker
docker run --rm -p 3010:3010 ghcr.io/cyanheads/wikidata-mcp-server:latest

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx