- Home
- MCP servers
- Spanish Law
Spanish Law
- typescript
0
GitHub Stars
typescript
Language
3 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
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.
How to use
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.
How to install
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/mcp
Additional setup notes
If 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.
Data sources and coverage
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 and updates
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.
Available tools
get_provision
Retrieve a specific article or provision from a Spanish law or code.
search_legislation
Perform a full-text search across all Spanish legislation in Spanish.
list_laws
List all available laws with metadata.
get_law_structure
Get the table of contents or structural outline of a law or code.
get_provision_eu_basis
Cross-reference Spanish law provisions with EU directives and regulations.
search_reales_decretos
Search reales decretos and regulatory instruments (requires upgrade).
get_aepd_guidance
Retrieve AEPD decisions and guidance (requires upgrade).