Skip to main content
Glama

STAC MCP Server

by BnJam

STAC MCP Server

An MCP (Model Context Protocol) Server that provides access to STAC (SpatioTemporal Asset Catalog) APIs for geospatial data discovery and access.

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

  • search_collections: List and search available STAC collections
  • get_collection: Get detailed information about a specific collection
  • search_items: Search for STAC items with spatial, temporal, and attribute filters
  • get_item: Get detailed information about a specific STAC item

Supported STAC Catalogs

By default, the server connects to Microsoft Planetary Computer STAC API, but it can be configured to work with any STAC-compliant catalog.

Installation

pip install stac-mcp

Or for development:

git clone https://github.com/BnJam/stac-mcp.git cd stac-mcp pip install -e .

Usage

As an MCP Server

Configure your MCP client to connect to this server:

{ "mcpServers": { "stac": { "command": "stac-mcp" } } }

Command Line

You can also run the server directly:

stac-mcp

Examples

Search Collections
# Find all available collections search_collections(limit=20) # Search collections from a different catalog search_collections(catalog_url="https://earth-search.aws.element84.com/v1", limit=10)
Search Items
# Search for Landsat data over San Francisco search_items( collections=["landsat-c2l2-sr"], bbox=[-122.5, 37.7, -122.3, 37.8], datetime="2023-01-01/2023-12-31", limit=10 ) # Search with additional query parameters search_items( collections=["sentinel-2-l2a"], bbox=[-74.1, 40.6, -73.9, 40.8], # New York area query={"eo:cloud_cover": {"lt": 10}}, limit=5 )
Get Collection Details
# Get information about a specific collection get_collection("landsat-c2l2-sr")
Get Item Details
# Get detailed information about a specific item get_item("landsat-c2l2-sr", "LC08_L2SR_044034_20230815_02_T1")

Development

Setup

git clone https://github.com/BnJam/stac-mcp.git cd stac-mcp pip install -e ".[dev]"

Testing

pytest

Linting

black stac_mcp/ ruff check stac_mcp/

STAC Resources

License

Apache 2.0 - see LICENSE file for details.

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables 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.

  1. Overview
    1. Features
      1. Available Tools
      2. Supported STAC Catalogs
    2. Installation
      1. Usage
        1. As an MCP Server
        2. Command Line
        3. Examples
      2. Development
        1. Setup
        2. Testing
        3. Linting
      3. STAC Resources
        1. License

          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/BnJam/stac-mcp'

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