{"_id":"@ansvar/data-use-license-mcp","_rev":"2-118a9e6d031ee045485e10de2cba1a2b","name":"@ansvar/data-use-license-mcp","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@ansvar/data-use-license-mcp","version":"0.1.0","license":"Apache-2.0","_id":"@ansvar/data-use-license-mcp@0.1.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://github.com/Ansvar-Systems/data-use-license-mcp#readme","bugs":{"url":"https://github.com/Ansvar-Systems/data-use-license-mcp/issues"},"bin":{"data-use-license-mcp":"dist/server.js"},"dist":{"shasum":"259ab0c9c8dd0886449861a203dae7cdc59eedac","tarball":"https://registry.npmjs.org/@ansvar/data-use-license-mcp/-/data-use-license-mcp-0.1.0.tgz","fileCount":44,"integrity":"sha512-mZYZU0pzldAMYbWCMdFOhj8NDBWC9AYl3mk/pkwuLAiCV7fMUPGKdByq2d3JH7bQ/xY9j1WT7A974Y9M9M5TYw==","signatures":[{"sig":"MEQCIDSoS3sXQHR65/ivbLT8KLYMmeKZ9EBI0P+RypJ6/2HVAiAxiSVig+zB5REI/hwmhHSrPmFjVzCIik/FUIz4Cj+9qw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fdata-use-license-mcp@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":148064},"main":"dist/server.js","type":"module","types":"./dist/server.d.ts","engines":{"node":">=20.0.0"},"gitHead":"4af4249f393bd86e3727528da9a1c9862e414620","mcpName":"data-use-license","scripts":{"lint":"eslint src tests scripts --ext .ts","test":"vitest run","build":"tsc","start":"node dist/server.js","build:db":"tsx scripts/build-database.ts","test:unit":"vitest run tests/unit","typecheck":"tsc --noEmit","test:contract":"vitest run tests/contract","test:integrity":"vitest run tests/integrity"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"repository":{"url":"git+https://github.com/Ansvar-Systems/data-use-license-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server providing authoritative metadata on data-use licenses, government open-data terms, legal regimes, and vendor TOS templates.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^3.23.0","express":"^5.0.0","better-sqlite3":"^11.0.0","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.0.0","eslint":"^8.0.0","vitest":"^1.6.0","typescript":"^5.4.0","@types/node":"^20.0.0","@types/express":"^5.0.0","@types/better-sqlite3":"^7.6.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/data-use-license-mcp_0.1.0_1777835557805_0.2559925419486635","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@ansvar/data-use-license-mcp","version":"0.2.0","description":"MCP server providing authoritative metadata on data-use licenses, government open-data terms, legal regimes, and vendor TOS templates.","type":"module","mcpName":"data-use-license","main":"dist/index.js","bin":{"data-use-license-mcp":"dist/index.js"},"scripts":{"build":"tsc","build:db":"tsx scripts/build-database.ts","lint":"eslint src tests scripts --ext .ts","typecheck":"tsc --noEmit","test":"vitest run","test:contract":"vitest run tests/contract","test:unit":"vitest run tests/unit","test:integrity":"vitest run tests/integrity","start":"node dist/http-server.js"},"engines":{"node":">=20.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.0.0","better-sqlite3":"^11.0.0","zod":"^3.23.0"},"devDependencies":{"@types/better-sqlite3":"^7.6.0","@types/node":"^20.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.0.0","tsx":"^4.0.0","typescript":"^5.4.0","vitest":"^1.6.0"},"publishConfig":{"access":"public","provenance":true},"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/Ansvar-Systems/data-use-license-mcp.git"},"_id":"@ansvar/data-use-license-mcp@0.2.0","gitHead":"8154fdbda496b1e2e9e64892a096c916f4235a6e","types":"./dist/index.d.ts","bugs":{"url":"https://github.com/Ansvar-Systems/data-use-license-mcp/issues"},"homepage":"https://github.com/Ansvar-Systems/data-use-license-mcp#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-fZIHMIzqe1fkqbJ1POemlqbgO603AxFABgzNkvQEyYPE1H9bfb9O+BO6ga+HWnLFgUog+arAXFctovDl+exmNQ==","shasum":"6b10aecf417f285aac53a6428555f0d30b33ea53","tarball":"https://registry.npmjs.org/@ansvar/data-use-license-mcp/-/data-use-license-mcp-0.2.0.tgz","fileCount":50,"unpackedSize":160685,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fdata-use-license-mcp@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB63SX30cNoVOMDpOCvA1mgxryRB9U+mSmWBMH0mOlAQAiBvSvnWX++DKAhy1vlJFcHJAK3SPXA7USMtx60EE3m4GA=="}]},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"directories":{},"maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/data-use-license-mcp_0.2.0_1777920893305_0.11826072856830039"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-03T19:12:37.738Z","modified":"2026-05-04T18:54:53.754Z","0.1.0":"2026-05-03T19:12:37.962Z","0.2.0":"2026-05-04T18:54:53.461Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/data-use-license-mcp/issues"},"license":"Apache-2.0","homepage":"https://github.com/Ansvar-Systems/data-use-license-mcp#readme","repository":{"type":"git","url":"git+https://github.com/Ansvar-Systems/data-use-license-mcp.git"},"description":"MCP server providing authoritative metadata on data-use licenses, government open-data terms, legal regimes, and vendor TOS templates.","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Data Use License MCP\n\n[![npm](https://img.shields.io/npm/v/@ansvar/data-use-license-mcp.svg)](https://www.npmjs.com/package/@ansvar/data-use-license-mcp)\n[![CI](https://github.com/Ansvar-Systems/data-use-license-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/data-use-license-mcp/actions/workflows/ci.yml)\n\nMCP server providing authoritative metadata on data-use licenses, government open-data terms, legal regimes (sui generis database rights, Crown Copyright, court-decision public-domain doctrines), and vendor TOS templates. Sibling to `@ansvar/open-source-license-mcp` (which covers software/code licenses).\n\n## Overview\n\nCoverage is structured around four entity types:\n\n- `license` — public licenses (CC family, EUPL, ODbL, etc.)\n- `terms` — government open-data portal terms (NLOD, Etalab, IODL, OGL UK, DL-DE, etc.)\n- `legal_regime` — sui generis database rights (EU 96/9/EC), Crown Copyright family, court-decision public-domain doctrines\n- `vendor_template` — Westlaw / LexisNexis / Bloomberg / Wolters Kluwer / HeinOnline TOS templates\n\n## Installation\n\n### Via npm (stdio)\n\n```bash\nnpm install -g @ansvar/data-use-license-mcp\n```\n\nThen add to your MCP client config:\n\n```json\n{\n  \"mcpServers\": {\n    \"data-use-license\": {\n      \"command\": \"data-use-license-mcp\"\n    }\n  }\n}\n```\n\n### Via Ansvar Gateway (recommended for B2B)\n\nUse `https://gateway.ansvar.eu` with OAuth — see [gateway-deployment.md](https://github.com/Ansvar-Systems/Ansvar-Architecture-Documentation/blob/main/docs/runbooks/mcp-gateway-deployment.md).\n\n## Tools\n\n### `search_entities` (premium)\n\nSearch across all entity types. Accepts human-readable values (`\"MIT\"`, `\"Norwegian open data\"`, `\"Westlaw\"`).\n\n**Input:** `{ query: string, entity_type?: \"license\" | \"terms\" | \"legal_regime\" | \"vendor_template\", jurisdiction?: string, limit?: number }`\n\n**Output:** `{ results: Array<{ id, entity_type, name, short_name, jurisdiction, summary, _citation }>, _meta }`\n\n### `get_entity` (premium)\n\nRetrieve full record by id (also accepts human-readable input).\n\n**Input:** `{ entity_id: string }`\n\n**Output:** `{ entity: Entity | null, _citation: Citation | null, _meta }`\n\n### `check_compatibility` (premium)\n\nPairwise compatibility verdict between two entities.\n\n**Input:** `{ left_id: string, right_id: string }`\n\n**Output:** `{ verdict: \"compatible\" | \"incompatible\" | \"conditionally_compatible\" | \"unknown\", obligations_triggered, edge_metadata, _citation_left, _citation_right, _meta }`\n\n### `get_obligations` (team)\n\nFull obligations array with conditional triggers.\n\n**Input:** `{ entity_id: string }`\n\n**Output:** `{ obligations: Array<{ id, title, text, mandatory, conditional_on }>, _citation, _meta }`\n\n### `search_vendor_templates` (team)\n\nVendor TOS template lookup. Results carry `quality_tier: amber` baseline.\n\n**Input:** `{ query: string, limit?: number }`\n\n**Output:** `{ results: Array<VendorResult>, _meta }`\n\n## Source Attribution\n\nPer-item `_citation` includes:\n- `source_url` — canonical authority URL\n- `publisher` — bare hostname or canonical name\n- `license` — SPDX-style code (registered in `infrastructure/attribution-licenses.json` in the Ansvar architecture-docs repo)\n- `canonical_ref`, `display_text`, `lookup`, `attribution_text`\n\nPer-response `_meta` includes:\n- `disclaimer`, `data_age` (ISO-8601), `source_url`, `jurisdiction`, `corpus_freshness`\n\n## Development\n\n```bash\nnpm install\nexport ATTRIBUTION_LICENSES_PATH=/path/to/Ansvar-Architecture-Documentation/infrastructure/attribution-licenses.json\nnpm run build:db\nnpm run build\nnpm test\n```\n\nRun locally (stdio):\n```bash\nnode dist/index.js\n```\n\nRun locally (HTTP, port 3000):\n```bash\nnpm start\n```\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}