Compatible with every major AI agent and IDE
What is the Portainer MCP Server?
Connect your Portainer instance to any AI agent and orchestrate your containerized infrastructure through natural conversation.
What you can do
- Container Management — List all Docker containers in any environment, create new ones from images, and start existing containers.
- Environment Orchestration — Add and manage new local or remote Docker/Kubernetes environments (endpoints) to your Portainer setup.
- Admin Control — Initialize admin accounts on fresh installations and authenticate to receive secure JWT tokens.
- Configuration Control — Deploy containers with custom configurations, including exposed ports and host settings via JSON.
How it works
- Subscribe to this server
- Enter your Portainer URL and API Key
- Start managing your devops infrastructure from Claude, Cursor, or any MCP-compatible client
Who is this for?
- DevOps Engineers — quickly check container statuses and restart services without leaving the terminal or chat.
- Developers — deploy new testing environments or images directly from the code editor.
- System Administrators — manage multiple remote environments and endpoints through a unified AI interface.
Built-in capabilities (6)
Add a new environment (endpoint) to Portainer
Authenticate to receive a JWT token
Create a new Docker container
Initialize Portainer admin password
List Docker containers in an environment
Start a Docker container
Why LangChain?
LangChain's ecosystem of 500+ components combines seamlessly with Portainer through native MCP adapters. Connect 6 tools via Vinkius and use ReAct agents, Plan-and-Execute strategies, or custom agent architectures. with LangSmith tracing giving full visibility into every tool call, latency, and token cost.
- —
The largest ecosystem of integrations, chains, and agents. combine Portainer MCP tools with 500+ LangChain components
- —
Agent architecture supports ReAct, Plan-and-Execute, and custom strategies with full MCP tool access at every step
- —
LangSmith tracing gives you complete visibility into tool calls, latencies, and token usage for production debugging
- —
Memory and conversation persistence let agents maintain context across Portainer queries for multi-turn workflows
Portainer in LangChain
Portainer and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Portainer to LangChain through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Portainer in LangChain
The Portainer MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 6 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in LangChain only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
Portainer for LangChain
Every tool call from LangChain to the Portainer MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
How do I see all containers running in a specific environment?
Use the list_docker_containers tool by providing the specific endpoint_id. The agent will return a list of all containers managed within that Portainer environment.
Can I add a new remote Docker endpoint through the AI?
Yes! Use the add_endpoint action. You can specify the name, set the type to 2 (Remote), and provide the URL (e.g., tcp://10.0.0.1:2375) to connect a new environment.
Is it possible to deploy a container with specific port mappings?
Yes. When using create_docker_container, you can provide a config_json string containing standard Docker API parameters like ExposedPorts or HostConfig to define your network and port requirements.
How does LangChain connect to MCP servers?
Use langchain-mcp-adapters to create an MCP client. LangChain discovers all tools and wraps them as native LangChain tools compatible with any agent type.
Which LangChain agent types work with MCP?
All agent types including ReAct, OpenAI Functions, and custom agents work with MCP tools. The tools appear as standard LangChain tools after the adapter wraps them.
Can I trace MCP tool calls in LangSmith?
Yes. All MCP tool invocations appear as traced steps in LangSmith, showing input parameters, response payloads, latency, and token usage.
MultiServerMCPClient not found
Install: pip install langchain-mcp-adapters
Explore More MCP Servers
View all →
Eventzilla
10 toolsEquip your AI agent to manage event registrations, track ticket orders, and monitor discount codes via the Eventzilla API.

Mailchimp
10 toolsSynchronize marketing contacts — list audiences, control subscriber limits, and edit campaign vectors autonomously.

Gainsight CS
12 toolsManage customer success, track health scores, and oversee the timeline via AI agents with Gainsight CS.

Firecrawl
4 toolsTurn any website into clean, LLM-ready Markdown with a single API call — scrape, crawl, search, and map the entire web for your AI agent.
