carbon-geo-mcp
carbon-geo-mcp is a read-only, local MCP server that lets an AI assistant run GIS audit checks on carbon-project files and get explicit, CRS-aware results instead of guesses.
Inspect vector layers for CRS/degrees, feature counts, invalid/missing/empty geometries, bounds, geometry types, fields, and null counts.
Measure total and per-stratum hectares in an equal-area CRS, dissolving overlaps and reporting overlap within and between strata.
Compare declared hectares with calculated hectares using a tolerance.
Check overlap between two polygon layers in hectares and percent, including largest overlapping pairs.
Validate plots against strata: outside plots, wrong declared stratum, overlapping strata, edge proximity, and duplicated coordinates.
Estimate annual forest loss inside an AOI from a local Hansen-style lossyear raster, with geodesic pixel areas and raster coverage.
Assess attribute completeness: filled/missing values and distinct counts per field.
Per the README, the full project also supports CRS planning before measurement, STAC imagery availability checks, and quick check maps.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@carbon-geo-mcp run declared vs calculated area check with 1% tolerance on project.gpkg"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
carbon-geo-mcp

An MCP server that lets an AI assistant run the GIS checks a carbon project auditor runs, on real files, instead of guessing numbers.
Ask a chatbot "how many hectares does this project have?" and it will answer with confidence without opening a single file. With this server connected, the assistant calls real geoprocessing (GeoPandas, Shapely, PyProj, Rasterio), gets the answer back as data and explains it, always saying which CRS it used and what was missing.
Question
Can an AI assistant be trusted with the routine spatial checks of a REDD+, ARR or IFM validation or verification (areas, overlaps, plots, forest loss) if it is given proper tools and the same rules an auditor follows?
Related MCP server: GIS MCP Server
Tools
Tool | What it checks | Typical audit question |
| CRS "reflection" before measuring: CRS, datum and UTM zones of every layer, suspicious coordinates, proposed CRS for areas and distances with the reason, UTM area distortion | "Are these layers where they should be, and in which CRS should I measure?" |
| CRS (and whether it is in degrees), geometry problems, fields, bounds | "Is this shapefile usable as delivered?" |
| Hectares per stratum in an equal-area CRS, dissolving overlaps, reporting overlap within and between strata | "How large is each stratum really?" |
| Declared vs. calculated hectares, with a tolerance | "Do the areas in the PD match the shapefile?" |
| Overlap between two polygon layers, in ha and %, with the largest pairs | "Does the project overlap a protected area or another project?" |
| Plots outside the strata, wrong declared stratum, overlapping strata, plots near the edge, duplicated coordinates | "Are the inventory plots where the report says they are?" |
| Loss per year from a local Hansen-style | "How much forest was lost inside the project in the monitoring period?" |
| Filled and missing values per attribute | "Which fields of the plot database are incomplete?" |
| Satellite scenes over the area and period in a STAC catalog (Sentinel-2, Landsat...): dates, cloud cover and real coverage of the area, before downloading anything | "Are there usable Sentinel-2 images for the monitoring period?" |
| A quick check map of up to 6 layers, returned as an image (nothing saved to disk) | "Show me the plots that fall outside the strata." |
Design rules
These come from audit practice and from the most common failure of GIS agents: a calculation that "succeeds" in the wrong CRS.
CRS first.
plan_crsmakes the agent reflect on the coordinate systems before measuring: it detects layers whose coordinates do not match their CRS (for example UTM values labelled as degrees), datum mismatches and layers spanning several UTM zones, and it estimates the UTM area distortion that can explain differences with declared areas. Nothing is measured in degrees. Areas use a local Lambert Azimuthal Equal Area projection centred on the data (equal-area anywhere on Earth); distances use the local UTM zone. A geographic CRS passed by the user is refused. Every result names the CRS used.No double counting. Polygons are dissolved before measuring, and overlaps are reported, not hidden.
Say what is missing. Every result includes missing, empty, invalid and repaired geometries.
forest_loss_in_areareports how much of the area the raster actually covers.Zero is an answer, errors are errors. "No overlap" comes back as
0 ha, and a missing file or field comes back as an explicit tool error the assistant must report.Read-only and local. The server runs over stdio, never writes files and can be restricted to specific folders with
CARBON_GEO_MCP_ROOTS. Onlycheck_raster_availabilityuses the network, and it sends the catalog nothing but the bounding box of the area and the dates.Verify before downloading. Imagery availability is checked against the real geometry of the area: a catalog can list scenes that cover only part of a project.
Show the work.
create_mapreturns the map as an image so the agent can show the layers behind a finding.
Results on the synthetic example

