Skip to main content

No project description provided

Project description

Planet MCP

planet-mcp is a local MCP server powered by the Planet SDK. It allows an AI agent/chat to interact with the Planet API.

To get started with your preferred AI agent, find it in the Usage section below.

Beta warning

This is experimental software. This MCP service will invoke the Planet SDK/CLI on your behalf. It can create and modify orders, subscriptions, and more. Do not disable tool approvals and always carefully review tool prompts before approving them. Use at your own risk.

Tools may be added, removed or altered based on testing/feedback.

Reminder: MCP servers and tools will increase the number of tokens used during interactions with your LLM provider.

We would love to hear back from you after using this, if you have a feature request or find something isn't working please file a Github issue for us! Thanks

Usage

Prerequisites

  1. Python 3.11 or higher

To install the Planet MCP server, use pip or your preferred package manager:

pip install planet-mcp

This will also install the planet SDK.

Authentication

You must authenticate your Planet account before using the local MCP server. You can do this by running:

planet auth login

NOTE

if you have PL_API_KEY set globaly, you should run unset PL_API_KEY and then planet auth reset and planet auth login again.


Supported AI assistants

The following AI agents have been tested with the Planet local MCP. For other agents, refer to their documentation for adding a custom MCP server (the Planet local MCP uses stdio transport).

Claude Code

To connect with Claude Code, run the following command:

claude mcp add planet planet-mcp

Gemini CLI

Add the following to your ~/.gemini/settings.json file:

"mcpServers": {
  "planet": {
    "command": "planet-mcp",
    "description": "Planet MCP Server",
    "timeout": 30000,
    "trust": false
  }
}

GitHub Copilot

To connect using GitHub Copilot, configure the mcp.json file (see VSCode docs) with the following configuration:

{
  "servers": {
    "planet": {
      "command": "planet-mcp"
    }
  },
  "inputs": []
}

Customizing the tools

If you'd like, you can enable or disable specific tools in the MCP server. For example, if you're only working with the orders tooling: You can start the server with just the that enabled: --include-tags=orders

If you want to keep the defaults, but disable a certain tool, you can: --exclude-tags=destinations

In order to disable more than one tool you can provide a comma separated list like: --exclude-tags=destinations,moasics

By default, we have disabled download tools and the subscriptions tools, as we have found those tools don't work very well with LLMs at the moment.

Example queries

  • Does Planet have any recent imagery over Puget Sound?
  • List my feature collections
  • Order me the latest high-res imagery over the Netherlands
  • Create a PlanetScope order with the first item in my Netherlands Feature Collection.

Troubleshooting

Unable to launch planet-mcp (ENOENT, No such file or directory, etc.):

This is likely due to the planet-mcp package being installed to a different Python environment than the one your AI agent is using. The easiest way to resolve this is to run which planet-mcp after installing the package, and then copy the full path to your AI agent's MCP configuration. For example, if which planet-mcp returns /home/user/.local/share/virtualenvs/test/bin/planet-mcp, your config file would look like:

{
  "servers": {
    "planet": {
      "command": "/home/user/.local/share/virtualenvs/test/bin/planet-mcp"
    }
  }
}

Local dev

Prerequisites

  • python (>= 3.10) + uv
  • npx + friends (node >= 20) (to run inspector, if desired)

With Makefile

  1. make dev-up
  2. Optional, make inspector

Without Makefile

  1. Create and activate virtual environment using uv:

    uv venv
    
    source .venv/bin/activate
    
  2. Install dependencies using uv:

    uv pip install -e '.'
    
  3. Run mcp server

    planet-mcp
    

Optional run the inspector with

uv run fastmcp dev src/planet_mcp/main.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

planet_mcp-0.1.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

planet_mcp-0.1.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file planet_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: planet_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for planet_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ecadaccd40745678155758605eb6b11192bc22028d815c0e53d0bad896633267
MD5 c8f412df2de2d0738defaa3c60f38f18
BLAKE2b-256 24b76a46658be75872029bfc133754c4f9efa28a7076088473c554a57b2bad5d

See more details on using hashes here.

File details

Details for the file planet_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: planet_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for planet_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a30e1bccd6f1045ce5c073c894c30a6b77651676e9d214400b6ada80e5a4fed7
MD5 7d02a80042a633b3d54da48361e5344b
BLAKE2b-256 988cec7033f4d1e315ed407e963de3ad2795ace6a09ec168a1d2e77a1b40c30e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page