gdal-mcp
by JordanGunn·★ 70·Score 48
GDAL MCP provides AI agents with geospatial analysis capabilities through reflection middleware that justifies methodological choices.
Overview
GDAL MCP is a comprehensive Model Context Protocol server that enables AI agents to perform sophisticated geospatial analysis using Python libraries like Rasterio, GeoPandas, and PyProj. Its unique reflection middleware system requires AI to justify methodological decisions before execution, creating a conversation about the 'why' rather than just executing the 'what'. This approach prevents silent failures in geospatial operations, documents methodology for reproducibility, and maintains a 75% cache hit rate by reusing justifications across operations. The server provides 13 production-ready tools for both raster and vector data operations with comprehensive documentation.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose GDAL MCP when working with geospatial data requires documented methodology for reproducible science, or when AI agents need to understand spatial operations beyond just executing them.
When NOT to choose this
Don't choose GDAL MCP for simple geospatial tasks where methodology justification adds unnecessary overhead, or if you need write access capabilities (currently read-only).
Tools this server exposes
12 tools extracted from the READMEraster_infoInspect metadata of raster files (CRS, resolution, bands, nodata)
raster_convertConvert raster formats with compression and overviews
raster_reprojectTransform raster to different CRS with reflection
raster_statsCalculate statistics and generate histograms for raster data
raster_queryPerform spatial window queries on raster data
vector_infoInspect metadata of vector files (CRS, geometry, attributes)
vector_reprojectTransform vector to different CRS with reflection
vector_convertConvert vector between different formats (SHP, GPKG, GeoJSON)
vector_clipSubset vector data spatially
vector_bufferCreate buffer zones around vector geometries
vector_simplifySimplify geometries while preserving topology
vector_queryPerform spatial/attribute queries on vector data
Comparable tools
Installation
Installation
Via uvx (Recommended)
# Run directly from PyPI
uvx --from gdal-mcp gdal --transport stdioClaude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"gdal-mcp": {
"command": "uvx",
"args": ["--from", "gdal-mcp", "gdal", "--transport", "stdio"],
"env": {
"GDAL_MCP_WORKSPACES": "/path/to/your/geospatial/data"
}
}
}
}FAQ
- What makes GDAL MCP different from other geospatial tools?
- GDAL MCP's unique reflection middleware requires AI to justify methodological choices before execution, preventing silent failures and creating documented methodology for reproducible geospatial science.
- How does the reflection caching system work?
- The system caches epistemic reasoning about methodological decisions, achieving 75%+ hit rates when similar operations are repeated later. This knowledge persists across different data types (raster/vector) for efficiency.
Compare gdal-mcp with
Last updated · Auto-generated from public README + GitHub signals.