{"_id":"@ansvar/swedish-standards-mcp","_rev":"2-98bde42e8a7ee0386635e3bcfea0a819","name":"@ansvar/swedish-standards-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/swedish-standards-mcp","version":"0.1.0","keywords":["mcp","swedish","sweden","msb","digg","cert-se","pts","finansinspektionen","imy","nis2","cybersecurity","compliance","standards"],"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/swedish-standards-mcp@0.1.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://github.com/Ansvar-Systems/swedish-standards-mcp#readme","bugs":{"url":"https://github.com/Ansvar-Systems/swedish-standards-mcp/issues"},"bin":{"swedish-standards-mcp":"dist/index.js"},"dist":{"shasum":"b3431be4b231680fc5ad6d58252ab078c1a39481","tarball":"https://registry.npmjs.org/@ansvar/swedish-standards-mcp/-/swedish-standards-mcp-0.1.0.tgz","fileCount":86,"integrity":"sha512-YAOXGl2fLhDfv15xhYGSUywyeiMDzDFbQfQVxO+1SyEzRQO3vywj+zxKmywXyX8Q3AZi/ke70vp+1mxj0Tusog==","signatures":[{"sig":"MEQCIEeHD3IDwq36+NXMo2ddJs5wTX7XppmLTac3QasVIyRVAiAxEJyabO2NPygohYdOAY4D5FqcOK9e4IBIa1lFpfXfqg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fswedish-standards-mcp@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":600562},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"gitHead":"67eff5726c5667ecbc2278b42c269910cb59e80a","scripts":{"dev":"tsx src/index.ts","lint":"tsc --noEmit","test":"vitest run","build":"tsc","clean":"rm -rf dist && find . -name '*.tsbuildinfo' -delete","start":"node dist/index.js","prepare":"test -f dist/index.js || npm run build","build:db":"node --import tsx scripts/build-db.ts","dev:http":"tsx src/http-server.ts","start:http":"node dist/http-server.js","test:watch":"vitest","ingest:diff":"node --import tsx scripts/ingest-diff.ts","ingest:full":"npm run ingest:fetch && npm run ingest:diff && npm run build:db && npm run coverage:update","ingest:fetch":"node --import tsx scripts/ingest-fetch.ts","test:contract":"vitest run __tests__/contract/","coverage:update":"node --import tsx scripts/update-coverage.ts","coverage:verify":"node --import tsx scripts/verify-coverage.ts","freshness:check":"node --import tsx scripts/check-freshness.ts"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"repository":{"url":"git+https://github.com/Ansvar-Systems/swedish-standards-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Swedish government cybersecurity standards MCP -- 16 frameworks from MSB, DIGG, SAPO, CERT-SE, PTS, FI, IMY, Socialstyrelsen, NIS2, Energimyndigheten, Transportstyrelsen. Part of the Ansvar MCP Network (ansvar.ai/mcp)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.24.0","@ansvar/mcp-sqlite":"^1.0.3","@modelcontextprotocol/sdk":"^1.25.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vitest":"^3.0.0","typescript":"^5.9.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/swedish-standards-mcp_0.1.0_1773312873029_0.6292718926226772","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/swedish-standards-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-03-12T10:54:32.918Z","modified":"2026-05-02T05:49:09.938Z","0.1.0":"2026-03-12T10:54:33.202Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/swedish-standards-mcp/issues"},"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","homepage":"https://github.com/Ansvar-Systems/swedish-standards-mcp#readme","keywords":["mcp","swedish","sweden","msb","digg","cert-se","pts","finansinspektionen","imy","nis2","cybersecurity","compliance","standards"],"repository":{"url":"git+https://github.com/Ansvar-Systems/swedish-standards-mcp.git","type":"git"},"description":"Swedish government cybersecurity standards MCP -- 16 frameworks from MSB, DIGG, SAPO, CERT-SE, PTS, FI, IMY, Socialstyrelsen, NIS2, Energimyndigheten, Transportstyrelsen. Part of the Ansvar MCP Network (ansvar.ai/mcp)","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Swedish Standards MCP\n\n[![npm version](https://img.shields.io/npm/v/@ansvar/swedish-standards-mcp)](https://www.npmjs.com/package/@ansvar/swedish-standards-mcp)\n[![CI](https://github.com/Ansvar-Systems/swedish-standards-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/swedish-standards-mcp/actions/workflows/ci.yml)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)\n[![MCP Registry](https://img.shields.io/badge/MCP%20Registry-ansvar.ai%2Fmcp-blue)](https://ansvar.ai/mcp)\n\nStructured access to Swedish government cybersecurity standards: MSB Metodstod for systematiskt informationssakerhetsarbete, MSB Grundlaggande sakerhetesatgarder, DIGG digital sakerhet, MSBFS 2020:6/2020:7, SAPO sakerhetsskydd, and CERT-SE rekommendationer. Bilingual Swedish/English with FTS search, ISO 27002:2022 cross-references, and sector-based filtering.\n\nPart of the [Ansvar MCP Network](https://ansvar.ai/mcp) -- specialist MCP servers for compliance and security intelligence.\n\n---\n\n## Quick Start\n\n### Remote endpoint (no installation)\n\nAdd to your MCP client config:\n\n```json\n{\n  \"mcpServers\": {\n    \"swedish-standards\": {\n      \"url\": \"https://swedish-standards-mcp.vercel.app/mcp\"\n    }\n  }\n}\n```\n\n### Local (stdio via npx)\n\n**Claude Desktop** -- edit `~/Library/Application Support/Claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"swedish-standards\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/swedish-standards-mcp\"]\n    }\n  }\n}\n```\n\n**Cursor** -- edit `.cursor/mcp.json` in your project:\n\n```json\n{\n  \"mcpServers\": {\n    \"swedish-standards\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/swedish-standards-mcp\"]\n    }\n  }\n}\n```\n\n**VS Code / GitHub Copilot** -- add to `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"swedish-standards\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/swedish-standards-mcp\"]\n    }\n  }\n}\n```\n\n---\n\n## What's Included\n\n| Source | Authority | Items | Language | Refresh |\n|--------|-----------|-------|----------|---------|\n| MSB Metodstod (Systematiskt informationssakerhetsarbete) | MSB | 98 controls | SV+EN | Annual |\n| MSB Grundlaggande sakerhetesatgarder | MSB | 53 controls | SV+EN | Annual |\n| DIGG Digital Sakerhet | DIGG | 25 controls | SV+EN | Annual |\n| MSBFS 2020:6 / 2020:7 | MSB | 25 controls | SV+EN | Annual |\n| SAPO Sakerhetsskydd | SAPO | 27 controls | SV+EN | Annual |\n| CERT-SE Rekommendationer | CERT-SE | 25 controls | SV+EN | Annual |\n\n**Total:** 253 controls across 6 frameworks.\n\nFor full coverage details, see [COVERAGE.md](COVERAGE.md).\n\n---\n\n## What's NOT Included\n\n| Gap | Status |\n|-----|--------|\n| PTS (Post- och telestyrelsen) telecom security requirements | Planned for v0.2 |\n| Finansinspektionen (FI) financial sector IT requirements | Planned for v0.2 |\n| IVO (Inspektionen for vard och omsorg) healthcare IT requirements | Planned for v0.2 |\n| ISO/IEC 27001:2022 full text | Excluded -- commercial ISO license; ISO cross-references available via `get_iso_mapping` |\n| SS-EN ISO/IEC 27001 (Swedish adoption) | Excluded -- commercial SIS license |\n\nFor the complete gap list, see [COVERAGE.md -- What's NOT Included](COVERAGE.md#whats-not-included).\n\n---\n\n## Available Tools\n\n| Tool | Category | Description |\n|------|----------|-------------|\n| `search_controls` | Search | Full-text search across all 6 frameworks. Returns controls ranked by FTS5 relevance. |\n| `search_by_sector` | Search | Returns frameworks for a sector (`government`, `healthcare`, `finance`, etc.), optionally filtered by keyword. |\n| `get_control` | Lookup | Full record for a single control: bilingual description, implementation guidance, ISO mapping. |\n| `get_framework` | Lookup | Metadata for a framework: issuing body, version, control count, category breakdown. |\n| `list_controls` | Lookup | All controls in a framework, filterable by category and level. Paginated. |\n| `compare_controls` | Comparison | Side-by-side comparison of the same topic across 2-4 frameworks. |\n| `get_iso_mapping` | Comparison | All Swedish controls mapped to a given ISO 27002:2022 control reference. |\n| `list_frameworks` | Meta | Lists all frameworks in the database with summary stats. |\n| `about` | Meta | Server version, build date, and coverage statistics. |\n| `list_sources` | Meta | Data provenance: authority, standard name, retrieval method, license for each source. |\n| `check_data_freshness` | Meta | Per-source freshness status against the expected refresh schedule. |\n\nFor full parameter documentation, return formats, and examples, see [TOOLS.md](TOOLS.md).\n\n---\n\n## Data Sources & Freshness\n\n| Source | Last Refresh | Refresh Schedule |\n|--------|-------------|-----------------|\n| MSB Metodstod | 2026-03-12 | Annual |\n| MSB Grundlaggande | 2026-03-12 | Annual |\n| DIGG Digital Sakerhet | 2026-03-12 | Annual |\n| MSBFS 2020:6/2020:7 | 2026-03-12 | Annual |\n| SAPO Sakerhetsskydd | 2026-03-12 | Annual |\n| CERT-SE Rekommendationer | 2026-03-12 | Annual |\n\nThe `ingest.yml` workflow runs automatically on the most frequent source schedule. The `check-updates.yml` workflow runs daily and creates a GitHub issue if any source is overdue.\n\nTo check freshness at runtime, call `check_data_freshness`. Full source provenance and licenses: [sources.yml](sources.yml).\n\n---\n\n## Security\n\nThis repository runs 6-layer automated security scanning on every push and weekly:\n\n| Layer | Tool | What it checks |\n|-------|------|----------------|\n| Static analysis | CodeQL | Code vulnerabilities |\n| SAST | Semgrep | Security anti-patterns |\n| Container / dependency scan | Trivy | Known CVEs in dependencies |\n| Secret detection | Gitleaks | Leaked credentials |\n| Supply chain | OSSF Scorecard | Repository security posture |\n| Dependency updates | Dependabot | Automated dependency PRs |\n\n---\n\n## Disclaimer\n\n**THIS TOOL IS NOT PROFESSIONAL ADVICE.**\n\nThis MCP provides structured access to Swedish cybersecurity standards sourced from authoritative publications. It is provided for informational and research purposes only.\n\n- Verify critical compliance decisions against the original standards\n- Data is a snapshot -- sources update, and there may be a delay between upstream changes and database refresh\n- See [DISCLAIMER.md](DISCLAIMER.md) for the full disclaimer and no-warranty statement\n\n---\n\n## Ansvar MCP Network\n\nThis server is part of the [Ansvar MCP Network](https://ansvar.ai/mcp) -- 149 specialist MCP servers covering legislation, compliance frameworks, and cybersecurity standards.\n\n| Category | Servers | Coverage |\n|----------|---------|----------|\n| Law MCPs | 108 | 119 countries, 668K+ laws |\n| EU Regulations | 1 | 61 regulations, 4,054 articles |\n| Security frameworks | 1 | 262 frameworks, 1,451 SCF controls |\n| Domain-specific | ~48 | CVE, STRIDE, sanctions, OWASP, healthcare, financial, and more |\n\nBrowse the full directory at [ansvar.ai/mcp](https://ansvar.ai/mcp).\n\n---\n\n## Development\n\n### Branch strategy\n\n`feature-branch -> PR to dev -> verify on dev -> PR to main -> deploy`\n\nNever push directly to `main`. `main` triggers npm publish and Vercel deployment.\n\n### Setup\n\n```bash\ngit clone https://github.com/Ansvar-Systems/swedish-standards-mcp.git\ncd swedish-standards-mcp\nnpm install\nnpm run build\nnpm test\n```\n\n### Ingestion\n\n```bash\n# Full pipeline: fetch -> diff -> build DB -> update coverage\nnpm run ingest:full\n\n# Individual steps\nnpm run ingest:fetch     # Download latest data from upstream sources\nnpm run ingest:diff      # Check for changes against current DB\nnpm run build:db         # Rebuild SQLite database\nnpm run coverage:update  # Regenerate coverage.json and COVERAGE.md\n\n# Check freshness\nnpm run freshness:check\n```\n\n### Pre-deploy verification\n\n```bash\nnpm run build            # Gate 1: build\nnpm run lint             # Gate 2: TypeScript strict\nnpm test                 # Gate 3: unit tests\nnpm run test:contract    # Gate 4: golden contract tests\nsqlite3 data/standards.db \"PRAGMA integrity_check;\"   # Gate 5: DB integrity\nnpm run coverage:verify  # Gate 6: coverage consistency\n```\n\n---\n\n## License & Data Licenses\n\n**Code:** [Apache-2.0](LICENSE)\n\n**Data licenses by source:**\n\n| Source | License |\n|--------|---------|\n| MSB Metodstod | Public sector publication (MSB) |\n| MSB Grundlaggande | Public sector publication (MSB) |\n| DIGG Digital Sakerhet | Public sector publication (DIGG) |\n| MSBFS 2020:6/2020:7 | Swedish government regulation (public) |\n| SAPO Sakerhetsskydd | Public sector publication (SAPO) |\n| CERT-SE Rekommendationer | Public sector publication (CERT-SE) |\n\nAll data is extracted from publicly available authoritative Swedish government publications. Zero AI-generated content in the database. See [sources.yml](sources.yml) for complete provenance.\n","readmeFilename":"README.md"}