P-Srikanthan/geeflow
MCP server that lets Claude run Google Earth Engine
253beaf73b2ageeflow0.1.0 in packages/geeflow/pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 12 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- Supply Chain: the dependency files state no exact versions the scanner could check, so it has no number
Top risks in plain words
- HIGHTool
execute_codeexecutes code by design: an agent steered by prompt injection can use it that way. - HIGHTools
gee_init,lulc_collector_script,lulc_validate,sample_polygonsread or write any file path by design: an agent steered by prompt injection can use them that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Run it in a container or a virtual machine
execute_codecan start programs or run code they are given. Keep it away from your home folder, keys and other projects. - Give it only the folder it needs
gee_init,lulc_collector_script,lulc_validate,sample_polygonscan read or write any file path. Mount a single project folder, read-only where you can. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
execute_code,gee_init,lulc_collector_scriptand 2 more, switch them off. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 18 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
catalog_search, dataset_info, gee_init, lulc_analyze, lulc_check, lulc_classify and 4 moreNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files10 tools · catalog_search, dataset_info, gee_init +7
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (18: 18 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
execute_codetool Run Python code with the Earth Engine API for anything the typed tools don't cover.Executes code
Run Python code with the Earth Engine API for anything the typed tools don't cover.
The escape hatch: full `ee` access for arbitrary datasets and analyses (MODIS,
climate data, custom reducers...). Prefer the typed tools when one fits — they are
more reliable and their workflows are reproducible.
The code runs locally in the server process with YOUR Earth Engine credentials.
Pre-imported: `ee` (initialized via gee_init), `geeflow`, `json`. To return data,
assign to a variable named `result` and/or print(); keep .getInfo() payloads small.
Example:
img = ee.ImageCollection("MODIS/061/MOD11A2").filterDate("2023-01-01", "2023-02-01").mean()
result = img.select("LST_Day_1km").reduceRegion(
ee.Reducer.mean(), ee.Geometry.Point([37.0, -0.2]).buffer(5000), 1000
).getInfo()gee_inittool Initialize Earth Engine. Call this first in every session.Filesoutside textReads/writes files
Initialize Earth Engine. Call this first in every session.
Args:
project_id: Google Cloud project with Earth Engine enabled.
service_account_key: path to a service-account key JSON (optional; otherwise
cached user credentials from `earthengine authenticate` are used).lulc_collector_scripttool Generate the GEE Code Editor training-polygon collector script for a year.Filesoutside textReads/writes files
Generate the GEE Code Editor training-polygon collector script for a year.
Paste the returned JavaScript into https://code.earthengine.google.com/ to draw
and export training polygons bound to the project's AOI, sensor and classes.lulc_validatetool Validate a lulc.yaml project config and return the resolved run plan.Filesoutside textReads/writes files
Validate a lulc.yaml project config and return the resolved run plan.
Args:
config_path: path to the project's lulc.yaml.sample_polygonstool Auto-generate labeled training polygons from a categorical land-cover product.Filesoutside textReads/writes files
Auto-generate labeled training polygons from a categorical land-cover product.
Samples homogeneous patches of the dataset (default: ESA WorldCover 10 m) inside
the region and returns small square polygons per class, ready to use as classifier
training data. Output class codes are the positions in class_values (0, 1, 2...).
Example: WorldCover values [10, 40, 80, 50] with labels
["Forest", "Cropland", "Water", "Built-up"] -> classes 0..3.
Args:
class_values: pixel values in the source dataset to sample.
lat, lon, radius_m / aoi_geojson: the region (same as build_composite).
dataset_id: categorical GEE dataset (image collection) to sample from.
band: its categorical band name.
class_labels: readable names parallel to class_values.
points_per_class: polygons wanted per class.
polygon_size_m: side length of the generated squares.
save_path: optionally write the GeoJSON to this file path.build_compositetool Build a cloud-masked, harmonized composite for a year and month window.
Build a cloud-masked, harmonized composite for a year and month window.
The sensor is chosen automatically from the year (Landsat MSS era through 1983 at
60 m, TM/ETM+/OLI through 2013 at 30 m, Sentinel-2 after at 10 m), scenes are
cloud-masked, bands renamed to standard names (Blue/Green/Red/NIR/SWIR1/SWIR2...),
with automatic fallbacks (backup sensor, wider date window) when scenes are scarce.
A month window with start > end (e.g. 11 to 2) wraps into the next year.
Returns a composite_id for use with compute_indices / thumbnail / region_stats /
export_composite, plus the sensor, bands and native scale.catalog_searchtool Search the Earth Engine data catalog by keywords.Filesoutside text
Search the Earth Engine data catalog by keywords.
Args:
query: space-separated terms matched against dataset id/title/tags/provider,
e.g. "sentinel-2 surface reflectance" or "land cover 10m".
limit: maximum results.compute_indicestool Add spectral index bands to a composite.
Add spectral index bands to a composite.
Args:
composite_id: from build_composite.
indices: from NDVI, SAVI, EVI, NDMI, NBR, BlueGreenNIR, GreenRed, NDRE, CIre,
NDWI, NDBI. Indices whose required bands are missing in this sensor era are
skipped and reported.dataset_infotool Catalog metadata for an exact dataset id (e.g. "COPERNICUS/S2_SR_HARMONIZED").Filesoutside text
Catalog metadata for an exact dataset id (e.g. "COPERNICUS/S2_SR_HARMONIZED").
export_compositetool Export a composite to Google Drive (target="drive") or an EE asset (target="asset").
Export a composite to Google Drive (target="drive") or an EE asset (target="asset").
Returns the task id; check progress with export_tasks.export_taskstool Recent Earth Engine export tasks with their states (READY/RUNNING/COMPLETED/FAILED).
Recent Earth Engine export tasks with their states (READY/RUNNING/COMPLETED/FAILED).
lulc_analyzetool Correlation/VIF/importance analysis for a year. Reports only — never prunes.Filesoutside text
Correlation/VIF/importance analysis for a year. Reports only — never prunes.
Writes the correlation heatmap PNG and VIF/importance CSVs to the project's
output_dir and returns their paths plus the flagged correlated pairs.lulc_checktool Scene availability per configured year/season/sensor for a lulc.yaml project.Filesoutside text
Scene availability per configured year/season/sensor for a lulc.yaml project.
lulc_classifytool Full classification for a year: polygon-grouped CV over RF/GBT/SVM, McNemarFilesoutside text
Full classification for a year: polygon-grouped CV over RF/GBT/SVM, McNemar
test, native GEE retrain of the best model, majority filter, optional export.
Returns per-model accuracies, the winner, and the JSON report path.lulc_feature_stacktool Build the year's full candidate feature stack and return its band names.Filesoutside text
Build the year's full candidate feature stack and return its band names.
region_statstool Per-band statistics over the composite's region (reducer: mean, median, minMax, stdDev).
Per-band statistics over the composite's region (reducer: mean, median, minMax, stdDev).
scene_availabilitytool Count available scenes per sensor over a region and date range.
Count available scenes per sensor over a region and date range.
Args:
start_date / end_date: ISO dates (YYYY-MM-DD).
lat, lon, radius_m: circular region (radius defaults to 10 km) — or pass
aoi_geojson instead.
aoi_geojson: GeoJSON string (Feature/FeatureCollection/geometry).
sensors: sensor keys (see geeflow COLLECTIONS); default = the era-appropriate
sensors for the start year (e.g. sentinel2_sr + landsat9_sr for recent dates).thumbnailtool A PNG thumbnail URL for visual inspection.
A PNG thumbnail URL for visual inspection.
Defaults to true color (Red/Green/Blue). For a single-band layer (e.g. ["NDVI"])
pass min/max for the stretch and optionally a palette of hex colors.Text the model reads (18)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
lulc_analyze tool
Correlation/VIF/importance analysis for a year. Reports only — never prunes.
Writes the correlation heatmap PNG and VIF/importance CSVs to the project's
output_dir and returns their paths plus the flagged correlated pairs.gee_init tool
Initialize Earth Engine. Call this first in every session.
Args:
project_id: Google Cloud project with Earth Engine enabled.
service_account_key: path to a service-account key JSON (optional; otherwise
cached user credentials from `earthengine authenticate` are used).catalog_search tool
Search the Earth Engine data catalog by keywords.
Args:
query: space-separated terms matched against dataset id/title/tags/provider,
e.g. "sentinel-2 surface reflectance" or "land cover 10m".
limit: maximum results.dataset_info tool
Catalog metadata for an exact dataset id (e.g. "COPERNICUS/S2_SR_HARMONIZED").
scene_availability tool
Count available scenes per sensor over a region and date range.
Args:
start_date / end_date: ISO dates (YYYY-MM-DD).
lat, lon, radius_m: circular region (radius defaults to 10 km) — or pass
aoi_geojson instead.
aoi_geojson: GeoJSON string (Feature/FeatureCollection/geometry).
sensors: sensor keys (see geeflow COLLECTIONS); default = the era-appropriate
sensors for the start year (e.g. sentinel2_sr + landsat9_sr for recent dates).build_composite tool
Build a cloud-masked, harmonized composite for a year and month window.
The sensor is chosen automatically from the year (Landsat MSS era through 1983 at
60 m, TM/ETM+/OLI through 2013 at 30 m, Sentinel-2 after at 10 m), scenes are
cloud-masked, bands renamed to standard names (Blue/Green/Red/NIR/SWIR1/SWIR2...),
with automatic fallbacks (backup sensor, wider date window) when scenes are scarce.
A month window with start > end (e.g. 11 to 2) wraps into the next year.
Returns a composite_id for use with compute_indices / thumbnail / region_stats /
export_composite, plus the sensor, bands and native scale.compute_indices tool
Add spectral index bands to a composite.
Args:
composite_id: from build_composite.
indices: from NDVI, SAVI, EVI, NDMI, NBR, BlueGreenNIR, GreenRed, NDRE, CIre,
NDWI, NDBI. Indices whose required bands are missing in this sensor era are
skipped and reported.thumbnail tool
A PNG thumbnail URL for visual inspection.
Defaults to true color (Red/Green/Blue). For a single-band layer (e.g. ["NDVI"])
pass min/max for the stretch and optionally a palette of hex colors.region_stats tool
Per-band statistics over the composite's region (reducer: mean, median, minMax, stdDev).
export_composite tool
Export a composite to Google Drive (target="drive") or an EE asset (target="asset").
Returns the task id; check progress with export_tasks.export_tasks tool
Recent Earth Engine export tasks with their states (READY/RUNNING/COMPLETED/FAILED).
sample_polygons tool
Auto-generate labeled training polygons from a categorical land-cover product.
Samples homogeneous patches of the dataset (default: ESA WorldCover 10 m) inside
the region and returns small square polygons per class, ready to use as classifier
training data. Output class codes are the positions in class_values (0, 1, 2...).
Example: WorldCover values [10, 40, 80, 50] with labels
["Forest", "Cropland", "Water", "Built-up"] -> classes 0..3.
Args:
class_values: pixel values in the source dataset to sample.
lat, lon, radius_m / aoi_geojson: the region (same as build_composite).
dataset_id: categorical GEE dataset (image collection) to sample from.
band: its categorical band name.
class_labels: readable names parallel to class_values.
points_per_class: polygons wanted per class.
polygon_size_m: side length of the generated squares.
save_path: optionally write the GeoJSON to this file path.execute_code tool
Run Python code with the Earth Engine API for anything the typed tools don't cover.
The escape hatch: full `ee` access for arbitrary datasets and analyses (MODIS,
climate data, custom reducers...). Prefer the typed tools when one fits — they are
more reliable and their workflows are reproducible.
The code runs locally in the server process with YOUR Earth Engine credentials.
Pre-imported: `ee` (initialized via gee_init), `geeflow`, `json`. To return data,
assign to a variable named `result` and/or print(); keep .getInfo() payloads small.
Example:
img = ee.ImageCollection("MODIS/061/MOD11A2").filterDate("2023-01-01", "2023-02-01").mean()
result = img.select("LST_Day_1km").reduceRegion(
ee.Reducer.mean(), ee.Geometry.Point([37.0, -0.2]).buffer(5000), 1000
).getInfo()lulc_validate tool
Validate a lulc.yaml project config and return the resolved run plan.
Args:
config_path: path to the project's lulc.yaml.lulc_check tool
Scene availability per configured year/season/sensor for a lulc.yaml project.
lulc_feature_stack tool
Build the year's full candidate feature stack and return its band names.
lulc_classify tool
Full classification for a year: polygon-grouped CV over RF/GBT/SVM, McNemar
test, native GEE retrain of the best model, majority filter, optional export.
Returns per-model accuracies, the winner, and the JSON report path.lulc_collector_script tool
Generate the GEE Code Editor training-polygon collector script for a year.
Paste the returned JavaScript into https://code.earthengine.google.com/ to draw
and export training polygons bound to the project's AOI, sensor and classes.What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied code HIGH1 finding in execute_code
- Reads or writes any file path HIGH1 finding in lulc_collector_script; 3 more to review
- Requests any addressNo tool sends a request to an address the caller supplies — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 18 capabilities; 18 more call code the scanner could not follow, where it may happen
- Tools that touch files10 of 18 capabilities touch files; 8 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 18 capabilities; 18 more call code the scanner could not follow, where it may happen
Where the code is: 18 handlers in 1 file at commit 253beaf73b2a
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests2 manifests: packages/geeflow/pyproject.toml, packages/lulc-engine/pyproject.toml
- Lockfiles checked against OSVNothing could be resolved to exact versions; 2 not resolved: packages/geeflow/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; packages/lulc-engine/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- MCP SDK versionmcp >=1.2
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 18 capabilities; 18 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=1.2 |
| Servers in the code | 1 (geeflow) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-07-20 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | MIT |
| Created | 2026-07-19 |
| Topics | claude earth-engine geospatial gis mcp python remote-sensing |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.