npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

planetary-computer-mcp

v1.0.1

Published

MCP server for querying Microsoft Planetary Computer STAC catalog

Downloads

190

Readme

🌍 planetary-computer-mcp

npm version Website License

Access petabytes of Earth observation data through natural conversation.

A Model Context Protocol (MCP) server that connects AI assistants to the Microsoft Planetary Computer — unlocking satellite imagery, climate data, land cover maps, and more. Query Sentinel-2, Landsat, NAIP aerial imagery, global DEMs, and 120+ geospatial datasets using simple spatial and temporal filters.

Sample Outputs

Add to VSCode, Cursor, Antigravity

Add the following to your mcp.json file (Cmd+Shift+P -> MCP: Add Server)

{
  "servers": {
    ...
    "planetary-computer": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "planetary-computer-mcp@latest"]
    },
  ...
  }
}

Install

npm install -g planetary-computer-mcp

# or locally
npx planetary-computer-mcp
bunx planetary-computer-mcp

Usage

Tools

  • search_stac: Query STAC catalog by collection, bbox, datetime, limit
  • get_collections: List all collections or get detailed info for a specific collection (assets, bands, resolutions)
  • describe_collection: Get structured metadata with RGB/DEM/SAR strategy and recommended tools
  • download_asset: Download GeoTIFF/assets with auto URL signing
  • download_visual: Download RGB images with smart rendering (JPG for optical/DEM, PNG for classified)
  • download_multispectral: Download specific bands into multi-band GeoTIFF
  • download_geometries: Download vector data (e.g., MS Buildings) with spatial filtering
  • download_zarr: Download spatial/temporal slices from Zarr collections (Daymet, ERA5, TerraClimate)
  • render_zarr_preview: Create heatmap PNG previews from downloaded Zarr data

Supported Collections:

  • Optical: sentinel-2-l2a, naip, landsat-c2-l2, hls2-l30/s30
  • DEM: cop-dem-glo-30, alos-dem
  • Land Cover: esa-worldcover, io-lulc-annual-v02, mtbs
  • SAR: sentinel-1-rtc
  • Vector: ms-buildings
  • Climate/Weather: daymet-daily-na, daymet-daily-hi, daymet-daily-pr, era5-pds, terraclimate

Examples

  • Search Sentinel-2: search_stac(collection="sentinel-2-l2a", bbox=[-122.5,47,-122,47.5], datetime="2024-06-01/2024-06-30")
  • Visual Download: download_visual(collection="sentinel-2-l2a", bbox=[-122.4,47.6,-122.3,47.7], datetime="2024-06-01/2024-06-30")
  • Multispectral: download_multispectral(collection="sentinel-2-l2a", assets=["B04","B08"], bbox=..., datetime=...)
  • Buildings: download_geometries(collection="ms-buildings", bbox=[-122.35,47.6,-122.32,47.62])
  • Climate Data: download_zarr(collection="daymet-daily-na", assets=["tmax","tmin"], bbox=[-122.5,47,-122,47.5], datetime="2024-01-01/2024-01-31")
  • Zarr Preview: render_zarr_preview(zarr_path="path/to/daymet_daily_na/tmax")

MCP Integration

Add to client config:

{
  "mcpServers": {
    "planetary-computer": {
      "command": "npx",
      "args": ["-y", "planetary-computer-mcp"]
    }
  }
}

Architecture

  • Language: TypeScript on Node.js ≥18
  • Framework: MCP SDK with stdio transport
  • API: Planetary Computer STAC catalog
  • DuckDB: Spatial queries on parquet
  • Features: Auto URL signing, streaming downloads, collection caching

Development

bun install               # Install deps
bun run build             # Compile to dist/
bun run format            # Format code
bun run check             # Typecheck, lint, prettier, tests
bun run test:integration  # Run all integration tests
bun run mcp               # Start MCP server