{"_id":"@ansvar/peruvian-law-mcp","_rev":"2-afb30788cbbc645c1ba271b1e835b771","name":"@ansvar/peruvian-law-mcp","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ansvar/peruvian-law-mcp","version":"1.0.0","keywords":["mcp","model-context-protocol","peruvian-law","data-protection","cybersecurity","legislation","legal","compliance","ansvar"],"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/peruvian-law-mcp@1.0.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://ansvar.eu","bugs":{"url":"https://github.com/Ansvar-Systems/Peruvian-law-mcp/issues"},"bin":{"peruvian-law-mcp":"dist/index.js"},"dist":{"shasum":"fc216528cac4f902b4f0fc1e9f495e9493a9b767","tarball":"https://registry.npmjs.org/@ansvar/peruvian-law-mcp/-/peruvian-law-mcp-1.0.0.tgz","fileCount":124,"integrity":"sha512-pI7x/MkQDTDSB341JvAwDwTU/d5+Xqh2I2zW7V0ouDOTM2vaIPZzEK5OVR74XgJq66qI9KQVePhep2LrAiN3qQ==","signatures":[{"sig":"MEQCIFuSRG3WPOY7v5sOiUWOZ+ptCs0/7TWlwmu9wb/uWb0mAiAsAXphxK0bDNX6KGdS1UCI1t14jUSDqxUbVEnuQhRboA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fperuvian-law-mcp@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":273277},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"3e07056d8d14275daf1f1cef144cb57a0810995c","mcpName":"eu.ansvar/peruvian-law-mcp","scripts":{"dev":"node --import tsx src/index.ts","lint":"tsc --noEmit","test":"vitest run","build":"tsc","start":"node dist/index.js","ingest":"node --import tsx scripts/ingest.ts","build:db":"node --import tsx scripts/build-db.ts","validate":"npm run lint && npm test && npm run test:contract","test:watch":"vitest","postinstall":"test -d dist || npm run build || true","drift:detect":"node --import tsx scripts/drift-detect.ts","test:contract":"vitest run __tests__/contract/","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"overrides":{"ajv":"^8.18.0","undici":"^7.0.0","path-to-regexp":"^8.0.0"},"repository":{"url":"git+https://github.com/Ansvar-Systems/Peruvian-law-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Peruvian law database covering data protection, cybersecurity, e-commerce, and criminal law provisions via Model Context Protocol","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@ansvar/mcp-sqlite":"^1.0.3","@modelcontextprotocol/sdk":"^1.25.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vitest":"^3.0.0","typescript":"^5.9.3","@types/node":"^22.15.29","@vercel/node":"^5.6.4","better-sqlite3":"^12.6.2","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/peruvian-law-mcp_1.0.0_1771775201919_0.10738613282911169","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/peruvian-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-02-22T15:46:41.758Z","modified":"2026-05-02T05:48:11.744Z","1.0.0":"2026-02-22T15:46:42.071Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/Peruvian-law-mcp/issues"},"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu","keywords":["mcp","model-context-protocol","peruvian-law","data-protection","cybersecurity","legislation","legal","compliance","ansvar"],"repository":{"url":"git+https://github.com/Ansvar-Systems/Peruvian-law-mcp.git","type":"git"},"description":"Peruvian law database covering data protection, cybersecurity, e-commerce, and criminal law provisions via Model Context Protocol","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Peruvian Law MCP\n\nPeruvian law database for cybersecurity compliance via Model Context Protocol (MCP).\n\n## Features\n\n- **Full-text search** across legislation provisions (FTS5 with BM25 ranking)\n- **Article-level retrieval** for specific legal provisions\n- **Citation validation** to prevent hallucinated references\n- **Currency checks** to verify if laws are still in force\n\n## Quick Start\n\n### Claude Code (Remote)\n```bash\nclaude mcp add peruvian-law --transport http https://peruvian-law-mcp.vercel.app/mcp\n```\n\n### Local (npm)\n```bash\nnpx @ansvar/peruvian-law-mcp\n```\n\n## Data Sources\n\nOfficial legal text from Diario Oficial El Peruano (`busquedas.elperuano.pe`).\n\n- Discovery/indexing: `https://busquedas.elperuano.pe/api/graphql` via `getGenericPublication`\n- Full text: `https://busquedas.elperuano.pe/api/visor_html/{op}`\n\nCurrent ingestion mode targets full law corpus categories (e.g., `LEY`, `DECRETO LEGISLATIVO`,\n`DECRETO DE URGENCIA`, `RESOLUCION LEGISLATIVA`) within the configured date range.\n\n## License\n\nApache-2.0\n\n\n---\n\n## Important Disclaimers\n\n### Not Legal Advice\n\n> **THIS TOOL IS NOT LEGAL ADVICE**\n>\n> Statute text is sourced from official government publications. However:\n> - This is a **research tool**, not a substitute for professional legal counsel\n> - **Coverage may be incomplete** — verify critical provisions against primary sources\n> - **Verify all citations** against the official legal portal before relying on them professionally\n> - Laws change — check the `about` tool for database freshness date\n\n### Client Confidentiality\n\nWhen using the remote endpoint, queries are processed by third-party infrastructure\n(Vercel, Claude API). For privileged or confidential legal matters, use the local\nnpm package or on-premise deployment.\n\n**Before using professionally, read:** [DISCLAIMER.md](DISCLAIMER.md) | [PRIVACY.md](PRIVACY.md)\n\n---\n\n## Open Law\n\nThis server is part of **Ansvar Open Law** — free, structured access to legislation\nfrom 70+ jurisdictions worldwide via the Model Context Protocol.\n\n**Browse all jurisdictions ->** [ansvar.eu/open-law](https://ansvar.eu/open-law)\n\n## Ansvar MCP Network\n\nAnsvar Open Law is part of the broader **Ansvar MCP Network** — 80+ servers covering\nglobal legislation, EU/US compliance frameworks, and cybersecurity standards.\n\n| Category | Coverage |\n|----------|----------|\n| **Legislation** | 70+ jurisdictions worldwide |\n| **EU Compliance** | 49 regulations, 2,693 articles |\n| **US Compliance** | 15 federal & state regulations |\n| **Security Frameworks** | 261 frameworks, 1,451 controls |\n| **Cybersecurity** | 200K+ CVEs, STRIDE patterns, sanctions |\n\n**Explore the full network ->** [ansvar.ai/mcp](https://ansvar.ai/mcp)\n\n---\n\nBuilt by [Ansvar Systems](https://ansvar.eu) | [ansvar.eu/open-law](https://ansvar.eu/open-law)\n","readmeFilename":"README.md"}