home / mcp / planslurpen mcp server
Provides access to Planslurpen AI interpretations of Norwegian zoning plans via multiple endpoints and output formats.
Configuration
View docs{
"mcpServers": {
"2re1million-planslurpen_mcp": {
"url": "https://planslurpen.no/api"
}
}
}This MCP Server gives you programmatic access to Planslurpen’s AI interpretations of Norwegian zoning plans. You can fetch plan interpretations by municipality and plan ID, look up plans by property, download outputs in JSON or XML, and discover available fields and provisions to tailor your queries.
You interact with the Planslurpen MCP Server through an MCP client. Start by choosing a target and a format for the data you need. Use the available tools to retrieve plan interpretations, look up properties, and download outputs in your preferred format. For discoverable filters, first fetch the available fields and classifications for a given plan, then apply your selections to refine results.
Key workflows you’ll perform often include retrieving a plan by kommune number and plan ID, fetching a plan by its UUID, and downloading complete plan outputs in JSON or NPAD XML. You can also query for specific plan provisions and look up plans related to a property by its cadastral address.
Prerequisites: you need Python 3.10 or higher and pip.
Step-by-step commands to set up the MCP server locally:
pip install -r requirements.txt
```
```bash
chmod +x planslurpen_mcp.py
```
```bash
python planslurpen_mcp.pyYou can configure the MCP client (Claude Desktop) to run the Planslurpen MCP Server. Add a config entry that points to the local Python process.
{
"mcpServers": {
"planslurpen": {
"command": "python",
"args": ["/absolute/path/to/planslurpen_mcp/planslurpen_mcp.py"]
}
}
}Run the server directly to start handling MCP requests.
python planslurpen_mcp.pyKeep your environment secure and ensure that only trusted clients can access the MCP endpoints. If you expose the HTTP endpoint, configure network access controls and monitor usage to prevent abuse.
Retrieve a plan interpretation for a given kommune and plan, then download the full JSON output for later analysis.
This server supports multiple response formats (JSON and Markdown) for convenience. If a response is large, you can apply field filters or classifications to narrow the result set.
Retrieve AI-interpreted plan data by kommune number and plan ID, with optional version and response format.
Retrieve plan data by its UUID with optional response format.
Download complete plan output in JSON format with optional filtering by field codes and classifications.
Get the list of available fields and classifications for a plan to inform filtering and querying.
Download the plan provisions (planbestemmelser) as original legal text for reference.
Download plan output in NPAD XML format for integration with XML-based workflows.
Look up regulation plans for a specific property by cadastral address (gardsnummer, bruksnummer, festenummer, seksjonsnummer).