用于STAC请求的MCP服务器
概览
MCP(模型上下文协议)服务器,提供对 STAC(时空资产目录)API 的访问,用于地理空间数据的发现和访问。支持所有工具的双输出模式(文本和结构化 json)。 覆盖徽章会在CI工作流程推送到主信息时自动更新。 该MCP服务器使AI助手和应用程序能够与STAC目录交互,目的是:- 搜索和浏览STAC集合 - 查找地理空间数据集(卫星影像、天气数据等) - 访问元数据和资产信息 - 执行空间和时间查询 所有工具都接受可选的output_format参数(“text”默认,或“json”)。JSON 模式返回一个 MCP TextContent,其文本字段为紧凑的 JSON 信封:{ “mode”: “json”, “data”: { ... } }(或 { “mode”: “text_fallback”, “content”: [“...”] } 如果处理程序缺少 JSON 分支)。这既保持向后兼容性,又支持结构化消费(参见 ADR 0006 和 ASR 1003)。
概述(AI 翻译)
MCP(模型上下文协议)服务器,提供访问 STAC(时空资产目录)API 以实现地理空间数据的发现和访问。支持所有工具的双输出模式(text 和结构化 json)。
覆盖徽章会在CI工作流程推送到
main时自动更新。
概述
该MCP服务器使AI助手和应用程序能够与STAC目录交互,以实现:
- 搜索和浏览STAC集合
- 查找地理空间数据集(卫星图像、天气数据等)
- 访问元数据和资产信息
- 执行空间和时间查询
特色
可用工具
所有工具都接受可选的 output_format 参数(默认为 "text" 或 "json"。JSON 模式返回一个 MCP TextContent,其 text 字段为紧凑的 JSON 包封:{ "mode": "json", "data": { ... } }(如果处理程序缺少 JSON 分支则为 { "mode": "text_fallback", "content": ["..."] }。这既保持向后兼容性,又支持结构化消耗(参见 ADR 0006 和 ASR 1003)。
get_root:获取根文档(id/title/description/links/conformance 子集)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
STAC MCP Server
An MCP (Model Context Protocol) Server that provides access to STAC (SpatioTemporal Asset Catalog) APIs for geospatial data discovery and access. Supports dual output modes (text and structured json) for all tools.
The coverage badge is updated automatically on pushes to
mainby the CI workflow.
Overview
This MCP server enables AI assistants and applications to interact with STAC catalogs to:
- Search and browse STAC collections
- Find geospatial datasets (satellite imagery, weather data, etc.)
- Access metadata and asset information
- Perform spatial and temporal queries
Features
Available Tools
All tools accept an optional output_format parameter ("text" default, or "json"). JSON mode returns a single MCP TextContent whose text field is a compact JSON envelope: { "mode": "json", "data": { ... } } (or { "mode": "text_fallback", "content": ["..."] } if a handler lacks a JSON branch). This preserves backward compatibility while enabling structured consumption (see ADR 0006 and ASR 1003).
get_root: Fetch root document (id/title/description/links/conformance subset)get_conformance: List all conformance classes; optionally verify specific URIsget_capabilities: Get a summary of STAC API capabilities (query, sort, fields, queryables, aggregation, filter)search_collections: List and search available STAC collectionsget_collection: Get detailed information about a specific collection
安装
uvx --from git+https://github.com/wayfinder-foundry/stac-mcp stac-mcp