Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

argocd-mcp

MCP.Pizza Chef: akuity

argocd-mcp is a Model Context Protocol (MCP) server implementation for Argo CD, allowing AI assistants to interact with Argo CD applications using natural language. It supports integration with MCP clients like Visual Studio Code via stdio and Server-Sent Events (SSE), facilitating seamless AI-driven workflows for managing continuous delivery pipelines.

Use This MCP server To

Control Argo CD applications using natural language commands Integrate Argo CD with AI assistants in Visual Studio Code Automate deployment status queries via AI interaction Trigger Argo CD sync operations through conversational interfaces Monitor application health and events using AI-driven queries Enable multi-step reasoning for Argo CD workflows with LLMs Bridge Argo CD with other MCP-enabled tools for enhanced automation

README

Argo CD MCP Server

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 both stdio and Server-Sent Events (SSE) transport protocols.

argocd-mcp MCP server

Install in VS Code Install in VS Code Insiders

This project is maintained by Akuity, the creators of Argo Project.

akuity

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.


argocd-mcp-demo

Features

  • Transport Protocols: Supports both stdio and SSE transport modes for flexible integration with different clients
  • Complete Argo CD API Integration: Provides comprehensive access to Argo CD resources and operations
  • AI Assistant Ready: Pre-configured tools for AI assistants to interact with Argo CD in natural language

Installation

Prerequisites

  • Node.js (v18 or higher recommended)
  • pnpm package manager (for development)
  • Argo CD instance with API access
  • Argo CD API token (see the docs for instructions)

Usage with Cursor

  1. Follow the Cursor documentation for MCP support, and create a .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>"
      }
    }
  }
}
  1. Start a conversation with Agent mode to use the MCP.

Usage with VSCode

  1. Follow the Use MCP servers in VS Code documentation, and create a .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>"
      }
    }
  }
}
  1. Start a conversation with an AI assistant in VS Code that supports MCP.

Usage with Claude Desktop

  1. Follow the MCP in Claude Desktop documentation, and create a 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>"
      }
    }
  }
}
  1. Configure Claude Desktop to use this configuration file in settings.

Available Tools

The server provides the following ArgoCD management tools:

Application Management

  • list_applications: List and filter all applications
  • get_application: Get detailed information about a specific application
  • create_application: Create a new application
  • update_application: Update an existing application
  • delete_application: Delete an application
  • sync_application: Trigger a sync operation on an application

Resource Management

  • get_application_resource_tree: Get the resource tree for a specific application
  • get_application_managed_resources: Get managed resources for a specific application
  • get_application_workload_logs: Get logs for application workloads (Pods, Deployments, etc.)
  • get_resource_events: Get events for resources managed by an application
  • get_resource_actions: Get available actions for resources
  • run_resource_action: Run an action on a resource

For Development

  1. Clone the repository:
git clone https://github.com/akuity/argocd-mcp.git
cd argocd-mcp
  1. Install project dependencies:
pnpm install
  1. Start the development server with hot reloading enabled:
# For SSE mode with hot reloading
pnpm run dev

Once the server is running, you can utilize the MCP server within Visual Studio Code or other MCP client.

Upgrading ArgoCD Types

To update the TypeScript type definitions based on the latest Argo CD API specification:

  1. Download the swagger.json file from the ArgoCD release page, for example here is the swagger.json link for ArgoCD v2.14.11.

  2. Place the downloaded swagger.json file in the root directory of the argocd-mcp project.

  3. 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
  4. 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.

argocd-mcp FAQ

How do I configure argocd-mcp to connect to my Argo CD instance?
Set the ARGOCD_BASE_URL and ARGOCD_API_TOKEN environment variables with your Argo CD URL and API token before running the server.
What transport protocols does argocd-mcp support?
It supports stdio and Server-Sent Events (SSE) for communication with MCP clients.
Can argocd-mcp be used with MCP clients other than Visual Studio Code?
Yes, it is compatible with any MCP client supporting stdio or SSE protocols.
Is argocd-mcp secure when connecting to Argo CD?
Security depends on your Argo CD API token management and network setup; argocd-mcp uses standard secure protocols for communication.
Does argocd-mcp support multi-step workflows?
Yes, it enables multi-step reasoning and interaction with Argo CD applications through AI assistants.
Which LLM providers can I use with argocd-mcp?
You can use OpenAI, Anthropic Claude, and Google Gemini models with MCP clients connected to argocd-mcp.
How do I install argocd-mcp?
You can install it via npm using 'npx argocd-mcp@latest' and configure environment variables accordingly.
Can argocd-mcp provide real-time updates from Argo CD?
Yes, using Server-Sent Events (SSE), it can stream real-time application status updates to MCP clients.