GeoCroissant MCP Server
GeoCroissant MCP Server
GeoCroissant 및 그 geospatial 확장을 위한 Model Context Protocol (MCP) 서버입니다.
기능
EO 데이터셋 탐색 - STAC 컬렉션에 대한 키워드/주제 검색과 bbox + datetime + cloud cover 기반 공간 장면 검색을 라이브 Element84 Earth Search API(
https://earth-search.aws.element84.com/v1, AWS Open Data)를 대상으로 수행하며, 센서 모달리티 분류(optical / radar / elevation) 및 테마 단축키(flood,wildfire,ndvi,dem, ...)를 제공합니다.STAC -> GeoCroissant 생성 - 라이브 검색 결과를 검증된 GeoCroissant 문서로 변환합니다. schema.org coverage, CRS,
eo:bands에서 파생된 밴드 구성 및 분광 메타데이터(µm 단위에서 nm 단위로 변환), 직접 에셋 URL을 위한 distribution FileObject, 그리고 장면당 하나의 행을 포함하는 RecordSet까지 포함됩니다.검증 도구로서의 공식 검증기 -
mlcroissant(즉,mlcroissant validate와 동일한 엔진)에서 제공하는 오류 및 경고를 포함한 구조화된 합격/불합격 보고서를 생성합니다.심층 검사 - 핵심 메타데이터에 더해 GeoCroissant의 모든 속성까지: CRS, 공간/시간 해상도, 밴드 구성, 분광 밴드 메타데이터, 레코드 엔드포인트, 스키마/바이어스/샘플링 전략.
구조 그래프 추출 - 라이브러리가 내부적으로 구축하는 방향성 다중 그래프를 노출합니다(Metadata / FileObject / FileSet / RecordSet / Field 노드, source/join/containment 에지).
레코드 구체화 - 굉장이 실제 레코드 그래프(다운로드, 추출, 변환)를 실행하여 실제 레코드를 직접 미리 봅니다. Python의
Dataset.records(...)와 완전히 동일합니다.검증된 스캐폴딩 - 구조화된 파라미터로 표준에 부합하는 GeoCroissant JSON-LD를 생성하고, 실제 검증기로 검증합니다.
내장된 스펙 참조 - 네임스페이스, 도메인/카디널리티를 포함한 모든
geoc:속성, canonical@context, 샘플 문서, Python API를 제공합니다.
Related MCP server: Copernicus Earth Observation MCP Server
기능
도구 | 설명 |
| 등록된 EO STAC 카탈로그(Earth Search)의 모달리티, 컬렉션, 주제 키워드를 나열합니다. |
| Earth Search 컬렉션에 대한 주제/키워드 검색 - |
| bbox 내 공간/시간/클라우드 커버 기반 장면 검색; 장면별 id, 날짜, 클라우드 커버, 기본 EPSG, 에셋 키를 반환합니다. |
| end-to-end 파이프라인: 라이브 STAC 검색 -> 검증된 GeoCroissant JSON-LD(coverage, CRS, 밴드 및 분광 메타데이터, distribution URL, 포함된 인라인 장면 레코드) 생성. 선택적으로 디스크에 저장. |
| Croissant/GeoCroissant 문서(파일 경로, URL 또는 인라인 JSON)를 검증하고 |
| 문서의 구조적 요약: 메타데이터, |
| 라이브러리의 내부 구조 그래프에서 노드와 방향 에지 - 계보 및 의존성 분석. |
| @id, 키, 인라인 레코드/예시 수, 중첩 필드 요약을 포함한 RecordSet 목록을 반환합니다. |
| RecordSet의 처음 N개 레코드를 실체화(다운로드/변환 포함)하고 선택적으로 필터를 적용합니다. Python API와 동일합니다. |
| distribution의 다운로드 가능한 URL: |
| 파라미터로부터 검증된 GeoCroissant 문서를 생성합니다(네트워크 불필요). 선택적으로 디스크에 저장하는 |
| 스펙 참조 정보: |
카탈로그 추가
레지스트리는 데이터 기반(src/geocr_mcp_server/config/catalogs.yaml)입니다. 각 카탈로그는 STAC URL, 모달리티별로 관리되는 컬렉션, 그리고 공유 topics와 모달리티 키워드 힌트를 포함하는 항목입니다. 코드를 수정하지 않고 다른 카탈로그를 등록하려면:
YAML을 복사하고
catalogs아래에 카탈로그를 추가하세요(테마 매핑은topics아래에).환경 변수로 해당 파일을 가리키도록 하세요:
"env": { "GEOCR_CATALOGS_CONFIG": "/path/to/catalogs.yaml" }로더는 주제 참조가 어떤 카탈로그의 컬렉션 목록에 존재하는지 검증하므로, 시작 시 오타가 즉시 실패합니다.
권장 에이전트 워크플로우
discovery: list_eo_catalogs -> search_eo_datasets("burn scar", modality=optical)
-> search_eo_scenes(bbox=[...], datetime_range=...)
metadata: create_geocroissant_from_stac(...) # validated output + optional file
consuming: inspect_geocroissant -> get_records_preview -> extract_distribution_urls
authoring: create_geocroissant_scaffold -> edit -> validate_croissant설치
클론이 필요 없습니다 - pip 또는 uvx가 GitHub에서 geocr-mcp와 그 mlcroissant 의존성을 바로 가져옵니다. 클론은 개발용으로만 필요합니다.
pip
pip install git+https://github.com/HarshShinde0/geocr_mcp.git@main단일 의존성인 mlcroissant은 GeoCroissant 포크에서 자동으로 설치됩니다:
pip install git+https://github.com/HarshShinde0/croissant.git@main#subdirectory=python/mlcroissantuv / uvx (클라이언트에 권장)
uvx --from "geocr-mcp @ git+https://github.com/HarshShinde0/geocr_mcp.git@main" geocr-mcp-serverDocker
docker build -t geocr-mcp-server .
# stdio (local clients):
docker run -i --rm geocr-mcp-server
# hosted (HTTP transports):
docker run -p 8000:8000 geocr-mcp-server --transport streamable-http --host 0.0.0.0 --port 8000클라이언트 설정
클론이 필요 없습니다. 클라이언트는 uvx을 통해 이 두 패키지를 GitHub에서 직접 설치(그리고 캐시)합니다.
{
"mcpServers": {
"geocr": {
"command": "uvx",
"args": [
"--from", "geocr-mcp @ git+https://github.com/HarshShinde0/geocr_mcp.git@main",
"geocr-mcp-server"
],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
},
"disabled": false,
"autoApprove": []
}
}
}{
"mcp": {
"servers": {
"geocr": {
"command": "uvx",
"args": [
"--from", "geocr-mcp @ git+https://github.com/HarshShinde0/geocr_mcp.git@main",
"geocr-mcp-server"
],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
}
}
}
}
}서버 코드 자체를 개발 중일 때만 필요합니다:
git clone https://github.com/HarshShinde0/geocr_mcp.git # or this monorepo{
"mcpServers": {
"geocr": {
"command": "uv",
"args": [
"--directory", "/path/to/geocr_mcp",
"run", "geocr-mcp-server"
],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
},
"disabled": false,
"autoApprove": []
}
}
}공유/원격 클라우드 사용을 위해 동일한 서버를 HTTP 전송으로 실행합니다:
geocr-mcp-server --transport streamable-http --host 0.0.0.0 --port $PORTRender에 배포(원클릭 Blueprint)
이 저장소에는 render.yaml blueprint가 포함되어 있습니다:
Render Dashboard에 로그인합니다.
New + -> Blueprint를 클릭하고
HarshShinde0/geocr_mcp저장소를 연결합니다.Apply를 클릭합니다. Render가 자동으로 컨테이너를 빌드해 서버를 배포합니다.
라이브 엔드포인트: https://geocr-mcp-server.onrender.com/mcp
호스팅된 MCP에 클라이언트 연결하기
AI 클라이언트, IDE 또는 에이전트 설정(mcpServers)에서:
{
"mcpServers": {
"geocr-remote": {
"url": "https://geocr-mcp-server.onrender.com/mcp"
}
}
}사용자 지정 리버스 프록시 뒤에서 TLS를 프록시에서 종료하고 GEOCR_HOST=0.0.0.0과 GEOCR_TRANSPORT=streamable-http로 설정하세요.
환경 변수
변수 | 기본값 | 설명 |
|
| 표준 에러 로그의 로그 레벨 ( |
| 시스템 임시 디렉토리 | 생성된 파일이 쓰이는 장소 (파일 이름은 basename으로 변환되어 심각한) |
| 포함된 YAML | 다른 카탈로그 레지스트리 파일 경로 - 코드 변경 없이 카탈로그/주제 minor 추가 기능 |
|
| SSE/streamable-http 전송의 바인딩 주소 (CLI 플래그로도 설정 가능) |
보안 고려 사항
서버는 도구 입력이 URL을 참조하거나 원격으로부터 레코드를 구체화할 때(
get_records_preview)에만 네트워크 요청을 수행합니다. 신뢰할 수 없는 환경에서는limit을 작게 유지하세요.생성된 파일은 항상
GEOCR_OUTPUT_DIR안에 저장되며, 파일 이름을 basename으로 축소하여 이려움 경로 추적을 차단합니다.컨테이너는 비-루트(non-root) 사용자로 실행하세요(제공된 Dockerfile이 이미 그렇게 합니다).
개발
cd geocr_mcp
uv venv && uv sync --all-groups # or: python -m pip install -e ".[dev]"
uv run pytest --cov --cov-branch # unit tests (no network required)
uv run ruff check src tests # lint (same rules as awslabs/mcp)
npx @modelcontextprotocol/inspector geocr-mcp-server # interactive debuggingAvailable Tools
12 toolscreate_geocroissant_from_stacA
Searches live EO data and generates VALIDATED GeoCroissant metadata from it.
This is the flagship end-to-end pipeline of this server:
1. Runs a real STAC search (bbox + collections + datetime + cloud cover).
2. Derives GeoCroissant properties from the results: schema.org spatial/
temporal coverage, CRS (EPSG:4326), record endpoint, band
configuration and spectral band metadata from `eo:bands`
(micrometers converted to nanometers), distribution FileObjects for
direct asset URLs, and a RecordSet with one inline row per scene.
3. Validates the document through the official `mlcroissant` library
before returning it.
Usage: THE tool for turning discovered EO data into GeoCroissant.
After generation use `inspect_geocroissant`, `get_records_preview`
and `extract_distribution_urls` on the output.
Returns:
--------
Dictionary containing:
- valid/errors/warnings: mlcroissant validation outcome.
- json_ld: The generated GeoCroissant document.
- path: Output file path when output_filename was given.
- search_summary: What was searched and how many scenes matched.
Inputs: bbox (required), name (required), limit, license, +7 more. Returns: object
create_geocroissant_scaffoldA
Generates a validated GeoCroissant JSON-LD scaffold from parameters.
Produces a standards-conformant starting point modeled on the official
GeoCroissant example: correct @context (including the `geocr` prefix),
dual conformance (`croissant/1.1` + `geocr`), schema.org spatial/temporal
coverage, GeoCroissant properties (CRS, resolutions, band configuration,
spectral bands), distribution entries and a RecordSet wired to them via
proper cr:source/cr:extract declarations.
The generated document is then parsed and checked by the real
``mlcroissant`` validator, so `valid=True` means the scaffold already
passes the official library checks.
Usage: Call FIRST when creating new dataset metadata, then edit the
returned JSON-LD for domain specifics and re-check with
`validate_croissant`. Use `inspect_geocroissant` afterwards to review it.
Returns:
--------
ScaffoldResult containing:
- valid: Whether the scaffold passed mlcroissant validation.
- json_ld: The generated document.
- errors/warnings: Library messages when not fully clean.
- path: Output file path when output_filename was given.
Inputs: name (required), bbox, license, version, +21 more. Returns: Result of generating a GeoCroissant JSON-LD scaffold.
extract_distribution_urlsA
Extracts downloadable URLs from a Croissant document's distribution.
Collects the `contentUrl` of every FileObject together with its encoding
formats, sizes and checksums, plus FileSet include patterns and archive
containers. These are the direct access points for the dataset bytes.
Usage: Use this tool to obtain concrete download links (e.g. GeoTIFF /
COG / ZIP assets) for ingestion code without parsing the JSON manually.
Returns:
--------
DistributionUrls containing:
- urls: One entry per distribution item (name, type, contentUrl,
encodingFormat, md5/sha256, includes/containedIn when present).
- count: Number of distribution items with at least one URL.
Inputs: jsonld_url, jsonld_path, jsonld_content. Returns: Downloadable URLs extracted from a dataset distribution.
get_geocroissant_spec_referenceA
Returns the GeoCroissant specification reference documentation.
Provides the vocabulary cheat sheet distilled from the official GeoCroissant
specification: namespace IRIs and prefixes, conformance declarations, every
`geocr:` property with expected types/domains/cardinality, the canonical
JSON-LD @context, a full sample document, and Python snippets for the
``mlcroissant`` API (load, validate, iterate records).
Usage: Read this ONCE before authoring or editing GeoCroissant documents so
property names, types and cardinalities match the specification exactly.
Then use `create_geocroissant_scaffold` and `validate_croissant`.
Returns:
--------
Markdown-formatted reference documentation for the requested topic.
Inputs: topic. Returns: result
get_records_previewA
Materializes the first records of a RecordSet by executing the data pipeline.
This tool runs the real ``mlcroissant`` operation graph: it downloads (or
resolves locally) the declared FileObjects/FileSets, applies extracts and
transforms, and yields actual records - exactly what
``Dataset.records(record_set)`` yields in Python.
Usage: Use it to preview/sample a dataset's actual data before writing
training code, or to sanity-check that a generated Croissant description
produces the expected columns and values.
IMPORTANT: For remote distributions this may download data; keep `limit`
small on large datasets. Datasets with inline `cr:data` return those rows
directly without downloads.
Returns:
--------
RecordsPreview containing:
- record_set: The RecordSet @id that was read.
- columns: Column names found across returned records.
- rows: List of records keyed by fully-qualified field ids.
- truncated: True if more records exist beyond `limit`.
Inputs: record_set (required), limit, filters, jsonld_url, +2 more. Returns: First records materialized from a RecordSet.
get_structure_graphA
Extracts the internal structure graph of a Croissant document.
Builds the directed multigraph that ``mlcroissant`` uses internally for
static analysis: nodes are Metadata / FileObject / FileSet / RecordSet /
Field objects and edges connect fields to their data sources, record sets
to their fields, files to archives they are contained in, and referenced
(foreign-key) fields.
Usage: Use this tool to reason about dataset lineage and dependencies,
e.g. "which files feed this field?", "what does this join look like?",
or to explain a dataset's architecture before writing loading code.
Returns:
--------
StructureGraph containing:
- nodes: Every node with @id, type, name and parent @id.
- edges: Directed edges as {source, target} @id pairs.
Inputs: jsonld_url, jsonld_path, jsonld_content. Returns: Nodes and edges of the Croissant structure graph.
inspect_geocroissantA
Inspects a Croissant/GeoCroissant document and returns a structured summary.
Parses the document through the ``mlcroissant`` library (which also acts as
a strict syntax/schema check - invalid documents are rejected) and returns
a structured digest: core metadata, GeoCroissant extension properties
(CRS, resolutions, band configuration, spectral bands, record endpoint...),
distribution entries (FileObjects/FileSets with URLs, formats, hashes),
and every RecordSet with its Fields (data types, array shapes,
source/extract/transform chains).
Usage: Use this tool to READ and UNDERSTAND a dataset description before
consuming it, comparing datasets, or planning how to load records.
Returns:
--------
Dictionary containing:
- name/description/license/version/conformsTo and other core metadata.
- geospatial: All declared `geocr:` extension properties.
- distribution: FileObject/FileSet entries.
- record_sets: RecordSets with nested fields and geo properties.
Inputs: jsonld_url, jsonld_path, jsonld_content. Returns: object
list_eo_catalogsA
Lists the Earth observation STAC catalogs registered on this server.
The registry is data-driven (config/catalogs.yaml): today it contains
Element84 Earth Search over AWS Open Data
(https://earth-search.aws.element84.com/v1) with its searchable
modalities, curated collections and topic keywords.
Usage: Call once to see where EO data can be discovered from before
using `search_eo_datasets` / `search_eo_scenes`.
Returns:
--------
Dictionary containing:
- catalogs: Registered catalogs with id, name, URL, description,
modalities, common collections and supported topics.
Inputs: no named parameters. Returns: object
list_record_setsA
Lists the RecordSets of a Croissant/GeoCroissant document.
A RecordSet is a collection of records (rows/examples) produced by
applying the declared extraction pipeline to the distribution. This tool
returns each RecordSet's @id, name, description, key fields, enumeration
flag, number of inline records/examples and its Fields with their data
types and source chains.
Usage: Call this tool to discover what data a dataset exposes and which
RecordSet names to pass to `get_records_preview`.
Returns:
--------
List of dictionaries, one per RecordSet, each including:
- @id: The RecordSet identifier used by other tools.
- fields: Nested field summaries (dataType, isArray/arrayShape,
source extract/transform chain, geo band properties).
Inputs: jsonld_url, jsonld_path, jsonld_content. Returns: result
search_eo_datasetsA
Searches Earth observation DATASETS (STAC collections) by keyword.
Performs collection-level search on the Earth Search STAC API
(AWS Open Data). Queries hit the topics map first ('flood' -> Sentinel-1
+ Sentinel-2, 'dem' -> Copernicus DEM...), then fall back to keyword
matching against live collection metadata; every hit is classified by
sensor modality (optical / radar / elevation).
Usage: Start here for dataset-level discovery ("find me flood/burn
scar/terrain datasets"). Then use the returned collection ids with
`search_eo_scenes`, or jump straight to `create_geocroissant_from_stac`
to get GeoCroissant metadata.
Returns:
--------
Dictionary containing:
- matched_topics: Topic-map hits for the query.
- count: Number of matching collections found.
- collections: Matches with catalog, collection id, title,
description snippet, modality, license and temporal extent.
Inputs: query, modality. Returns: object
search_eo_scenesA
Searches satellite SCENES inside a bounding box on Earth Search.
Executes a real STAC item search (pystac-client) against
https://earth-search.aws.element84.com/v1 filtered by spatial extent,
time range and cloud cover. Scenes are the individual acquisitions
(tiles/granules) that become records of a GeoCroissant dataset.
Usage: Use after `search_eo_datasets` (or directly with known
collections) to check actual data availability for an area of interest.
Feed promising results into `create_geocroissant_from_stac`.
Returns:
--------
Dictionary containing:
- scene_count and scenes: Per-scene id, collection, acquisition
datetime, platform, cloud cover, native EPSG and asset keys.
Inputs: bbox (required), limit, modality, collections, +2 more. Returns: object
validate_croissantA
Validates a Croissant or GeoCroissant JSON-LD document.
Runs the official MLCommons ``mlcroissant`` validator: JSON syntax check,
JSON-LD expansion, structure-graph construction (FileObjects/FileSets,
RecordSets, Fields, sources & joins) and full schema conformance checks.
Usage: Call this tool whenever a dataset description is created or edited,
BEFORE publishing it, and after any modification of an existing file.
Works for both plain Croissant documents and documents using the
GeoCroissant extension (`geocr:` properties).
Returns:
--------
Dictionary containing:
- valid: True when the document passes validation.
- errors: Blocking errors reported by the library (empty when valid).
- warnings: Non-blocking recommendations (e.g. missing license).
- is_geospatial: Whether GeoCroissant conformance is declared.
- conforms_to / dataset_name: Extracted metadata when loadable.
Inputs: jsonld_url, jsonld_path, jsonld_content. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
The main workflow stages are clearly separated: discovery tools distinguish catalogs, datasets, and scenes, while generation tools differ by their input source. There is some overlap among the inspection tools—inspect_geocroissant already reports RecordSets and distribution entries, making list_record_sets and extract_distribution_urls partially redundant—but the descriptions are detailed enough to guide selection.
All tool names follow a consistent snake_case verb_noun pattern: list, search, create, validate, inspect, get, and extract are used predictably. The naming also preserves resource hierarchy clearly, from catalogs to datasets to scenes, which helps agents infer relationships between tools.
Twelve tools is an appropriate size for this domain: a few discovery tools, two generation paths, one validator, and several inspection/preview/extraction utilities. The count supports the full workflow without bloating the surface or feeling thin.
The toolset covers the full lifecycle: EO catalog/dataset/scene discovery, GeoCroissant creation from live STAC data or manual parameters, validation, structured inspection, record-set preview, and distribution URL extraction. There are no obvious dead ends because outputs from generation flow naturally into the validation and inspection tools.
Maintenance
Related MCP Connectors
Search dynamical.org's open STAC catalog of weather & climate datasets (GFS, ECMWF, HRRR).
Discover, verify, and access NASA Earth science datasets via the Common Metadata Repository (CMR)
Search, sample and query open reproducible datasets published as immutable Parquet with schemas.
European Sentinel and Copernicus Contributing Mission archive from the EU's Copernicus Data Space…
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to search and access geospatial datasets through STAC (SpatioTemporal Asset Catalog) APIs. Supports querying satellite imagery, weather data, and other geospatial assets with spatial, temporal, and attribute filters.1120MIT
- AlicenseBqualityCmaintenanceProvides tools to search, download, and manage satellite imagery from all Copernicus Sentinel missions via the Copernicus Data Space ecosystem. It enables advanced geospatial queries, temporal coverage analysis, and automated data management for Earth observation tasks.1311LGPL 3.0
- FlicenseAqualityDmaintenanceProvides access to the OpenLandMap STAC catalog, offering over 100 global environmental datasets including soil, climate, and vegetation data. It enables AI agents to discover, search, and retrieve Cloud-Optimized GeoTIFFs for global geospatial analysis.27-
- AlicenseNot gradedqualityDmaintenanceEnables discovery, analysis, and explanation of open satellite data through MCP, with support for STAC catalogs and NASA GIBS.1MIT