Argo CD MCP is a Model Context Protocol Server to converse with Argo CD from a UI such as Anthropic's Claude or Block's Goose
- Prompts:
argocd-unhealthy-application-resources: list the Unhealthy (DegradedandProgressing) Applications in Argo CD
- Tools:
argocd_list_unhealthy_applications: list the unhealthy (DegradedandProgressing) Applications in Argo CDargocd_list_unhealthy_application_resources: list unhealthy resources of a given Argo CD Application
Example:
list the unhealthy applications on Argo CD and for each one, list their unhealthy resources
Requires Go 1.25 (or higher) and Task
task test test-e2e lintNote: the e2e tests rely on Podman and the podman-compose extension to build images and run containers for the MCP server and a mock instance of Argo CD. See Podman installation and podman-compose extension installtion to setup these tools in your local environment.
Build the binary using the following command:
task installBuild the Container image with the following command:
task build-imageCreate a local account in Argo CD with apiKey capabilities only (not need for login). See Argo CD documentation for more information.
Once create, generate a token via the 'Settings > Accounts' page in the Argo CD UI or via the argocd account generate-token command and store the token in a token-file which will be passed as an argument when running the server (see below).
Start the Argo CD MCP server from the binary after running task install:
argocd-mcp-server --argocd-url=<url> --argocd-token=<token> --debug=<true|false> --listen=<[host]:port>
Or start the Argo CD MCP server as a container after running task build-image:
podman run -d --name argocd-mcp-server -e ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0 -e ARGOCD_URL=<url> -e ARGOCD_TOKEN=<token> -e ARGOCD_MCP_DEBUG=<true|false> -p 8080:8080 argocd-mcp-server:latestEdit your ~/.cursor/mcp.json file with the following contents:
{
"mcpServers": {
"argocd-mcp-server": {
"url": "http://localhost:8080/mcp"
}
}
}
The code is available under the Apache License 2.0