eo-processor-mcp
An MCP (Model Context Protocol) server for Earth Observation processing, powered by eo-processor.
Similar to stac-mcp for STAC catalog operations, this server exposes eo-processor's high-performance Rust-accelerated EO computation functions as MCP tools that AI agents can invoke.
Features
- 15 MCP tools covering spectral indices, change detection, temporal statistics, masking, morphology, distances, trend analysis, classification, texture features, zonal statistics, and more
- Rust-accelerated computation via eo-processor's PyO3 bindings (GIL-released, multi-core parallel)
- stdio and HTTP transport support
- Observability built in (structured logging, metrics, correlation IDs, latency histograms)
- Prompts to guide AI agents in using the tools effectively
Tools
| Tool | Description |
|---|---|
compute_spectral_index |
Compute spectral indices (NDVI, NDWI, EVI, SAVI, etc.) from band .npy files |
compute_change_index |
Change detection (delta_ndvi, delta_nbr, dnbr, rbr) from pre/post imagery |
temporal_statistics |
Median, mean, std, sum along the time axis |
temporal_composite |
Weighted temporal composite of 4D arrays |
moving_average |
Moving average with optional stride/downsampling |
apply_mask |
Unified masking (by values, range, SCL, NaN replacement) |
morphological_operation |
Binary dilation, erosion, opening, closing |
compute_distances |
Pairwise distances (euclidean, manhattan, chebyshev, minkowski) |
analyze_trends |
Linear regression and trend analysis with break detection |
bfast_monitor |
BFAST Monitor change detection on time series |
classify |
Random Forest train/predict, complex multi-band classification |
texture_features |
Haralick/GLCM texture features |
zonal_statistics |
Zonal statistics (count, sum, mean, min, max, std per zone) |
pixelwise_transform |
Linear transform with optional clamping |
list_capabilities |
List all available indices, operations, and tools |
Installation
pip install -e .
# or with uv
uv pip install -e .
Usage
stdio (default)
eo-processor-mcp
# or
python -m eo_processor_mcp
HTTP/SSE
EO_PROCESSOR_MCP_TRANSPORT=http python -m eo_processor_mcp
MCP Client Configuration
{
"eo-processor": {
"command": "uvx",
"args": ["--from", "git+https://github.com/BnJam/eo-processor-mcp", "eo-processor-mcp"],
"transport": "stdio"
}
}
Data Format
All tools accept NumPy .npy file paths as input and write results to .npy files. Tool responses include:
output_path: Path to the result .npy filestats: Summary statistics (shape, dtype, min, max, mean, std, NaN count)
Environment Variables
| Variable | Default | Purpose |
|---|---|---|
EO_PROCESSOR_MCP_TRANSPORT |
stdio |
Transport mode (stdio, http, streamable-http, sse) |
EO_PROCESSOR_MCP_HOST |
127.0.0.1 |
HTTP host |
EO_PROCESSOR_MCP_PORT |
8000 |
HTTP port |
EO_PROCESSOR_MCP_LOG_LEVEL |
WARNING |
Logging level |
EO_PROCESSOR_MCP_LOG_FORMAT |
text |
Log format (text or json) |
EO_PROCESSOR_MCP_ENABLE_METRICS |
true |
Enable in-process metrics |
EO_PROCESSOR_MCP_ENABLE_TRACE |
false |
Enable trace span logging |
Development
make install-dev # Install with dev dependencies
make test # Run tests
make lint # Run ruff
make format # Auto-format
make coverage # Coverage report
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eo_processor_mcp-0.1.1.tar.gz.
File metadata
- Download URL: eo_processor_mcp-0.1.1.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eb9eede0b94d9dce3e22d7cbcf3c8157da83eba42c3144e1735da81cb5636c2
|
|
| MD5 |
b56a995736f9aafdb526006412426d15
|
|
| BLAKE2b-256 |
f16afe91ff8489f3e70304952d6c3e34ba333e524f3959bd27654545ca85bb5c
|
Provenance
The following attestation bundles were made for eo_processor_mcp-0.1.1.tar.gz:
Publisher:
container.yml on BnJam/eo-processor-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eo_processor_mcp-0.1.1.tar.gz -
Subject digest:
7eb9eede0b94d9dce3e22d7cbcf3c8157da83eba42c3144e1735da81cb5636c2 - Sigstore transparency entry: 2386437565
- Sigstore integration time:
-
Permalink:
BnJam/eo-processor-mcp@3879dfbc3f24eb5ce6958c7791010ab4dd0f149b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BnJam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
container.yml@3879dfbc3f24eb5ce6958c7791010ab4dd0f149b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file eo_processor_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: eo_processor_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffc7e8cefa4acbbd9b5520cc72d9f92f135e12e1a7ac3c768824db7280be987f
|
|
| MD5 |
b39a7891f858ecdbc26fbe0b10874e2d
|
|
| BLAKE2b-256 |
7152d3b136f161362fd3727dfe66ce82a02718e34662c0296569836a0a0d49c5
|
Provenance
The following attestation bundles were made for eo_processor_mcp-0.1.1-py3-none-any.whl:
Publisher:
container.yml on BnJam/eo-processor-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eo_processor_mcp-0.1.1-py3-none-any.whl -
Subject digest:
ffc7e8cefa4acbbd9b5520cc72d9f92f135e12e1a7ac3c768824db7280be987f - Sigstore transparency entry: 2386437619
- Sigstore integration time:
-
Permalink:
BnJam/eo-processor-mcp@3879dfbc3f24eb5ce6958c7791010ab4dd0f149b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BnJam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
container.yml@3879dfbc3f24eb5ce6958c7791010ab4dd0f149b -
Trigger Event:
workflow_dispatch
-
Statement type: