How to Use the Planet Labs MCP in LangChain
Build LangChain agents that chain Planet Labs API calls for automated satellite imagery analysis and delivery.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Planet Labs MCP to LangChain
Create your Vinkius account to connect Planet Labs to LangChain — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Chain Imagery Search and Delivery
Build agents that execute multi-step imagery workflows. Your agent can first call `create_saved_search` to define a monitoring area, like a farm or coastline. The tool returns a search ID, which is then passed as input to `get_search_results` in the next step of the chain to fetch the latest matching images. From there, the chain continues. If the results look good, your agent can take the original search parameters and call `create_subscription` to get new imagery delivered automatically. It’s a complete, observable sequence from ad-hoc search to automated delivery, with LangSmith tracing every step.
Add Ground Truth to Your Agents
Give your agents the ability to reason about image quality before taking action. Inside a ReAct loop, an agent can use `quick_search` to get a list of candidate images, then iterate through them, calling `get_item_details` and `get_cloud_coverage` for each one. Based on that data, the agent can decide which images are clear enough to use. For the keepers, it calls `get_item_assets` to get the final download URLs. This avoids wasting time and money downloading cloudy or irrelevant scenes.
Manage Your Planet Labs MCP Server
Your LangChain agent can manage its own monitoring configuration. Before creating a new search, it can call `list_saved_searches` to see if a similar one already exists. This prevents duplicate work and keeps your Planet Labs account clean. Same goes for data delivery. The agent can check the output of `list_subscriptions` to review active deliveries before adding a new one. This MCP Server handles the Planet Labs authentication, so your agent just focuses on the workflow logic.
Set up Planet Labs MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Create a ReAct agent
Pass the discovered tools to
create_react_agent()from LangGraph. The agent automatically routes Planet Labs tool calls through the MCP protocol. - 4
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
async with MultiServerMCPClient({
"planet-labs-mcp": {
"transport": "http",
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
}
}) as client:
tools = client.get_tools()
agent = create_react_agent(
ChatOpenAI(model="gpt-4o"),
tools,
)
result = await agent.ainvoke({
"messages": "List recent Planet Labs transactions"
})
print(result["messages"][-1].content) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Planet Labs. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Planet Labs MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Planet Labs MCP today
We host it, we monitor it, we maintain it. You just paste one token.