Skip to main content
Glama
tharlestsa

OpenLandMap MCP Server

by tharlestsa

catalog_info

Retrieve metadata about the OpenLandMap STAC catalog, including its identifier, version, and available environmental datasets for geospatial analysis.

Instructions

Return metadata about the OpenLandMap STAC root catalog.

Returns the catalog identifier, description, STAC version, total number of collections, and conformance classes.

Example return: {"id": "openlandmap", "stac_version": "1.0.0", "total_collections": 104, ...}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The catalog_info tool handler implementation. It uses the STAC client to fetch catalog metadata and return it formatted as a CatalogInfo model.
    @mcp.tool()
    async def catalog_info() -> dict:
        """Return metadata about the OpenLandMap STAC root catalog.
    
        Returns the catalog identifier, description, STAC version, total number
        of collections, and conformance classes.
    
        Example return:
            {"id": "openlandmap", "stac_version": "1.0.0", "total_collections": 104, ...}
        """
        try:
            catalog = await client.get_catalog()
            index = await client.get_catalog_index()
        except STACClientError as exc:
            return {"error": f"Failed to fetch catalog: {exc}"}
    
        info = CatalogInfo(
            id=catalog.get("id", ""),
            description=catalog.get("description", ""),
            stac_version=catalog.get("stac_version", ""),
            total_collections=len(index),
            conformsTo=catalog.get("conformsTo", []),
        )
        return info.model_dump()
  • The Pydantic model defining the schema for the catalog_info tool's output.
    class CatalogInfo(BaseModel):
        """Root catalog metadata."""
    
        model_config = ConfigDict(frozen=True)
    
        id: str
        description: str
        stac_version: str

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tharlestsa/openlandmap_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server