An MCP (Model Context Protocol) server for Devtron — Kubernetes-native CI/CD. Manage apps, trigger builds, deploy pipelines, and check deployment status through any MCP-compatible AI assistant.
- App Management — list apps, get app details, browse environments
- CI Pipelines — list CI pipelines, trigger builds
- CD Deployments — trigger deployments, check status, view release history
- Cluster Management — list and inspect Kubernetes clusters connected to Devtron
| Tool | Description |
|---|---|
devtron_list_apps |
List all apps (optionally filter by team) |
devtron_get_app |
Get details of a specific app |
devtron_list_environments |
List environments for an app |
devtron_get_deployment_status |
Check deployment status for an app+environment |
devtron_get_release_history |
View release history for an app+environment |
devtron_list_ci_pipelines |
List CI pipelines for an app |
devtron_trigger_ci_build |
Trigger a CI build |
devtron_trigger_deployment |
Trigger a CD deployment |
devtron_check_deployment_status |
Poll deployment status after triggering |
devtron_list_clusters |
List all clusters registered in Devtron |
devtron_get_cluster |
Get details of a specific cluster |
- Node.js 18+ or Bun
- A running Devtron instance
- Devtron API token (from Devtron → Global Configs → API Tokens)
npm install -g devtron-mcp-serverOr use directly with npx:
npx devtron-mcp-serverAdd to your MCP client settings (e.g. ~/.claude/settings.json, Cursor settings, etc.) under mcpServers:
"devtron": {
"command": "npx",
"args": ["-y", "devtron-mcp-server"],
"env": {
"DEVTRON_BASE_URL": "https://your-devtron-instance.example.com",
"DEVTRON_API_TOKEN": "your-api-token-here"
}
}- Log into Devtron
- Go to Global Configs → API Tokens
- Create a new token with appropriate permissions
- Copy the token value
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
DEVTRON_BASE_URL=https://your-devtron.example.com \
DEVTRON_API_TOKEN=your-token \
npm run devThis server targets the Devtron orchestrator API (/orchestrator/api/v1). Verify endpoint paths match your Devtron version at {baseUrl}/orchestrator/swagger.
MIT