The sample data in data/sample is fictional: an 8,000 ha project placed in the Paraguayan Chaco, delivered in EPSG:4326 (degrees), with problems planted on purpose. The tools find all of them:
Check | Result |
Overlap between strata |
|
Declared vs. calculated |
|
Protected area | 150 ha of the project (1.9 %) inside the fictional reserve |
Plots | 2 plots outside the strata (300 m and 800 m), 1 plot in the wrong stratum, 1 plot 20 m from the boundary, 1 pair of duplicated coordinates |
Forest loss 2015-2024 | 289 ha inside the project (3.6 %), 100 % raster coverage |
CRS plan | All layers in EPSG:4326 and UTM zone 20; areas in equal-area, distances in EPSG:32720; UTM area distortion at the edge of the data -0.05 % |
One detail worth noting: the strata were drawn in UTM 20S as exactly 8,000 ha, but the equal-area measurement gives 8,004 ha. plan_crs predicts this before any measurement: the UTM area distortion at the edge of the data is -0.05 %. That is exactly why declared areas should state the CRS they were computed in.
Install
Requires Python 3.10 or later.
pip install git+https://github.com/albertolozada/carbon-geo-mcp.gitOr run it without installing, with uv:
uvx --from git+https://github.com/albertolozada/carbon-geo-mcp.git carbon-geo-mcpGuía detallada en español: docs/USAGE_es.md (instalación en Windows, Claude Desktop, Claude Code CLI, MCP Inspector y problemas frecuentes).
Connect it to an AI assistant
The same configuration works in Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and other MCP hosts. On Windows:
{
"mcpServers": {
"carbon-geo-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/albertolozada/carbon-geo-mcp.git", "carbon-geo-mcp"],
"env": { "CARBON_GEO_MCP_ROOTS": "D:\\GIS\\projects" }
}
}
}On macOS or Linux use a path such as /home/you/gis/projects. Several folders can be listed, separated by ; on Windows and : elsewhere. Restart the host completely after editing the configuration.
Example prompts
Check the layers in D:\GIS\projects\demo: run layer_info on each one and tell me
which are in a geographic CRS and whether any geometry is invalid.
The PD declares 8,000 ha in total, 4,800 ha of dense_forest and 2,800 ha of
open_forest. Compare it with project_strata.gpkg (field "stratum") using a 1 %
tolerance and explain any difference.
Using plots.gpkg and project_strata.gpkg, list plots outside the strata, plots
whose declared stratum is wrong and plots closer than 50 m to the boundary.
How much forest was lost inside the project between 2015 and 2024 according to
lossyear_sample.tif? Say which CRS and pixel-area method were used.
Before planning the NDVI analysis, check which Sentinel-2 dates between
2024-06-01 and 2024-09-30 fully cover project_strata.gpkg with less than 20 %
cloud, and draw a map of the strata with the plots on top.Reproduce it
In your browser: click the "Open in Colab" badge. The notebook installs the server, calls every tool through a real MCP client, and then confirms the key numbers with an independent GeoPandas script (the agent explores, the script confirms).
On your computer:
git clone https://github.com/albertolozada/carbon-geo-mcp.git
cd carbon-geo-mcp
pip install -e ".[dev]"
python scripts/make_sample_data.py # regenerates data/sample
pytest # tests with known answersRelated work
This server follows the approach described by Joe T. Santhanavanich in MCP for GIS: From Chatbots to Spatial Agents (2026): give the agent real tools instead of letting it guess, check the CRS before any measurement, return explicit errors instead of empty results, report data completeness, and build a small server of your own when your data and questions are specific.
carbon-geo-mcp is meant to be used alongside general-purpose geospatial servers, not instead of them:
gis-mcp: about 90 general GIS tools (Shapely, GeoPandas, PyProj, Rasterio, PySAL), including spatial statistics and data downloaders.
stac-mcp and earthdata-mcp: satellite and Earth data discovery.
qgis-mcp: control of a QGIS project.
gdal-mcp: raster and vector I/O, with a "reflection" step on CRS choices that inspired
plan_crs.geo-mcp-servers: Sparkgeo's curated list of geospatial MCP servers.
What carbon-geo-mcp adds is the audit logic of carbon projects: declared vs. calculated areas, strata overlaps, plot checks, forest loss by year with raster coverage, and a CRS plan that explains differences with project documents.
Changelog
See CHANGELOG.md.
Limitations
Forest loss uses pixels whose centre falls inside the area, the usual convention; small or narrow areas can differ slightly from an area-weighted count.
forest_loss_in_areareads a local raster. Download the Hansen GFClossyeartile for your area first (seedata/README.md).The server returns short summaries, not geometries, but those summaries (and the maps from
create_map) do reach the AI model you connect. Check your confidentiality obligations before using it on client data.check_raster_availabilityuses the scene-level cloud cover reported by the catalog, not the cloud cover over the area itself.The tools cover the checks I use most often and are not a substitute for the auditor's judgement.
Repository structure
├── src/carbon_geo_mcp/ the server (server.py), the checks (geo.py), maps (maps.py) and imagery search (stac.py)
├── tests/ tests with known answers, run on every push
├── data/sample/ synthetic, fictional sample data
├── docs/ Spanish usage guide
├── notebooks/ demo notebook (Colab-ready)
├── scripts/ sample data, preview map and banner generators
└── outputs/maps/ figures used in this READMEAuthor
Alberto Lozada Silva, forestry engineer and carbon project auditor. Portfolio: albertolozada.github.io · LinkedIn
Servidor MCP que permite a un asistente de IA ejecutar, sobre archivos reales, los controles SIG que hace un auditor de proyectos de carbono: áreas por estrato en un CRS de igual área, comparación de áreas declaradas y calculadas, solapamientos, ubicación de parcelas de monitoreo, pérdida de bosque por año, completitud de atributos, un plan de CRS previo a cualquier medición, la disponibilidad de imágenes satelitales y mapas de comprobación. Cada resultado indica el CRS utilizado y qué datos faltaban. El servidor es local y de solo lectura, y puede limitarse a carpetas concretas. Los datos de ejemplo son ficticios.
Instalación y uso paso a paso: docs/USAGE_es.md.
Licence
Code under the MIT License. Sample data is synthetic and free to reuse.
Available Tools
7 toolsarea_by_stratumARead-onlyIdempotent
Area in hectares of a polygon layer, in total and per stratum, measured in an equal-area CRS. Overlapping polygons are dissolved so ground is never counted twice, and the overlap inside each stratum and between strata is reported.
Args: path: Polygon layer (project area, strata, eligible area...). stratum_field: Attribute holding the stratum or class (optional). layer: Layer name inside a multi-layer file (optional). crs: Projected CRS to measure in, e.g. "EPSG:32720". If omitted, a local Lambert Azimuthal Equal Area projection centred on the data is used.
Inputs: path (required), crs, layer, stratum_field. Returns: object
check_overlapARead-onlyIdempotent
Overlap between two polygon layers (e.g. project area vs. protected areas, other registered projects, leakage belt or reference region): hectares, percentage of each layer and the largest overlapping feature pairs. Reports 0 ha explicitly.
Args: path_a: First polygon layer (usually the project area). path_b: Second polygon layer. id_field_a: Attribute used to name features of layer A (optional). id_field_b: Attribute used to name features of layer B (optional). layer_a: Layer name inside a multi-layer file A (optional). layer_b: Layer name inside a multi-layer file B (optional). crs: Projected CRS to measure in (optional, equal-area by default). max_pairs: Maximum number of overlapping pairs to list (default 20).
Inputs: path_a (required), path_b (required), crs, layer_a, +4 more. Returns: object
compare_declared_areaARead-onlyIdempotent
Compare areas declared in a project document (PD, monitoring report) with the areas calculated from the layer, and flag differences above a tolerance.
Args: path: Polygon layer with the project area or strata. declared_ha: Declared hectares, keyed by stratum value and/or "total", e.g. {"total": 8000, "dense_forest": 5200}. stratum_field: Attribute holding the stratum (needed for per-stratum keys). tolerance_pct: Accepted absolute difference in percent (default 1.0). layer: Layer name inside a multi-layer file (optional). crs: Projected CRS to measure in (optional, equal-area by default).
Inputs: path (required), declared_ha (required), crs, layer, +2 more. Returns: object
data_completenessARead-onlyIdempotent
Completeness of the attributes of a layer: filled and missing values per field (blank text counts as missing) and number of distinct values.
Args: path: Vector layer to inspect. fields: Fields to check (optional, all fields by default). layer: Layer name inside a multi-layer file (optional).
Inputs: path (required), layer, fields. Returns: object
forest_loss_in_areaARead-onlyIdempotent
Forest loss per year inside an area of interest from a local "lossyear" raster (e.g. a Hansen Global Forest Change tile, where 1 = 2001 ... 24 = 2024). Pixel areas are geodesic for rasters in degrees. Also reports how much of the area the raster actually covers, so a partial tile is never read as "no loss".
Args: aoi_path: Polygon layer with the area of interest (project area, leakage belt...). lossyear_raster: Path to the GeoTIFF with loss years. aoi_layer: Layer name inside a multi-layer AOI file (optional). start_year: First year to include, e.g. 2015 (optional). end_year: Last year to include, e.g. 2024 (optional). base_year: Year added to the raster value (2000 for Hansen GFC).
Inputs: aoi_path (required), lossyear_raster (required), end_year, aoi_layer, +2 more. Returns: object
layer_infoARead-onlyIdempotent
Describe a vector layer before any analysis: CRS (and whether it is in degrees), feature count, missing/empty/invalid geometries, geometry types, bounds and fields with their null counts. Call this first on every layer.
Args: path: Path to a vector file (GeoPackage, Shapefile, GeoJSON, KML, FlatGeobuf...). layer: Layer name inside a multi-layer file such as a GeoPackage (optional).
Inputs: path (required), layer. Returns: object
plots_in_strataARead-onlyIdempotent
Check monitoring or inventory plots against the strata: plots outside every stratum (with distance), plots whose declared stratum differs from the stratum they fall in, plots on overlapping strata, plots close to the boundary and duplicated coordinates. Distances are measured in the local UTM zone unless a CRS is given.
Args: plots_path: Point layer with plot centres. strata_path: Polygon layer with the strata. stratum_field: Stratum attribute in the strata layer. plot_stratum_field: Stratum declared for each plot in the plots layer (optional). plot_id_field: Plot identifier attribute (optional). edge_distance_m: Flag plots closer than this to the strata boundary (0 = off). plots_layer: Layer name inside the plots file (optional). strata_layer: Layer name inside the strata file (optional). crs: Projected CRS for distances (optional).
Inputs: plots_path (required), strata_path (required), stratum_field (required), crs, +5 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly separate analytical purpose (inspection, area measurement, declared-area comparison, cross-layer overlap, plot QA, raster forest loss, attribute completeness). The only real overlap is between layer_info and data_completeness, since layer_info already reports per-field null counts while data_completeness goes deeper on blanks/distinct values; the descriptions make the distinction (structural describe vs. attribute QA) reasonably clear.
All names are snake_case and read predictably. The stem style is mixed—verb-led (compare_declared_area, check_overlap) versus noun/domain-led (layer_info, plots_in_strata, forest_loss_in_area, data_completeness)—but each name accurately telegraphs its operation.
Seven tools is well-scoped for a geo-validation server; each one covers a distinct step in carbon-project spatial verification (inspect, measure, compare, cross-check, plot QA, forest loss, attribute QA). No tool appears redundant or filler.
The surface covers the core QA lifecycle for project-area data: layer health, equal-area measurement, declared-vs-actual reconciliation, overlap detection, plot placement checks, forest-loss quantification and attribute completeness. Minor gaps exist—no reprojection/export or generic raster statistics beyond lossyear, and no written report output—but agents can work around these.
Maintenance
Related MCP Connectors
Screen farm plots for EUDR deforestation risk with the official EU JRC maps.
Pay-per-call GIS tools for AI agents: coordinates, measurement, reprojection, elevation, terrain.
GIS tools: convert KML/SHP/DWG/GeoJSON, elevation, contours, PLSS, drone GCP, land & solar reports
Sourced carbon emission factors + audit-traced calculations an AI can cite.
Related MCP Servers
AlicenseAqualityBmaintenanceEnables AI agents to perform professional-grade geoprocessing tasks such as buffers, overlays, reprojections, and terrain analysis with deterministic tools and verifiable provenance.2965 PyPI2AGPL 3.0- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform geospatial analysis, spatial data processing, vector and raster operations, coordinate transformations, spatial statistics, mapping, and access to climate, satellite, and other geospatial data through MCP-compatible clients.MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to run pre-ingest QA on utility power-grid GIS exports: score readiness, list issues with coordinates, reconcile registers against survey/LiDAR detections, map codes to library types, and draft a data request. It exposes the same checks, reconciliation and reporting operations as callable tools so a deployment engineer can work conversationally in any MCP client.MIT
- AlicenseAqualityCmaintenanceGives AI assistants read-only, key-free access to Sentinel-2 NDVI time series, ESA WorldCover land-cover shares, and Copernicus 30 m elevation and slope for a point or small area, returning the scene IDs, units, and caveats behind every number. Built-in sanity checks and a verify tool recompute key values through an independent path so the assistant can flag cloudy, low-confidence, or mismatched results instead of guessing.6MIT