EcoScope
EcoScope is a local-first ecological data workbench exposed as a standard Model Context Protocol server. It lets Codex, Claude, and other MCP agents discover, materialize, query, visualize, select, and cite scientific data without putting credentials, private paths, or millions of rows into model context.
NEON is the first built-in remote provider. Local tabular, raster, vector, point-cloud, image, hyperspectral, and N-dimensional array sources use the same provider-independent manifest, query, view, selection, and provenance model.
“Compare this NEON LiDAR tile with its hyperspectral cube. Show them together, let me select an individual return or image pixel, then query the exact source point or spectrum behind my selection.”

A real EcoScope browser session using Rerun Web Viewer: a 6.6-million-point NEON LAS tile, a 500×500×107 reflectance cube, immutable provenance, and a verified selection mapped back to LAS source row 1,800,316.
The human–agent loop
scientific question
→ discover products, sites, and local assets
→ construct and approve a reproducible data plan
→ materialize immutable, checksum-verified sources
→ query and render a bounded multimodal Rerun view
→ human clicks, brushes, filters, or selects
→ EcoScope records that interaction as scientific state
→ agent queries the exact selected source data
→ export results, transformations, provenance, and citation
The visualization is not just a picture for the model to inspect. EcoViewSpec
is authoritative view state and SemanticSelection is authoritative interaction
state. A Rerun recording is a regenerable rendering artifact. For verified
EcoScope point batches, an instance pick maps back to an exact LAS/LAZ source
row; for a mapped cube, an image click maps back to the complete source spectrum.
What works in the alpha
- A normal MCP 2026-07-28 stdio server registerable with Codex and Claude Code.
- Public NEON catalog discovery plus reproducible plan, approval, background materialization, checksum, release, license, and citation handling.
- Out-of-band local imports with streaming fingerprints and opaque agent-facing dataset IDs.
- Arrow/DataFusion tabular queries, spatial raster/vector queries, indexed COPC reads, and bounded HDF5/NetCDF/Zarr N-dimensional slices.
- Native and browser Rerun views for tables, images, GeoTIFFs, vectors, LiDAR, and mapped scientific cubes.
- Durable human selections that can be converted into provenance-linked source queries and exported as CSV, Parquet, COG, or RO-Crate where applicable.
- Language-neutral community provider subprocesses with a versioned JSON-RPC contract; an RI contributor can work in Rust, Python, R, Go, or another language without adding provider-specific MCP tools.
Detailed support and caveats are in the format matrix. Design boundaries are documented in architecture and implementation decisions.
Install and see it work
The alpha ships self-contained macOS universal and Linux x86-64 packages. You do not need Rust, Node.js, CMake, or a separate Rerun installation:
curl -fsSL https://raw.githubusercontent.com/krnzt/ecoscope/v0.1.0-alpha.1/scripts/install.sh | sh
The installer verifies the release SHA-256, installs under ~/.local by
default, and runs ecoscope setup. Set ECOSCOPE_INSTALL_DIR to choose another
prefix. If ~/.local/bin is not already on your PATH, add it before continuing.
Create a deterministic LiDAR + hyperspectral demonstration and open it in the bundled Rerun browser viewer:
ecoscope demo synthetic
The generated LAS and HDF5 files pass through the same import, manifest, cube mapping, Rerun recording, and selection-query paths as user data. No network or credentials are needed. An opt-in official NEON teaching-data demonstration is also available (roughly 224 MiB):
ecoscope demo neon --accept-download
Register the normal MCP server
EcoScope is published as io.github.krnzt/ecoscope in the official MCP
Registry. It is also a normal local stdio server: Codex, Claude Code, and any
compatible host launch the same ecoscope mcp process and discover its tools.
ecoscope register codex
ecoscope register claude
Both registration commands are safe to repeat and preserve an existing EcoScope entry. Platform-specific MCPB bundles are attached to every release for hosts and registries that install MCPB packages.
Equivalent host commands are:
codex mcp add ecoscope -- /absolute/path/to/ecoscope mcp
claude mcp add --scope user ecoscope -- /absolute/path/to/ecoscope mcp
Generic MCP configuration:
{
"mcpServers": {
"ecoscope": {
"command": "/home/you/.local/bin/ecoscope",
"args": ["mcp"]
}
}
}
After registration, the host launches EcoScope like any other local MCP server, negotiates the protocol, discovers its tools, and receives bounded structured results rather than bulk scientific files.
Use local scientific files
ecoscope import examples/observations.csv
ecoscope datasets
ecoscope preview ds_... --limit 20
ecoscope create-view --name "Site comparison" ds_...
ecoscope open view_...
Local paths are selected in the terminal, never passed as an MCP argument. The private SQLite registry retains the source path; agents receive an opaque ID, checksum, display name, scientific metadata, and provenance. The same path supports the raster, vector, point-cloud, image, and cube formats in the format matrix.
NEON
Metadata discovery does not require credentials. Exact file planning and downloads use a NEON API token stored outside model context:
./target/release/ecoscope connect-neon
The prompt does not echo the token. EcoScope stores it in the operating-system
keychain and sends it upstream only in the X-API-Token header. Headless systems
can inject NEON_API_TOKEN through their secret manager.
Multidimensional data
EcoScope inventories cube arrays without guessing ambiguous scientific meaning. When X, Y, and spectral axes are unambiguous, common NEON reflectance conventions are inferred. Otherwise the mapping is explicit and revisioned:
./target/release/ecoscope configure-cube view_... \
--layer-id layer_1 \
--cube-array /SITE/Reflectance/Reflectance_Data \
--y-axis 0 --x-axis 1 --spectral-axis 2 \
--wavelength-dataset /SITE/Reflectance/Metadata/Spectral_Data/Wavelength \
--red-band 14 --green-band 9 --blue-band 5
The provider-neutral MCP equivalent is configure_cube_view.
Community providers
NEON is built in, but the architecture is not NEON-shaped. Install a trusted language-neutral provider executable with:
./target/release/ecoscope provider install ./my-provider.json
./target/release/ecoscope provider list
Installation performs a protocol handshake and validates provider identity, capabilities, response bounds, and declared HTTPS origins. Provider executables are trusted local code, not sandboxed plugins, and never receive credential values. See the provider SDK for the complete wire contract, conformance fixture, and security model.
Known limitations
- EcoScope is local stdio MCP today; remote Streamable HTTP and OAuth are not implemented yet.
- The alpha macOS executables are not Apple-notarized. macOS may require an explicit first-run approval; release checksums still protect artifact integrity.
- The browser explorer uses Rerun's WebGL renderer for reliable software and CI support. Native Rerun remains the higher-ceiling surface for very large scenes.
- Rerun exposes entity/instance selection events, but not one universal brush
protocol for every view. Explicit interval, map, raster, spectral, and row
selections use the same
record_selection/query_selectionpath. - GeoParquet supports exact GeoDataFusion queries but not direct geometry logging into Rerun yet; GeoPackage currently has inspection but no query adapter.
- EcoScope-derived COPC indexes provide full-resolution spatial access but do not yet contain a provider-quality multiresolution hierarchy.
- The pure-Rust NetCDF-3 adapter bounds whole-variable decoding because its reader does not currently provide subset I/O.
Development
Building from source requires Rust 1.95, Node.js 22, CMake, and a C/C++ compiler. Linux uses a vendored static D-Bus client for keychain access.
git clone https://github.com/krnzt/ecoscope.git
cd ecoscope
npm --prefix viewer/web-bootstrap ci
npm --prefix viewer/web-bootstrap run build
cargo build --release
./target/release/ecoscope setup
Run the complete validation suite with:
cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
npm --prefix viewer/web-bootstrap run check
npm --prefix viewer/web-bootstrap run build
npm --prefix viewer/web-bootstrap exec -- playwright install chromium
npm --prefix viewer/web-bootstrap run test:e2e
npm --prefix viewer/web-bootstrap audit --omit=dev
An opt-in integration test exercises published NEON teaching subsets: a 6,609,829-point LAS tile and a 500×500×107 HDF5 reflectance cube.
curl -fL -o /tmp/neon-point-cloud.las https://ndownloader.figshare.com/files/7024955
curl -fL -o /tmp/neon-hyperspectral.h5 https://ndownloader.figshare.com/files/21754221
NEON_POINT_CLOUD_FIXTURE=/tmp/neon-point-cloud.las \
NEON_HYPERSPECTRAL_FIXTURE=/tmp/neon-hyperspectral.h5 \
cargo test -p ecoscope-rerun --test official_neon_fixtures -- --ignored
Build local MCPB and archive artifacts after the Rust and browser builds with
scripts/package-release.sh target/release/ecoscope dist macos-arm64 darwin
(substitute linux-x86_64 linux on Linux). The tag workflow builds and combines
both macOS architectures, verifies the Linux linkage, publishes checksummed
release assets, and submits the generated server.json using GitHub OIDC.
Project status
EcoScope is an early public alpha. The scientific data model, provider contract, and Rerun boundary are designed for extension, but APIs and packaging may still change before the first stable release.
Contributions are welcome from ecological researchers, data stewards, Research Infrastructure teams, visualization developers, and scientific-format experts. Good first collaborations include representative metadata fixtures, format adapters, selection semantics, accessibility, and reproducible ecological demonstrations. Read CONTRIBUTING.md and open an issue before starting a large provider or viewer change.
EcoScope is MIT licensed. Rerun is used under its MIT/Apache-2.0 license; built bundles retain the required notices in THIRD_PARTY_NOTICES.md.