@statsmcp/scb 0.4.0 → 0.5.0
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/README.md +1 -1
- package/dist/bin.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-CVqIdUKN.mjs → src-5D8v1EjH.mjs} +2 -2
- package/package.json +4 -4
- package/snapshots/en.json.gz +0 -0
- package/snapshots/sv.json.gz +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @statsmcp/scb
|
|
2
2
|
|
|
3
|
-
An MCP server for the [Statistical Database](https://
|
|
3
|
+
An MCP server for the [Statistical Database](https://statistikdatabasen2.scb.se/en/) of Statistics Sweden (SCB). It uses the PxWeb API v2 and gives AI assistants access to its tables in Swedish and English.
|
|
4
4
|
|
|
5
5
|
> This project is not affiliated with or endorsed by Statistics Sweden.
|
|
6
6
|
|
package/dist/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as scbPreset, t as createScbServer } from "./src-
|
|
2
|
+
import { n as scbPreset, t as createScbServer } from "./src-5D8v1EjH.mjs";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";
|
|
4
4
|
import { nodeTableSnapshots } from "@statsmcp/core/node";
|
|
5
5
|
// src/bin.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createScbServer, n as scbPreset } from "./src-
|
|
1
|
+
export { t as createScbServer, n as scbPreset } from "./src-5D8v1EjH.mjs";
|
|
@@ -9,13 +9,13 @@ const CLOSED_TABLE = /\((?:no update after|uppdateras ej efter|not updated|uppda
|
|
|
9
9
|
const scbPreset = {
|
|
10
10
|
name: "scb",
|
|
11
11
|
title: "Statistical Database of Statistics Sweden (SCB official statistics)",
|
|
12
|
-
version: "0.
|
|
12
|
+
version: "0.5.0",
|
|
13
13
|
apiBaseUrl: "https://statistikdatabasen.scb.se/api/v2",
|
|
14
14
|
api: "pxweb-v2",
|
|
15
15
|
search: "index",
|
|
16
16
|
languages: ["sv", "en"],
|
|
17
17
|
attribution: (lang) => lang === "sv" ? ATTRIBUTION.sv : ATTRIBUTION.en,
|
|
18
|
-
tableUrl: (lang) => `https://
|
|
18
|
+
tableUrl: (lang, tableId) => `https://statistikdatabasen2.scb.se/${lang === "sv" ? "sv" : "en"}/table/${encodeURIComponent(tableId)}`,
|
|
19
19
|
isArchived: (hit) => CLOSED_TABLE.test(hit.title),
|
|
20
20
|
instructions: `Official statistics for Sweden from the Statistical Database of Statistics Sweden (SCB). This server is not affiliated with or endorsed by Statistics Sweden.
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsmcp/scb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "MCP server for the Statistical Database of Statistics Sweden (SCB)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Tadej Polajnar",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
46
|
-
"@statsmcp/core": "0.
|
|
46
|
+
"@statsmcp/core": "0.5.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/node": "26.6.
|
|
50
|
-
"tsdown": "0.23.
|
|
49
|
+
"@types/node": "26.6.6",
|
|
50
|
+
"tsdown": "0.23.4",
|
|
51
51
|
"typescript": "7.0.2",
|
|
52
52
|
"vitest": "5.0.5"
|
|
53
53
|
},
|
package/snapshots/en.json.gz
CHANGED
|
Binary file
|
package/snapshots/sv.json.gz
CHANGED
|
Binary file
|