You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
planet-mcp is a local [mcp](https://modelcontextprotocol.io/introduction) server powered by the [Planet SDK](https://github.com/planetlabs/planet-client-python). It allows an AI agent/chat to interact with the Planet API using
4
-
the Planet CLI.
3
+
planet-mcp is a local [MCP](https://modelcontextprotocol.io/introduction) server powered by the [Planet SDK](https://github.com/planetlabs/planet-client-python). It allows an AI agent/chat to interact with the Planet API.
5
4
6
5
To get started with your preferred AI agent, find it in the Usage section below.
7
6
8
-
[TOC]
9
-
10
7
## Beta warning
11
8
12
-
**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. Always carefully review tool prompts before approving them. Use at your own risk.
9
+
**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.
13
10
14
11
Tools may be added, removed or altered based on testing/feedback.
15
12
16
-
It will consume AI tokens.
17
-
13
+
Reminder: MCP servers and tools will increase the number of tokens used during interactions with your LLM provider.
18
14
19
-
## Usage (stdio)
15
+
## Usage
20
16
21
-
####Prerequisites
17
+
### Prerequisites
22
18
23
19
1. Python
24
20
2. Planet SDK
25
21
26
-
To install the Planet SDK and `planet-mcp` from the Planet internal PyPI run the following commands:
22
+
To install the Planet SDK and MCP server, use `pip` or your preferred package manager:
3. Set up gemini by running `gemini` and following the instructions.
58
-
4. Quit and add the following to your `~/.gemini/settings.json` file:
59
-
60
-
```json
61
-
"mcpServers": {
62
-
"planet": {
63
-
"command": "planet-mcp",
64
-
"description": "Planet MCP Server",
65
-
"timeout": 30000,
66
-
"trust": false
67
-
}
68
-
}
69
-
```
70
-
71
-
#### GitHub Copilot
72
-
73
-
To allow GitHub Copilot to read these MCP tools, you need to configure the `mcp.json` file. Here's how:
74
-
75
-
1.**Locate or create the `mcp.json` file:**
76
-
77
-
This file is typically located in here: `/Library/Application Support/Code/User/profiles/-1ccb06ef` If it doesn't exist, you can create it, or create a `.vscode/mcp.json` in your repo.
43
+
### Supported AI assistants
78
44
79
-
2.**Add the following configuration:**
80
-
81
-
```json
82
-
{
83
-
"servers": {
84
-
"planet": {
85
-
"command": "planet-mcp",
86
-
}
87
-
},
88
-
"inputs": []
89
-
}
90
-
```
45
+
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).
91
46
92
47
#### Claude Code
93
48
94
-
To use this MCP server with [Claude Code](https://claude.ai/code), run the following command:
49
+
To connect with [Claude Code](https://claude.ai/code), run the following command:
95
50
96
51
```bash
97
52
claude mcp add planet planet-mcp
98
53
```
99
54
100
-
This will add the planet-mcp server to your Claude Code configuration, allowing you to interact with Planet's API through Claude Code's terminal interface.
55
+
#### Gemini CLI
56
+
57
+
Add the following to your `~/.gemini/settings.json` file:
58
+
59
+
```json
60
+
"mcpServers": {
61
+
"planet": {
62
+
"command": "planet-mcp",
63
+
"description": "Planet MCP Server",
64
+
"timeout": 30000,
65
+
"trust": false
66
+
}
67
+
}
68
+
```
101
69
70
+
#### GitHub Copilot
102
71
72
+
To connect using GitHub Copilot, configure the `mcp.json` file (see [VSCode docs](https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_add-an-mcp-server)) with the following configuration:
73
+
74
+
```json
75
+
{
76
+
"servers": {
77
+
"planet": {
78
+
"command": "planet-mcp"
79
+
}
80
+
},
81
+
"inputs": []
82
+
}
83
+
```
103
84
104
-
###Example queries
85
+
## Example queries
105
86
106
87
- Does Planet have any recent imagery over Puget Sound?
107
88
- List my subscriptions
108
89
- Get my June 2025 subscriptions and cancel the ones with name Netherlands
109
90
- Create a PlanetScope subscription with the first item in my Netherlands Feature Collection.
110
91
92
+
## Troubleshooting
93
+
94
+
### Unable to launch planet-mcp (ENOENT, No such file or directory, etc.):
95
+
96
+
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:
0 commit comments