
Argo CD
STDIOMCP server enabling AI assistants to interact with Argo CD through natural language
MCP server enabling AI assistants to interact with Argo CD through natural language
An implementation of Model Context Protocol (MCP) server for Argo CD, enabling AI assistants to interact with your Argo CD applications through natural language. This server allows for seamless integration with Visual Studio Code and other MCP clients through stdio and HTTP stream transport protocols.
This project is maintained by Akuity, the creators of Argo Project.
Akuity is the enterprise company for Argo and Kargo, and provides the essential platform for end-to-end GitOps for Kubernetes. With the Akuity Platform, enterprises can deploy with managed Argo CD, promote seamlessly with Kargo, and gain real-time visibility into their infrastructure using Akuity Monitoring. Akuity was founded by Argo creators Hong Wang, Jesse Suen, and Alexander Matyushentsev, with a mission to empower both Platform and Application teams with the best tools for GitOps at enterprise scale.
.cursor/mcp.json
file in your project:{ "mcpServers": { "argocd-mcp": { "command": "npx", "args": [ "argocd-mcp@latest", "stdio" ], "env": { "ARGOCD_BASE_URL": "<argocd_url>", "ARGOCD_API_TOKEN": "<argocd_token>" } } } }
.vscode/mcp.json
file in your project:{ "servers": { "argocd-mcp-stdio": { "type": "stdio", "command": "npx", "args": [ "argocd-mcp@latest", "stdio" ], "env": { "ARGOCD_BASE_URL": "<argocd_url>", "ARGOCD_API_TOKEN": "<argocd_token>" } } } }
claude_desktop_config.json
configuration file:{ "mcpServers": { "argocd-mcp": { "command": "npx", "args": [ "argocd-mcp@latest", "stdio" ], "env": { "ARGOCD_BASE_URL": "<argocd_url>", "ARGOCD_API_TOKEN": "<argocd_token>" } } } }
If your Argo CD instance uses self-signed certificates or certificates from a private Certificate Authority (CA), you may need to add the following environment variable to your configuration:
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
This disables TLS certificate validation for Node.js when connecting to Argo CD instances using self-signed certificates or certificates from private CAs that aren't trusted by your system's certificate store.
Warning: Disabling SSL verification reduces security. Use this setting only in development environments or when you understand the security implications.
The server provides the following ArgoCD management tools:
list_applications
: List and filter all applicationsget_application
: Get detailed information about a specific applicationcreate_application
: Create a new applicationupdate_application
: Update an existing applicationdelete_application
: Delete an applicationsync_application
: Trigger a sync operation on an applicationget_application_resource_tree
: Get the resource tree for a specific applicationget_application_managed_resources
: Get managed resources for a specific applicationget_application_workload_logs
: Get logs for application workloads (Pods, Deployments, etc.)get_resource_events
: Get events for resources managed by an applicationget_resource_actions
: Get available actions for resourcesrun_resource_action
: Run an action on a resourcegit clone https://github.com/akuity/argocd-mcp.git cd argocd-mcp
pnpm install
pnpm run dev
Once the server is running, you can utilize the MCP server within Visual Studio Code or other MCP client.
To update the TypeScript type definitions based on the latest Argo CD API specification:
Download the swagger.json
file from the ArgoCD release page, for example here is the swagger.json link for ArgoCD v2.14.11.
Place the downloaded swagger.json
file in the root directory of the argocd-mcp
project.
Generate the TypeScript types from the Swagger definition by running the following command. This will create or overwrite the src/types/argocd.d.ts
file:
pnpm run generate-types
Update the src/types/argocd-types.ts
file to export the required types from the newly generated src/types/argocd.d.ts
. This step often requires manual review to ensure only necessary types are exposed.