GeoCroissant MCP Server
Enables discovering and searching Earth observation datasets from STAC catalogs, generating validated GeoCroissant metadata, inspecting document structure, and previewing records for geospatial ML workflows.
README
GeoCroissant MCP Server
Model Context Protocol (MCP) server for GeoCroissant and its geospatial extension.
Features
- EO dataset discovery - keyword/topic search over STAC collections and
spatial scene search (bbox + datetime + cloud cover) against the live
Element84 Earth Search API (
https://earth-search.aws.element84.com/v1, AWS Open Data), with sensor-modality classification (optical / radar / elevation) and theme shortcuts (flood,wildfire,ndvi,dem, ...). - STAC -> GeoCroissant generation - turns live search results into a
validated GeoCroissant document: schema.org coverage, CRS, band
configuration & spectral metadata derived from
eo:bands(converted from micrometers to nanometers), distribution FileObjects for direct asset URLs, and a RecordSet embedding one row per scene. - Official validator as a tool - structured pass/fail reports with errors
and warnings from
mlcroissant(the same engine asmlcroissant validate). - Deep inspection - core metadata plus every GeoCroissant property: CRS, spatial/temporal resolution, band configuration, spectral band metadata, record endpoint, spatial index/bias/sampling strategy.
- Structure graph extraction - exposes the directed multigraph the library builds internally (Metadata / FileObject / FileSet / RecordSet / Field nodes; source, join and containment edges).
- Record materialization - executes the real operation graph (downloads,
extracts, transforms) to preview actual records, exactly like
Dataset.records(...)in Python. - Validated scaffolding - generates standards-conformant GeoCroissant JSON-LD from structured parameters and checks it through the real validator.
- Built-in spec reference - namespaces, all
geocr:properties with domains/cardinality, canonical@context, sample document and Python API.
Tools
| Tool | Description |
|---|---|
list_eo_catalogs |
Registered EO STAC catalogs (Earth Search) with modalities, curated collections and topic keywords. |
search_eo_datasets |
Topic/keyword search over Earth Search collections - 'flood' -> Sentinel-1 + Sentinel-2, 'dem' -> Copernicus DEM, etc. |
search_eo_scenes |
Spatial/temporal/cloud-cover scene search in a bbox; returns per-scene ids, dates, cloud cover, native EPSG and asset keys. |
create_geocroissant_from_stac |
End-to-end pipeline: live STAC search -> validated GeoCroissant JSON-LD (coverage, CRS, bands & spectral metadata, distribution URLs, inline scene records). Optionally writes to disk. |
validate_croissant |
Validate a Croissant/GeoCroissant document (file path, URL or inline JSON). Returns valid, errors, warnings, conformance targets. |
inspect_geocroissant |
Structured summary of a document: metadata, geocr: properties, distribution entries and every RecordSet/Field with types, shapes and source chains. |
get_structure_graph |
Nodes and directed edges of the library's internal structure graph - lineage and dependency analysis. |
list_record_sets |
RecordSets with @ids, keys, inline record/example counts and nested field summaries. |
get_records_preview |
Materialize the first N records of a RecordSet, optionally filtered. Executes downloads/transforms like the Python API. |
extract_distribution_urls |
Downloadable URLs from the distribution: contentUrl, formats, md5/sha256, FileSet includes. |
create_geocroissant_scaffold |
Generate a validated GeoCroissant document from parameters (no network needed). Optionally writes to disk. |
get_geocroissant_spec_reference |
Specification reference: overview, context, properties, example, python-api or all. |
Adding a catalog
The registry is data-driven (src/geocr_mcp_server/config/catalogs.yaml):
each catalog is an entry with its STAC URL, curated collections per modality,
plus shared topics and modality keyword hints. To register another catalog
without touching code:
- Copy the YAML somewhere and append your catalog under
catalogs(and any theme mappings undertopics). - Point the environment variable at it:
"env": { "GEOCR_CATALOGS_CONFIG": "/path/to/catalogs.yaml" }
The loader validates that topic references exist in some catalog's collection lists, so typos fail fast at startup.
Recommended agent workflow
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
[!TIP] Remote Client / Cloud Usage: When connected to a remote hosted server (e.g. on Render), the generated GeoCroissant document is returned directly inline under
json_ldin the tool response. Remote agents / IDE clients should writejson_ldstraight to their local workspace rather than attempting to readpathfrom the remote container.
Installation
No clone needed - pip/uvx fetch both geocr-mcp and its mlcroissant dependency straight from GitHub. Cloning is only required for development.
pip
pip install git+https://github.com/HarshShinde0/geocr_mcp.git@main
The single dependency mlcroissant is pulled automatically from the GeoCroissant fork:
pip install git+https://github.com/HarshShinde0/croissant.git@main#subdirectory=python/mlcroissant
uv / uvx (recommended for clients)
uvx --from "geocr-mcp @ git+https://github.com/HarshShinde0/geocr_mcp.git@main" geocr-mcp-server
Docker
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
Client configuration
No clone needed - clients install (and cache) both packages directly from GitHub via uvx.
<details> <summary>Claude Desktop / Claude Code</summary>
{
"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": []
}
}
}
</details>
<details> <summary>VS Code / Cursor</summary>
{
"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"
}
}
}
}
}
</details>
<details> <summary>Running from a local clone (development)</summary>
Only needed when iterating on the server code itself:
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": []
}
}
}
</details>
<details> <summary>Hosted deployment (Render / Cloud / HTTP / SSE)</summary>
Run the same server with an HTTP transport for shared/remote cloud usage:
geocr-mcp-server --transport streamable-http --host 0.0.0.0 --port $PORT
Deploy on Render (1-Click Blueprint)
This repository includes a render.yaml blueprint:
- Log in to Render Dashboard.
- Click New + -> Blueprint and connect repository
HarshShinde0/geocr_mcp. - Click Apply. Render will automatically build the container and deploy the server.
Live endpoint: https://geocr-mcp-server.onrender.com/mcp
Connecting Clients to Hosted MCP
In your AI client, IDE, or agent configuration (mcpServers):
{
"mcpServers": {
"geocr-remote": {
"url": "https://geocr-mcp-server.onrender.com/mcp"
}
}
}
Behind a custom reverse proxy, terminate TLS at the proxy and set GEOCR_HOST=0.0.0.0 and GEOCR_TRANSPORT=streamable-http.
</details>
Environment variables
| Variable | Default | Description |
|---|---|---|
FASTMCP_LOG_LEVEL |
WARNING |
Log level for stderr logging (DEBUG, INFO, WARNING, ERROR). |
GEOCR_OUTPUT_DIR |
system temp dir | Directory where generated files are written (filenames are sanitized to basenames). |
GEOCR_CATALOGS_CONFIG |
shipped YAML | Path to an alternate catalog registry file - add catalogs/topics without code changes. |
GEOCR_HOST / GEOCR_PORT |
127.0.0.1 / 8000 |
Bind address for SSE/streamable-http transports (also settable via CLI flags). |
Security considerations
- The server performs network requests only when a tool input references a URL
or when materializing records from remote distributions (
get_records_preview). Keeplimitsmall in untrusted contexts. - Generated files are always written inside
GEOCR_OUTPUT_DIR; path traversal is blocked by reducing filenames to their basename. - Run containers as non-root (the provided Dockerfile already does).
Development
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 debugging
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。