home / mcp / spanish law mcp server
Provides full-text access to Spanish legislation and regulatory data via an MCP server with local and remote endpoints.
Configuration
View docs{
"mcpServers": {
"ansvar-systems-spanish-law-mcp": {
"url": "https://spanish-law-mcp.vercel.app/api/mcp"
}
}
}You can access comprehensive Spanish legislation and related data through this MCP server, enabling full-text search, cross-references, and targeted provisions for data protection, cybersecurity, e-commerce, and company law. It provides both local and remote deployment options so you can integrate authoritative legal content into your applications and workflows.
You interact with the MCP server by connecting your client to either the public HTTP endpoint or the local stdio server. Use the HTTP endpoint for remote, hosted access and the stdio approach for a local, self-contained instance. The server exposes tools to retrieve provisions, perform full-text searches, list available laws, inspect law structures, cross-reference to EU directives, and query regulatory documents.
Prerequisites: ensure you have Node.js and npm installed on your machine.
Choose your deployment method and follow the steps.
# 1) Install the MCP package locally via stdio
# This runs the MCP using npx with the provided arguments
npx -y @ansvar/spanish-law-mcp
# 2) Alternatively, set up the public HTTP endpoint if you are hosting the MCP server
# You would deploy to a hosting platform that serves the MCP API at the given URL
# Example URL (provided when deployed): https://spanish-law-mcp.vercel.app/api/mcpIf you are using the stdio approach, the sample configuration shows how to run the MCP with npx and the package name. The public HTTP endpoint is available after deployment and will serve requests at the specified path.
The MCP server provides access to core Spanish legislation and related data, including data protection, cybersecurity, cybercrime, e-commerce, and company law. A larger, professional dataset adds decrees, court summaries, and cross-references.
Security practices, update cadence, and data provenance are maintained to ensure reliable access to official material. For any security concerns or vulnerabilities, follow the established disclosure process and contact points.
Retrieve a specific article or provision from a Spanish law or code.
Perform a full-text search across all Spanish legislation in Spanish.
List all available laws with metadata.
Get the table of contents or structural outline of a law or code.
Cross-reference Spanish law provisions with EU directives and regulations.
Search reales decretos and regulatory instruments (requires upgrade).
Retrieve AEPD decisions and guidance (requires upgrade).