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:
unhealthyApplications: list the Unhealthy (DegradedandProgressing) Applications in Argo CDunhealthyApplicationResources: 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.24 (or higher) and Task
Build the binary with the following command:
task install
Build the Container image with the following command:
task build-image
Create 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).
On macOS, run the following command:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
and add the following MCP server definition:
{
"mcpServers": {
"argocd-mcp-server": {
"command": "<path/to/argocd-mcp-server>",
"args": [
"--transport",
"stdio",
"--argocd-token"
"<token>",
"--argocd-url",
"<url>",
"--insecure",
"<true|false>",
"debug",
"<true|false>"
]
}
}
}
Edit your ~/.cursor/mcp.json file with the following contents:
{
"mcpServers": {
"argocd-mcp-server": {
"command": "<path/to/argocd-mcp-server>",
"args": [
"--transport",
"stdio",
"--argocd-token",
"<token>",
"--argocd-url",
"<url>",
"--insecure",
"<true|false>",
"--debug",
"<true|false>"
]
}
}
}
Start the Argo CD MCP server from the binary after running task install:
argocd-mcp-server --transport=http --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 --transport http -e ARGOCD_MCP_URL=<url> -e ARGOCD_MCP_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