zonerMCP
Verified Safeby melbamorph
Overview
This server provides a hardened Model Context Protocol (MCP) interface for accessing Lebanon, NH GIS data (zoning, addresses, parcels, environmental overlays) to AI agents, designed for platforms like OpenAI Agent Builder.
Installation
npm startEnvironment Variables
- ARCGIS_BASE_URL
- ZONING_LAYER
- ADDRESS_LAYER
- PORT
- REQUIRE_AUTH
- MCP_BEARER_TOKEN
- ALLOW_STATELESS
- RATE_LIMIT_WINDOW_MS
- RATE_LIMIT_MAX_REQUESTS
- RATE_LIMIT_AUTH_MULTIPLIER
- CACHE_TTL_SECONDS
- CACHE_MAX_ENTRIES
- MAX_FIELDS
- CORS_ALLOW_ORIGINS
Security Notes
The server demonstrates strong security hardening, explicitly noted in its `replit.md` and implemented in the code. Key measures include: an explicit layer registry and field policy (allowlist approach, blocked fields, summary/full profiles), structured query modes to prevent freeform SQL injection, comprehensive input validation (e.g., coordinate ranges, bounding box size limits, object ID counts, string lengths), record count caps on query results, bearer token authentication (configurable), robust rate limiting with IP-based and authenticated token buckets, a response cache, optional session enforcement (though stateless mode is default, it's configurable), validation for geometry inclusion, payload size limits, and configurable CORS origins. External API calls (ArcGIS) are made with a timeout to prevent long-running requests. The `ARCGIS_BASE_URL` is correctly configured as a required secret and checked at startup. No 'eval' or other obviously dangerous patterns were found.
Similar Servers
gis-mcp
A Model Context Protocol (MCP) server that provides AI agents and LLMs with comprehensive GIS capabilities, enabling geospatial analysis, data gathering, and transformations through natural language.
boilerplate-mcp-server
Provides a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript to connect AI assistants with external APIs and data sources, exemplified by an IP geolocation tool.
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
mcp-go-starter
A feature-complete Model Context Protocol (MCP) server template in Go demonstrating tools, resources, and prompts for AI agent interaction.