https://github.com/akuity/argocd-mcp
An implementation of Model Context Protocol (MCP) server for Argo CD.
https://github.com/akuity/argocd-mcp
ai argocd argocd-mcp continuous-delivery continuous-deployment devops gitops kubernetes mcp mcp-server model-context-protocol model-context-protocol-servers
Last synced: 4 months ago
JSON representation
An implementation of Model Context Protocol (MCP) server for Argo CD.
- Host: GitHub
- URL: https://github.com/akuity/argocd-mcp
- Owner: akuity
- License: apache-2.0
- Created: 2025-04-16T02:42:48.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-05-21T09:41:34.000Z (5 months ago)
- Last Synced: 2025-06-06T02:44:58.185Z (4 months ago)
- Topics: ai, argocd, argocd-mcp, continuous-delivery, continuous-deployment, devops, gitops, kubernetes, mcp, mcp-server, model-context-protocol, model-context-protocol-servers
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/argocd-mcp
- Size: 106 KB
- Stars: 130
- Watchers: 1
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - **argocd-mcp** - An implementation of Model Context Protocol (MCP) server for Argo CD. `typescript` `ai` `argocd` `argocd-mcp` `continuous-delivery` `npm install akuity/argocd-mcp` (AI/ML)
- awesome-mcp-servers - **argocd-mcp** - An implementation of Model Context Protocol (MCP) server for Argo CD. `typescript` `ai` `argocd` `argocd-mcp` `continuous-delivery` `npm install akuity/argocd-mcp` (AI/ML)
- awesome-starts - akuity/argocd-mcp - An implementation of Model Context Protocol (MCP) server for Argo CD. (kubernetes)
- mcp-index - Argo CD MCP Server - Integrate Argo CD management through natural language, enabling interaction with applications and workflows. Supports communication via stdio and Server-Sent Events for seamless development integration. (Task and Project Management)
README
# Argo CD MCP Server
An implementation of [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server for [Argo CD](https://argo-cd.readthedocs.io/en/stable/), 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.
[
](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522argocd-mcp%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522argocd-mcp%2540latest%2522%252C%2522stdio%2522%255D%252C%2522env%2522%253A%257B%2522ARGOCD_BASE_URL%2522%253A%2522%253Cargocd_url%253E%2522%252C%2522ARGOCD_API_TOKEN%2522%253A%2522%253Cargocd_token%253E%2522%257D%257D) [
](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522argocd-mcp%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522argocd-mcp%2540latest%2522%252C%2522stdio%2522%255D%252C%2522env%2522%253A%257B%2522ARGOCD_BASE_URL%2522%253A%2522%253Cargocd_url%253E%2522%252C%2522ARGOCD_API_TOKEN%2522%253A%2522%253Cargocd_token%253E%2522%257D%257D)
This project is maintained by [Akuity](https://akuity.io/), 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.
---
## Features
- **Transport Protocols**: Supports both stdio and HTTP stream 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](https://argo-cd.readthedocs.io/en/stable/developer-guide/api-docs/#authorization))### Usage with Cursor
1. Follow the [Cursor documentation for MCP support](https://docs.cursor.com/context/model-context-protocol), and create a `.cursor/mcp.json` file in your project:
```json
{
"mcpServers": {
"argocd-mcp": {
"command": "npx",
"args": [
"argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "",
"ARGOCD_API_TOKEN": ""
}
}
}
}
```2. Start a conversation with Agent mode to use the MCP.
### Usage with VSCode
1. Follow the [Use MCP servers in VS Code documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers), and create a `.vscode/mcp.json` file in your project:
```json
{
"servers": {
"argocd-mcp-stdio": {
"type": "stdio",
"command": "npx",
"args": [
"argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "",
"ARGOCD_API_TOKEN": ""
}
}
}
}
```2. 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](https://modelcontextprotocol.io/quickstart/user), and create a `claude_desktop_config.json` configuration file:
```json
{
"mcpServers": {
"argocd-mcp": {
"command": "npx",
"args": [
"argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "",
"ARGOCD_API_TOKEN": ""
}
}
}
}
```2. Configure Claude Desktop to use this configuration file in settings.
### Self-signed Certificates
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.
## 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:
```bash
git clone https://github.com/akuity/argocd-mcp.git
cd argocd-mcp
```2. Install project dependencies:
```bash
pnpm install
```3. Start the development server with hot reloading enabled:
```bash
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](https://github.com/argoproj/argo-cd/releases), for example here is the [swagger.json link](https://github.com/argoproj/argo-cd/blob/v2.14.11/assets/swagger.json) 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:
```bash
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.