{"_id":"@ansvar/uk-standards-mcp","_rev":"2-25a2c52dff728ffc9ff116573454d19a","name":"@ansvar/uk-standards-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ansvar/uk-standards-mcp","version":"0.1.0","keywords":["mcp","uk","united-kingdom","ncsc","cyber-essentials","caf","nhs","cybersecurity","compliance","standards","zero-trust","nis-regulations","ofcom","pra","fca","mod","defence","gds"],"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/uk-standards-mcp@0.1.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://github.com/Ansvar-Systems/uk-standards-mcp#readme","bugs":{"url":"https://github.com/Ansvar-Systems/uk-standards-mcp/issues"},"bin":{"uk-standards-mcp":"dist/index.js"},"dist":{"shasum":"7cc96793c46b2222cf15eea3ccc49d7ac1ea3d2e","tarball":"https://registry.npmjs.org/@ansvar/uk-standards-mcp/-/uk-standards-mcp-0.1.0.tgz","fileCount":98,"integrity":"sha512-M21YaiHxvj7+M7HUDI7iW/+w9U/iB+4kaol7bKHAplVG+ysHgEEO4FiUb0b+ENrmyXs+CClC6VaNtb3dPWHAaQ==","signatures":[{"sig":"MEUCICIpwjWIIEUSf2trH8amGDdCl1/U5NJVPF99YC52OJKZAiEA3MsN7Piom57txMJhUIUoDPglTQHGXp2mjhJ35LUAeo4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fuk-standards-mcp@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":546701},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"gitHead":"1031660badda73da6db72465824dfab2f9d5b94a","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/uk-standards-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"UK government cybersecurity standards MCP -- 28 frameworks (328 controls): NCSC publications, GDS standards, HMG MCSS, NIS Regulations, NHS DSPT/DCB0129/DCB0160, PRA/FCA financial resilience, OFCOM telecoms security, MOD Def Stan 05-138. Part of the Ansva","directories":{},"_nodeVersion":"20.20.1","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/uk-standards-mcp_0.1.0_1773312834939_0.09423812047731572","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/uk-standards-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-03-12T10:53:54.826Z","modified":"2026-05-02T05:49:53.236Z","0.1.0":"2026-03-12T10:53:55.137Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/uk-standards-mcp/issues"},"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","homepage":"https://github.com/Ansvar-Systems/uk-standards-mcp#readme","keywords":["mcp","uk","united-kingdom","ncsc","cyber-essentials","caf","nhs","cybersecurity","compliance","standards","zero-trust","nis-regulations","ofcom","pra","fca","mod","defence","gds"],"repository":{"url":"git+https://github.com/Ansvar-Systems/uk-standards-mcp.git","type":"git"},"description":"UK government cybersecurity standards MCP -- 28 frameworks (328 controls): NCSC publications, GDS standards, HMG MCSS, NIS Regulations, NHS DSPT/DCB0129/DCB0160, PRA/FCA financial resilience, OFCOM telecoms security, MOD Def Stan 05-138. Part of the Ansva","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# UK Standards MCP\n\n[![npm version](https://img.shields.io/npm/v/@ansvar/uk-standards-mcp)](https://www.npmjs.com/package/@ansvar/uk-standards-mcp)\n[![CI](https://github.com/Ansvar-Systems/uk-standards-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/uk-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 28 UK government cybersecurity standards and frameworks: NCSC publications (Cyber Essentials, CAF, Cloud Security, Zero Trust, and 13 more), GDS standards, HMG Minimum Cyber Security Standard, NIS Regulations, NHS clinical risk management, PRA/FCA financial resilience, OFCOM telecoms security, and MOD Def Stan 05-138. FTS5 search, ISO 27002 cross-references, and sector-based filtering across government, healthcare, finance, energy, telecoms, and defence.\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    \"uk-standards\": {\n      \"url\": \"https://uk-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    \"uk-standards\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/uk-standards-mcp\"]\n    }\n  }\n}\n```\n\n**Cursor** — edit `.cursor/mcp.json` in your project:\n\n```json\n{\n  \"mcpServers\": {\n    \"uk-standards\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/uk-standards-mcp\"]\n    }\n  }\n}\n```\n\n**VS Code / GitHub Copilot** — add to `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"uk-standards\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/uk-standards-mcp\"]\n    }\n  }\n}\n```\n\n---\n\n## What's Included\n\n### NCSC Publications (17 frameworks)\n\n| Source | Items | Refresh |\n|--------|-------|---------|\n| Cyber Essentials (Willow) | 16 controls | Annual |\n| Cyber Essentials Plus | 13 controls | Annual |\n| Cyber Assessment Framework (CAF) v3.2 | 36 controls | Annual |\n| Cloud Security Principles | 14 principles | Annual |\n| 10 Steps to Cyber Security | 23 controls | Annual |\n| Board Toolkit | 12 controls | Annual |\n| Supply Chain Security Guidance | 12 principles | Annual |\n| Zero Trust Architecture | 8 principles | Annual |\n| Email Security and Anti-Spoofing | 8 controls | Annual |\n| TLS Configuration Guidance | 7 controls | Annual |\n| Password Administration | 8 controls | Annual |\n| Secure Design Principles | 12 principles | Annual |\n| Identity and Access Management | 8 controls | Annual |\n| Logging and Protective Monitoring | 10 controls | Annual |\n| Incident Management | 10 controls | Annual |\n| BYOD Guidance | 6 controls | Annual |\n| NHS DSPT | 30 assertions | Annual |\n\n### Government, Regulatory, Financial, Healthcare, Defence (11 frameworks)\n\n| Source | Authority | Items | Refresh |\n|--------|-----------|-------|---------|\n| GDS Technology Code of Practice | GDS | 12 points | Annual |\n| GDS Service Standard | GDS | 14 points | Annual |\n| HMG Minimum Cyber Security Standard | Cabinet Office | 10 requirements | Annual |\n| Cyber Governance Code of Practice | DSIT | 9 actions | Annual |\n| UK NIS Regulations 2018 | DSIT | 7 obligations | 5-year |\n| OFCOM Telecoms Security Code | OFCOM | 8 measures | Annual |\n| NHS DCB0129 (Clinical Risk - Manufacturers) | NHS Digital | 7 requirements | 5-year |\n| NHS DCB0160 (Clinical Risk - Health Orgs) | NHS Digital | 5 requirements | 5-year |\n| PRA Operational Resilience (SS1/21) | PRA / BoE | 8 requirements | Annual |\n| FCA SYSC 13 Operational Risk | FCA | 7 requirements | Annual |\n| Def Stan 05-138 (Defence Suppliers) | MOD | 8 requirements | 5-year |\n\n**Total:** 328 controls and requirements across 28 frameworks.\n\nFor full coverage details, see [COVERAGE.md](COVERAGE.md).\n\n---\n\n## Available Tools\n\n| Tool | Category | Description |\n|------|----------|-------------|\n| `search_controls` | Search | Full-text search across all 28 frameworks. Returns controls ranked by FTS5 relevance. |\n| `search_by_sector` | Search | Returns frameworks for a sector (`government`, `healthcare`, `energy`, etc.), optionally filtered by keyword. |\n| `get_control` | Lookup | Full record for a single control: 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. Paginated. |\n| `compare_controls` | Comparison | Side-by-side comparison of the same topic across 2-4 frameworks. |\n| `get_iso_mapping` | Comparison | All UK controls mapped to a given ISO 27002 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\nAll 28 sources were last refreshed on 2026-03-12. Sources with annual refresh schedules are next due 2027-03-12. Sources on a 5-year cycle (NIS Regulations, DCB0129, DCB0160, Def Stan 05-138) are next due 2031-03-12.\n\nTo check freshness at runtime, call `check_data_freshness`. Full source provenance and licenses: [sources.yml](sources.yml). Full freshness schedule: [COVERAGE.md](COVERAGE.md#data-freshness-schedule).\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 UK cybersecurity standards sourced from authoritative NCSC and NHS 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/uk-standards-mcp.git\ncd uk-standards-mcp\nnpm install\nnpm run build\nnpm test\n```\n\n### Ingestion\n\n```bash\n# Full pipeline: fetch -> build DB -> update coverage\nnpm run ingest:full\n\n# Individual steps\nnpm run ingest:fetch     # Run all ingestion scripts\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\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\nAll 28 sources are published under the **Open Government Licence v3.0** by UK government bodies (NCSC, GDS, Cabinet Office, DSIT, OFCOM, NHS Digital, PRA, FCA, MOD). Free to use with attribution.\n\nAll data is extracted from publicly available UK government publications. Zero AI-generated content in the database. See [sources.yml](sources.yml) for complete provenance.\n","readmeFilename":"README.md"}