@cyanheads/wikidata-mcp-server 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +1 -1
- package/Dockerfile +1 -1
- package/README.md +7 -1
- package/package.json +19 -28
- package/server.json +9 -3
- package/changelog/0.1.x/0.1.0.md +0 -20
- package/changelog/0.1.x/0.1.1.md +0 -20
- package/changelog/0.1.x/0.1.2.md +0 -20
- package/changelog/0.1.x/0.1.3.md +0 -11
- package/changelog/template.md +0 -119
package/CLAUDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** @cyanheads/wikidata-mcp-server
|
|
4
|
-
**Version:** 0.1.
|
|
4
|
+
**Version:** 0.1.5
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.7`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
|
package/Dockerfile
CHANGED
|
@@ -41,7 +41,7 @@ ENV NODE_ENV=production
|
|
|
41
41
|
|
|
42
42
|
# OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
|
|
43
43
|
LABEL org.opencontainers.image.title="@cyanheads/wikidata-mcp-server"
|
|
44
|
-
LABEL org.opencontainers.image.description="Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers."
|
|
44
|
+
LABEL org.opencontainers.image.description="Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers via MCP. STDIO or Streamable HTTP."
|
|
45
45
|
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|
46
46
|
LABEL org.opencontainers.image.source="https://github.com/cyanheads/wikidata-mcp-server"
|
|
47
47
|
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/wikidata-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/wikidata-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
|
+
<div align="center">
|
|
23
|
+
|
|
24
|
+
**Public Hosted Server:** [https://wikidata.caseyjhand.com/mcp](https://wikidata.caseyjhand.com/mcp)
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
|
|
22
28
|
---
|
|
23
29
|
|
|
24
30
|
## Tools
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/wikidata-mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"mcpName": "io.github.cyanheads/wikidata-mcp-server",
|
|
5
5
|
"description": "Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers via MCP. STDIO or Streamable HTTP.",
|
|
6
6
|
"type": "module",
|
|
@@ -9,34 +9,24 @@
|
|
|
9
9
|
"bin": {
|
|
10
10
|
"wikidata-mcp-server": "dist/index.js"
|
|
11
11
|
},
|
|
12
|
-
"files": [
|
|
13
|
-
"changelog/",
|
|
14
|
-
"dist/",
|
|
15
|
-
"README.md",
|
|
16
|
-
"LICENSE",
|
|
17
|
-
"CLAUDE.md",
|
|
18
|
-
"AGENTS.md",
|
|
19
|
-
"Dockerfile",
|
|
20
|
-
"server.json"
|
|
21
|
-
],
|
|
12
|
+
"files": ["dist/", "README.md", "LICENSE", "CLAUDE.md", "Dockerfile", "server.json"],
|
|
22
13
|
"scripts": {
|
|
23
|
-
"build": "
|
|
24
|
-
"rebuild": "
|
|
25
|
-
"clean": "
|
|
26
|
-
"devcheck": "
|
|
14
|
+
"build": "bun run scripts/build.ts",
|
|
15
|
+
"rebuild": "bun run scripts/clean.ts && bun run build",
|
|
16
|
+
"clean": "bun run scripts/clean.ts",
|
|
17
|
+
"devcheck": "bun run scripts/devcheck.ts",
|
|
27
18
|
"audit:refresh": "rm -f bun.lock && bun install && bun audit",
|
|
28
|
-
"tree": "
|
|
29
|
-
"list-skills": "
|
|
30
|
-
"format": "biome check --write --unsafe
|
|
31
|
-
"lint:mcp": "
|
|
32
|
-
"lint:packaging": "
|
|
33
|
-
"bundle": "
|
|
34
|
-
"changelog:build": "
|
|
35
|
-
"changelog:check": "
|
|
36
|
-
"test": "vitest run",
|
|
37
|
-
"start": "
|
|
38
|
-
"start:
|
|
39
|
-
"start:http": "MCP_TRANSPORT_TYPE=http node dist/index.js",
|
|
19
|
+
"tree": "bun run scripts/tree.ts",
|
|
20
|
+
"list-skills": "bun run scripts/list-skills.ts",
|
|
21
|
+
"format": "biome check --write --unsafe",
|
|
22
|
+
"lint:mcp": "bun run scripts/lint-mcp.ts",
|
|
23
|
+
"lint:packaging": "bun run scripts/lint-packaging.ts",
|
|
24
|
+
"bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/wikidata-mcp-server.mcpb",
|
|
25
|
+
"changelog:build": "bun run scripts/build-changelog.ts",
|
|
26
|
+
"changelog:check": "bun run scripts/build-changelog.ts --check",
|
|
27
|
+
"test": "bunx vitest run",
|
|
28
|
+
"start:stdio": "MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js",
|
|
29
|
+
"start:http": "MCP_TRANSPORT_TYPE=http bun ./dist/index.js",
|
|
40
30
|
"publish-mcp": "mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish"
|
|
41
31
|
},
|
|
42
32
|
"keywords": [
|
|
@@ -47,6 +37,7 @@
|
|
|
47
37
|
"bun",
|
|
48
38
|
"stdio",
|
|
49
39
|
"streamable-http",
|
|
40
|
+
"ai-agent",
|
|
50
41
|
"wikidata",
|
|
51
42
|
"sparql",
|
|
52
43
|
"knowledge-graph",
|
|
@@ -75,7 +66,7 @@
|
|
|
75
66
|
"license": "Apache-2.0",
|
|
76
67
|
"packageManager": "bun@1.3.2",
|
|
77
68
|
"engines": {
|
|
78
|
-
"bun": ">=1.3.
|
|
69
|
+
"bun": ">=1.3.2",
|
|
79
70
|
"node": ">=24.0.0"
|
|
80
71
|
},
|
|
81
72
|
"publishConfig": {
|
package/server.json
CHANGED
|
@@ -6,14 +6,20 @@
|
|
|
6
6
|
"url": "https://github.com/cyanheads/wikidata-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"remotes": [
|
|
10
|
+
{
|
|
11
|
+
"type": "streamable-http",
|
|
12
|
+
"url": "https://wikidata.caseyjhand.com/mcp"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"version": "0.1.5",
|
|
10
16
|
"packages": [
|
|
11
17
|
{
|
|
12
18
|
"registryType": "npm",
|
|
13
19
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
14
20
|
"identifier": "@cyanheads/wikidata-mcp-server",
|
|
15
21
|
"runtimeHint": "bun",
|
|
16
|
-
"version": "0.1.
|
|
22
|
+
"version": "0.1.5",
|
|
17
23
|
"packageArguments": [
|
|
18
24
|
{
|
|
19
25
|
"type": "positional",
|
|
@@ -63,7 +69,7 @@
|
|
|
63
69
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
64
70
|
"identifier": "@cyanheads/wikidata-mcp-server",
|
|
65
71
|
"runtimeHint": "bun",
|
|
66
|
-
"version": "0.1.
|
|
72
|
+
"version": "0.1.5",
|
|
67
73
|
"packageArguments": [
|
|
68
74
|
{
|
|
69
75
|
"type": "positional",
|
package/changelog/0.1.x/0.1.0.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
summary: "Initial release — 7 tools covering entity search, fetch, statements, labels, sitelinks, SPARQL, and external ID resolution"
|
|
3
|
-
breaking: false
|
|
4
|
-
security: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# 0.1.0 — 2026-05-23
|
|
8
|
-
|
|
9
|
-
## Added
|
|
10
|
-
|
|
11
|
-
- `wikidata_search_entities` — search items or properties by text query with pagination and language support
|
|
12
|
-
- `wikidata_get_entity` — fetch a full entity (item or property) by QID or PID with field and language filtering
|
|
13
|
-
- `wikidata_get_statements` — fetch normalized property statements with qualifier and reference detail; resolves wikibase-item value QIDs to labels by default
|
|
14
|
-
- `wikidata_get_labels` — batch-resolve up to 50 QIDs/PIDs to human-readable labels and descriptions via wbgetentities
|
|
15
|
-
- `wikidata_get_sitelinks` — fetch Wikipedia and Wikimedia sitelinks for a Wikidata item with optional site filtering and wikis-only mode
|
|
16
|
-
- `wikidata_sparql_query` — execute SPARQL SELECT queries against the Wikidata Query Service; auto-injects standard prefixes and the wikibase:label SERVICE
|
|
17
|
-
- `wikidata_resolve_external_id` — look up a Wikidata entity by DOI (P356), PubMed ID (P698), ORCID (P496), OpenAlex ID (P10283), or any external identifier property; normalizes DOIs, PMIDs, and ORCIDs automatically
|
|
18
|
-
- `wikidata://entity/{id}` resource — compact markdown entity summary by QID or PID
|
|
19
|
-
- `WikidataRestService` — client for the Wikidata REST API v1 and MediaWiki wbgetentities API with retry, timeout, and rate-limit handling
|
|
20
|
-
- `WikidataSparqlService` — client for the Wikidata SPARQL endpoint with query preparation, prefix injection, and label SERVICE injection
|
package/changelog/0.1.x/0.1.1.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
summary: "First real release — Wikidata knowledge graph MCP server with 7 tools for entity search/fetch, SPARQL queries, batch label resolution, and external ID lookup (DOI, PMID, ORCID, OpenAlex, IMDb)"
|
|
3
|
-
breaking: false
|
|
4
|
-
security: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# 0.1.1 — 2026-05-23
|
|
8
|
-
|
|
9
|
-
## Added
|
|
10
|
-
|
|
11
|
-
- `wikidata_search_entities` — search items or properties by text query with pagination and language support
|
|
12
|
-
- `wikidata_get_entity` — fetch a full entity by QID or PID with field and language filtering
|
|
13
|
-
- `wikidata_get_statements` — fetch normalized property statements with qualifier and reference detail; resolves wikibase-item value QIDs to labels by default
|
|
14
|
-
- `wikidata_get_labels` — batch-resolve up to 50 QIDs/PIDs to labels and descriptions via `wbgetentities`
|
|
15
|
-
- `wikidata_get_sitelinks` — fetch Wikipedia and Wikimedia sitelinks with optional site filtering and wikis-only mode
|
|
16
|
-
- `wikidata_sparql_query` — execute SPARQL SELECT queries against the Wikidata Query Service; auto-injects standard prefixes and the `wikibase:label` SERVICE
|
|
17
|
-
- `wikidata_resolve_external_id` — look up Wikidata entities by DOI (P356), PubMed ID (P698), ORCID (P496), OpenAlex ID (P10283), IMDb ID (P345), or any external identifier property; normalizes DOI/PMID/ORCID formats automatically
|
|
18
|
-
- `wikidata://entity/{id}` resource — compact markdown entity summary by QID or PID
|
|
19
|
-
- `WikidataRestService` — Wikidata REST API v1 + MediaWiki `wbgetentities` client with retry, timeout, and rate-limit handling
|
|
20
|
-
- `WikidataSparqlService` — SPARQL endpoint client with query preparation, prefix injection, and label SERVICE injection
|
package/changelog/0.1.x/0.1.2.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
summary: "Label type fixes, statusCode error path, resource output shape — correct the REST API type layer and not_found detection"
|
|
3
|
-
breaking: false
|
|
4
|
-
security: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# 0.1.2 — 2026-05-24
|
|
8
|
-
|
|
9
|
-
## Fixed
|
|
10
|
-
|
|
11
|
-
- **Label/description types** — REST API v1 returns plain strings, not nested `{ language, value }` objects. `LocalizedString` type removed; `LocalizedStringMap` and `AliasMap` now use `string` and `string[]` respectively. `flattenLabelMap`/`flattenAliasMap` helpers dropped; `get-entity` handler returns the correct shape without flattening.
|
|
12
|
-
- **404 detection** — REST API error shape uses `statusCode`, not `status`. Fixed in `entity.resource`, `wikidata_get_entity`, and `wikidata_get_statements` — entities that don't exist now correctly throw `entity_not_found` / `notFound` instead of re-throwing the raw error.
|
|
13
|
-
- **Statement label extraction** — `entity.resource` and `wikidata_get_statements` now handle both string and `{ id }` content values when extracting QIDs from `wikibase-item` statement values.
|
|
14
|
-
- **Resource output shape** — `entity.resource` handler returns the markdown string directly; the erroneous `output: z.object({ content })` wrapper is removed.
|
|
15
|
-
|
|
16
|
-
## Changed
|
|
17
|
-
|
|
18
|
-
- **Metadata** — `package.json`: `mcpName`, `author`, `bugs`, `homepage`, `funding`, `packageManager` fields added; `bin` key normalized; repository URL uses `git+` prefix. `server.json`: name updated to `io.github.cyanheads/wikidata-mcp-server`, `runtimeHint` → `bun` on both packages. `Dockerfile`: OCI `title`, `description`, and `source` labels populated. `manifest.json`: `repository`, `homepage`, `license` fields added.
|
|
19
|
-
- `bunfig.toml` added with Bun install and run configuration.
|
|
20
|
-
- Docker install snippet added to README.
|
package/changelog/0.1.x/0.1.3.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
summary: "Sync tagline across all surfaces — adds 'and' before 'resolve external identifiers'"
|
|
3
|
-
breaking: false
|
|
4
|
-
security: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# 0.1.3 — 2026-05-23
|
|
8
|
-
|
|
9
|
-
## Changed
|
|
10
|
-
|
|
11
|
-
- **Tagline** — all description surfaces (`package.json`, `server.json`, `manifest.json`, `Dockerfile`, README header, GitHub repo) now read: "Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers via MCP. STDIO or Streamable HTTP." (condensed variant in `server.json` omits the transport suffix).
|
package/changelog/template.md
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# FORMAT REFERENCE — do not edit. Copy this file to
|
|
3
|
-
# `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.8.x/0.8.6.md`)
|
|
4
|
-
# to author a new release. Set that file's H1 to `# <version> — YYYY-MM-DD`
|
|
5
|
-
# with a concrete date.
|
|
6
|
-
|
|
7
|
-
# Required. One-line GitHub Release-style headline. 350 character cap.
|
|
8
|
-
# Default short and scannable. Don't pad, don't stitch unrelated changes with
|
|
9
|
-
# semicolons — pick the headline. Quotes required: unquoted YAML treats `: `
|
|
10
|
-
# inside the value as a key separator and fails GitHub's strict parser.
|
|
11
|
-
summary: ""
|
|
12
|
-
|
|
13
|
-
# Set `true` when consumers must change code to upgrade: API removals,
|
|
14
|
-
# signature changes, config renames, behavior changes that break existing
|
|
15
|
-
# usage. Flagged as `Breaking` in the rollup.
|
|
16
|
-
breaking: false
|
|
17
|
-
|
|
18
|
-
# Set `true` if this release contains any security fix. Pairs with the
|
|
19
|
-
# `## Security` section below. Flagged as `Security` in the rollup so
|
|
20
|
-
# users can triage upgrade urgency at a glance.
|
|
21
|
-
security: false
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
# <version> — YYYY-MM-DD
|
|
25
|
-
|
|
26
|
-
<!--
|
|
27
|
-
AUTHORING GUIDE — applies to the new per-version file you create from this
|
|
28
|
-
template.
|
|
29
|
-
|
|
30
|
-
Audience: someone scanning release notes to decide what affects them. Lead
|
|
31
|
-
each bullet with the symbol or concept name in **bold** so they can skip
|
|
32
|
-
what's irrelevant and zoom in on what's not.
|
|
33
|
-
|
|
34
|
-
Tone: terse, fact-dense, not verbose. Default to one sentence per bullet —
|
|
35
|
-
name the symbol, state what changed, stop. Use a second sentence only when
|
|
36
|
-
it carries weight. If a bullet feels long, it is.
|
|
37
|
-
|
|
38
|
-
Cut: mechanism walkthroughs (those belong in JSDoc, AGENTS.md, or the
|
|
39
|
-
relevant skill), ceremonial framings ("This release introduces…",
|
|
40
|
-
backwards-compat paragraphs), file-by-file test enumerations, internal
|
|
41
|
-
implementation notes. Prefer code/symbol names over English re-explanations.
|
|
42
|
-
|
|
43
|
-
Narrative intro: skip by default. Add one short sentence only when the
|
|
44
|
-
release theme genuinely needs framing the bullets can't carry.
|
|
45
|
-
|
|
46
|
-
Sections: Keep a Changelog order — Added, Changed, Deprecated, Removed,
|
|
47
|
-
Fixed, Security. Include only sections with entries; delete the rest
|
|
48
|
-
(including the commented-out scaffolding below). Don't ship empty headers.
|
|
49
|
-
|
|
50
|
-
Include: every distinct fact a reader needs to adopt or audit the release —
|
|
51
|
-
new exports, signatures, lint rule IDs, env vars, breaking changes, version
|
|
52
|
-
bumps on shipped skills. Nothing more.
|
|
53
|
-
|
|
54
|
-
Links: link issues, PRs, docs, or skills where they help a reader jump to
|
|
55
|
-
context. Once per item per entry — don't re-link the same issue in summary,
|
|
56
|
-
narrative, and bullet. Skip links for inline symbol names; code spans speak
|
|
57
|
-
for themselves.
|
|
58
|
-
|
|
59
|
-
Issue/PR URLs: use full URLs. GitHub's bare `#NN` auto-link only resolves
|
|
60
|
-
inside its own UI, not in npm reads or local editors.
|
|
61
|
-
|
|
62
|
-
[#38](https://github.com/cyanheads/mcp-ts-core/issues/38) ← issue
|
|
63
|
-
[#42](https://github.com/cyanheads/mcp-ts-core/pull/42) ← PR
|
|
64
|
-
|
|
65
|
-
Verify numbers exist before linking (`gh issue view NN`, `gh pr view NN`).
|
|
66
|
-
Never speculate on a future number — `#42` for an upcoming PR silently
|
|
67
|
-
resolves to whatever real item already owns 42, and timeline previews pull
|
|
68
|
-
in that unrelated item's metadata.
|
|
69
|
-
|
|
70
|
-
TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
|
|
71
|
-
via `gh release create --notes-from-tag`. The tag is a derivative of this
|
|
72
|
-
changelog entry — a condensed, scannable version, not a copy. Format:
|
|
73
|
-
|
|
74
|
-
<theme — omit version number, GitHub prepends it>
|
|
75
|
-
← blank line
|
|
76
|
-
<1-2 sentence context: what this release does>
|
|
77
|
-
← blank line
|
|
78
|
-
Dependency bumps: ← section header
|
|
79
|
-
← blank line
|
|
80
|
-
- `@cyanheads/mcp-ts-core` ^0.9.1 → ^0.9.6 ← bullet
|
|
81
|
-
← blank line
|
|
82
|
-
Changed: ← only sections with entries
|
|
83
|
-
← blank line
|
|
84
|
-
- `format()` output includes `query` in text mode
|
|
85
|
-
← blank line
|
|
86
|
-
Added:
|
|
87
|
-
← blank line
|
|
88
|
-
- `manifest.json` scaffolded for MCPB bundle support
|
|
89
|
-
- Install badges (Claude Desktop, Cursor, VS Code)
|
|
90
|
-
← blank line
|
|
91
|
-
<N> tests pass; `bun run devcheck` clean. ← footer
|
|
92
|
-
|
|
93
|
-
Never a flat comma-separated string. Always structured markdown with
|
|
94
|
-
sections. The tag must scan well as a rendered GitHub Release page.
|
|
95
|
-
-->
|
|
96
|
-
|
|
97
|
-
## Added
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
## Changed
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
<!-- ## Deprecated
|
|
106
|
-
|
|
107
|
-
- -->
|
|
108
|
-
|
|
109
|
-
<!-- ## Removed
|
|
110
|
-
|
|
111
|
-
- -->
|
|
112
|
-
|
|
113
|
-
## Fixed
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
<!-- ## Security
|
|
118
|
-
|
|
119
|
-
- -->
|