home / mcp / peruvian law mcp server
Provides full-text search, article-level retrieval, citation validation, and currency checks for Peruvian laws via MCP.
Configuration
View docs{
"mcpServers": {
"ansvar-systems-peruvian-law-mcp": {
"url": "https://peruvian-law-mcp.vercel.app/mcp"
}
}
}You can access the Peruvian Law MCP server to search and retrieve Peruvian legislation with full-text search, article-level lookups, citation validation, and currency checks. This MCP server connects you to authoritative legal texts and provides fast, structured results for compliance research and policy work.
You can use the MCP server through either a remote HTTP endpoint or a local runtime. With the remote option, point your MCP client to the provided URL to perform searches, fetch specific articles, validate citations, and verify law currency. With the local option, install and run the MCP client locally to query the same data without relying on an external service.
Prerequisites: ensure Node.js is installed on your system. You can verify by running node -v and npm -v in your shell.
Option A: Run the MCP client locally via npx (no installation required for global setup)
npx @ansvar/peruvian-law-mcpOption B: Install locally and run from your project (requires npm)
npm install @ansvar/peruvian-law-mcp
npx @ansvar/peruvian-law-mcpThe MCP server sources official legal text from Diario Oficial El Peruano and supports discovery/indexing via a GraphQL endpoint and full text rendering through a web visor. Ensure you validate all critical provisions against primary sources and be aware that laws can change over time.
Performs comprehensive full-text search across legislation provisions using BM25 ranking to deliver relevant results.
Retrieves exact legal provisions at the article level for precise reference.
Checks citations to prevent hallucinated or incorrect references.
Verifies whether laws are still in force and up to date.