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 Pydantic AI?
Pydantic AI validates every Portainer tool response against typed schemas, catching data inconsistencies at build time. Connect 6 tools through Vinkius and switch between OpenAI, Anthropic, or Gemini without changing your integration code. full type safety, structured output guarantees, and dependency injection for testable agents.
- —
Full type safety: every MCP tool response is validated against Pydantic models, catching data inconsistencies before they reach your application
- —
Model-agnostic architecture. switch between OpenAI, Anthropic, or Gemini without changing your Portainer integration code
- —
Structured output guarantee: Pydantic AI ensures tool results conform to defined schemas, eliminating runtime type errors
- —
Dependency injection system cleanly separates your Portainer connection logic from agent behavior for testable, maintainable code
Portainer in Pydantic AI
Portainer and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Portainer to Pydantic AI 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 Pydantic AI
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 Pydantic AI 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 Pydantic AI
Every tool call from Pydantic AI 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 Pydantic AI discover MCP tools?
Create an MCPServerHTTP instance with the server URL. Pydantic AI connects, discovers all tools, and generates typed Python interfaces automatically.
Does Pydantic AI validate MCP tool responses?
Yes. When you define result types as Pydantic models, every tool response is validated against the schema. Invalid data raises a clear error instead of silently corrupting your pipeline.
Can I switch LLM providers without changing MCP code?
Absolutely. Pydantic AI abstracts the model layer. your Portainer MCP integration works identically with OpenAI, Anthropic, Google, or any supported provider.
MCPServerHTTP not found
Update: pip install --upgrade pydantic-ai
Explore More MCP Servers
View all →
Buzzsprout
7 toolsManage your podcast via Buzzsprout — track episodes, monitor plays, and manage content directly from any AI agent.

CloudConvert
8 toolsManage file conversions via CloudConvert — track jobs, monitor tasks, and automate file processing directly from any AI agent.

OpenFGA (Fine-Grained Auth)
16 toolsManage fine-grained authorization with OpenFGA — create stores, define authorization models, and manage relationship tuples directly from your AI agent.

Meituan Waimai Open API / 美团外卖
10 toolsChina's leading food delivery platform — manage store operations, orders, and delivery tracking via AI.
