env0 MCP Server
Published
At a glance
- Category
- Cloud & DevOps
- GitHub repository
- env0/mcp-server
- Watch out for
- It runs in Docker, so every client needs Docker installed and the image pulled.
env0 publishes this server itself, in the env0/mcp-server repository on GitHub, and ships it as the env0/mcp-server Docker image. It talks to the env0 API so an agent can list projects and environments, start or stop deployments, read plan logs and work with resources found by env0's Cloud Compass.
The container runs over stdio by default, which is what most clients expect. You can also start it in HTTP mode by setting MCP_TRANSPORT=http and publishing a port, which suits a shared or remote setup.
Authentication uses an env0 API key ID and secret, plus an organization ID if your account belongs to more than one organization. The agent gets whatever those API credentials allow.
How it connects
Your AI app
An assistant or agent that supports MCP
env0 MCP Server
Runs as
- Docker
Gives the agent
- Projects and environments
- Deployment control
- Plan logs and error analysis
- Deployment history
- Cloud Compass resources
- Generate IaC
env0
Signs in with
- API key
What it can do
- Projects and environments
- get-projects lists the organization's projects, and get-environments returns environments filtered by ID, name or project, with paging.
- Deployment control
- deploy-environment starts a new deployment of an existing environment, approve-environment approves a pending plan, and cancel-environment or abort-environment stop a queued or running deployment.
- Plan logs and error analysis
- get-plan-logs returns Terraform or OpenTofu plan output for the latest deployment, and get-error-analysis explains what failed in it.
- Deployment history
- search-deployments lists an environment's past deployments by status, and get-deployment-context pulls the step statuses and failed-step log for one of them.
- Cloud Compass resources
- get-cloud-configurations lists Cloud Compass configurations, and get-cloud-resources filters resources by provider, region, type, drift status or severity.
- Generate IaC
- generate-iac starts a job that writes Terraform or OpenTofu code for chosen cloud resources, and check-iac-job-status fetches the result.
Setting it up
You need Docker and env0 API credentials. Create an API key and secret in env0 (docs.env0.com/docs/api-keys), and copy your Organization ID from Organization Settings, General tab. For Claude Code, the README gives a single command: claude mcp add env0 -- docker run -i --rm -e ENV0_API_KEY=your-api-key-here -e ENV0_API_SECRET=your-api-secret-here -e ENV0_ORGANIZATION_ID=your-org-id-here env0/mcp-server. For Cursor, add an env0 entry to ~/.cursor/mcp.json (or .cursor/mcp.json in a project) with command docker and the same docker run arguments and -e variables. VS Code, Windsurf, Zed, Claude Desktop, Gemini CLI and Codex use the same arguments in their own config files. For HTTP mode, run the container with -p 3000:3000 -e PORT=3000 -e MCP_TRANSPORT=http and point the client at it.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Ask why yesterday's deployment of a staging environment failed, chaining search-deployments and get-deployment-context to read the failed step log.
- Review the plan logs of an environment waiting for approval, then approve it from the chat.
- Find AWS resources with high-severity drift in Cloud Compass.
- Generate Terraform or OpenTofu code for resources that were created by hand in the cloud console.
- Check which environments in a project need attention before a release.
Limitations and things to watch
- It runs in Docker, so every client needs Docker installed and the image pulled.
- The API key and secret go into the client config as plain environment variables, and the agent can do anything those credentials permit in env0.
- Write tools such as deploy-environment, approve-environment and abort-environment change real infrastructure, so an agent's call can apply or stop a deployment.
- The README notes that get-plan-logs is not the full plan; for full details you are pointed to the env0 console.
- IaC generation is asynchronous, and the README says jobs can take around a minute to finish.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /env0/mcp-server
- github.com /env0/mcp-server/blob/main/README.md
- hub.docker.com /r/env0/mcp-server
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.