argocd-mcp
OfficialArgo CD MCP Server
Eine Implementierung des Model Context Protocol (MCP) -Servers für Argo CD ermöglicht KI-Assistenten die Interaktion mit Ihren Argo CD-Anwendungen über natürliche Sprache. Dieser Server ermöglicht die nahtlose Integration mit Visual Studio Code und anderen MCP-Clients über die Transportprotokolle stdio und Server-Sent Events (SSE).
Dieses Projekt wird von Akuity , den Entwicklern des Argo-Projekts, gepflegt.
Akuity ist das Enterprise-Unternehmen von Argo und Kargo und bietet die grundlegende Plattform für End-to-End-GitOps für Kubernetes. Mit der Akuity-Plattform können Unternehmen mit verwaltetem Argo CD bereitstellen, nahtlos mit Kargo werben und mithilfe von Akuity Monitoring Echtzeit-Einblicke in ihre Infrastruktur erhalten. Akuity wurde von den Argo-Entwicklern Hong Wang, Jesse Suen und Alexander Matyushentsev mit dem Ziel gegründet, Plattform- und Anwendungsteams mit den besten Tools für GitOps im Unternehmensmaßstab auszustatten.
Merkmale
Transportprotokolle : Unterstützt sowohl den Standard- als auch den SSE-Transportmodus für eine flexible Integration mit verschiedenen Clients
Vollständige Argo CD API-Integration : Bietet umfassenden Zugriff auf Argo CD-Ressourcen und -Operationen
Bereit für KI-Assistenten : Vorkonfigurierte Tools für KI-Assistenten zur Interaktion mit Argo CD in natürlicher Sprache
Related MCP server: OpsLevel MCP
Installation
Voraussetzungen
Node.js (v18 oder höher empfohlen)
pnpm-Paketmanager (für die Entwicklung)
Argo CD-Instanz mit API-Zugriff
Argo CD API-Token ( Anweisungen finden Sie in der Dokumentation )
Verwendung mit Cursor
Befolgen Sie die Cursor-Dokumentation zur MCP-Unterstützung und erstellen Sie eine
.cursor/mcp.json-Datei in Ihrem Projekt:
{
"mcpServers": {
"argocd-mcp": {
"command": "npx",
"args": [
"argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "<argocd_url>",
"ARGOCD_API_TOKEN": "<argocd_token>"
}
}
}
}Starten Sie eine Unterhaltung im Agentenmodus, um das MCP zu verwenden.
Verwendung mit VSCode
Befolgen Sie die Anweisungen in der Dokumentation „MCP-Server in VS Code verwenden“ und erstellen Sie in Ihrem Projekt eine Datei
.vscode/mcp.json:
{
"servers": {
"argocd-mcp-stdio": {
"type": "stdio",
"command": "npx",
"args": [
"argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "<argocd_url>",
"ARGOCD_API_TOKEN": "<argocd_token>"
}
}
}
}Beginnen Sie eine Unterhaltung mit einem KI-Assistenten in VS Code, der MCP unterstützt.
Verwendung mit Claude Desktop
Befolgen Sie die MCP-Anweisungen in der Claude Desktop-Dokumentation und erstellen Sie eine Konfigurationsdatei
claude_desktop_config.json:
{
"mcpServers": {
"argocd-mcp": {
"command": "npx",
"args": [
"argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "<argocd_url>",
"ARGOCD_API_TOKEN": "<argocd_token>"
}
}
}
}Konfigurieren Sie Claude Desktop so, dass diese Konfigurationsdatei in den Einstellungen verwendet wird.
Verfügbare Tools
Der Server bietet die folgenden ArgoCD-Verwaltungstools:
Anwendungsmanagement
list_applications: Alle Anwendungen auflisten und filternget_application: Erhalten Sie detaillierte Informationen zu einer bestimmten Anwendungcreate_application: Erstellen Sie eine neue Anwendungupdate_application: Aktualisieren Sie eine vorhandene Anwendungdelete_application: Löscht eine Anwendungsync_application: Lösen Sie einen Synchronisierungsvorgang für eine Anwendung aus
Ressourcenmanagement
get_application_resource_tree: Ruft den Ressourcenbaum für eine bestimmte Anwendung abget_application_managed_resources: Verwaltete Ressourcen für eine bestimmte Anwendung abrufenget_application_workload_logs: Protokolle für Anwendungs-Workloads abrufen (Pods, Bereitstellungen usw.)get_resource_events: Ereignisse für von einer Anwendung verwaltete Ressourcen abrufenget_resource_actions: Verfügbare Aktionen für Ressourcen abrufenrun_resource_action: Führen Sie eine Aktion für eine Ressource aus
Für die Entwicklung
Klonen Sie das Repository:
git clone https://github.com/akuity/argocd-mcp.git
cd argocd-mcpProjektabhängigkeiten installieren:
pnpm installStarten Sie den Entwicklungsserver mit aktiviertem Hot Reloading:
# For HTTP mode with hot reloading
pnpm run dev
# For SSE mode with hot reloading
pnpm run dev-sseSobald der Server läuft, können Sie den MCP-Server in Visual Studio Code oder einem anderen MCP-Client verwenden.
Aktualisieren von ArgoCD-Typen
So aktualisieren Sie die TypeScript-Typdefinitionen basierend auf der neuesten Argo CD-API-Spezifikation:
Laden Sie die Datei
swagger.jsonvon der ArgoCD-Releaseseite herunter. Hier ist beispielsweise der Link zu swagger.json für ArgoCD v2.14.11.Platzieren Sie die heruntergeladene Datei
swagger.jsonim Stammverzeichnis desargocd-mcpProjekts.Generieren Sie die TypeScript-Typen aus der Swagger-Definition, indem Sie den folgenden Befehl ausführen. Dadurch wird die Datei
src/types/argocd.d.tserstellt oder überschrieben:pnpm run generate-typesAktualisieren Sie die Datei
src/types/argocd-types.tsum die benötigten Typen aus der neu generiertensrc/types/argocd.d.tszu exportieren. Dieser Schritt erfordert häufig eine manuelle Überprüfung, um sicherzustellen, dass nur die erforderlichen Typen angezeigt werden.
Available Tools
14 toolscreate_applicationC
create_application creates a new ArgoCD application in the specified namespace. The application.metadata.namespace field determines where the Application resource will be created (e.g., "argocd", "argocd-apps", or any custom namespace).
Inputs: application (required).
delete_applicationC
delete_application deletes application. Specify applicationNamespace if the application is in a non-default namespace to avoid permission errors.
Inputs: applicationName (required), applicationNamespace, cascade, propagationPolicy.
get_applicationB
get_application returns application by application name. Optionally specify the application namespace to get applications from non-default namespaces.
Inputs: applicationName (required), applicationNamespace.
get_application_eventsC
get_application_events returns events for application by application name
Inputs: applicationName (required).
get_application_managed_resourcesA
get_application_managed_resources returns managed resources for application by application name with optional filtering. Use filters to avoid token limits with large applications. Examples: kind="ConfigMap" for config maps only, namespace="production" for specific namespace, or combine multiple filters.
Inputs: applicationName (required), kind, namespace, name, +4 more.
get_application_resource_treeC
get_application_resource_tree returns resource tree for application by application name
Inputs: applicationName (required).
get_application_workload_logsC
get_application_workload_logs returns logs for application workload (Deployment, StatefulSet, Pod, etc.) by application name and resource ref and optionally container name
Inputs: applicationName (required), applicationNamespace (required), resourceRef (required), container (required).
get_resource_actionsC
get_resource_actions returns actions for a resource that is managed by an application
Inputs: applicationName (required), applicationNamespace (required), resourceRef (required).
get_resource_eventsC
get_resource_events returns events for a resource that is managed by an application
Inputs: applicationName (required), applicationNamespace (required), resourceUID (required), resourceNamespace (required), +1 more.
get_resourcesA
get_resources return manifests for resources specified by resourceRefs. If resourceRefs is empty or not provided, fetches all resources managed by the application.
Inputs: applicationName (required), applicationNamespace (required), resourceRefs.
list_applicationsC
list_applications returns list of applications
Inputs: search, limit, offset.
run_resource_actionC
run_resource_action runs an action on a resource
Inputs: applicationName (required), applicationNamespace (required), resourceRef (required), action (required).
sync_applicationC
sync_application syncs application. Specify applicationNamespace if the application is in a non-default namespace to avoid permission errors.
Inputs: applicationName (required), applicationNamespace, dryRun, prune, +2 more.
update_applicationD
update_application updates application
Inputs: applicationName (required), application (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct aspect of ArgoCD application management. While get_application_events and get_resource_events could be confused, descriptions clarify their scope. Overall, purposes are clearly separated.
All tools use consistent snake_case with verb_noun pattern (e.g., create_application, get_application_events). The naming is predictable and follows a clear convention.
14 tools is well-scoped for an ArgoCD MCP server, covering CRUD operations, synchronization, logs, events, and resource management without being excessive.
The tool set covers core application lifecycle (CRUD, sync, logs, events) and resource management. Minor gaps like rollback or version history are missing, but the surface is largely complete for common tasks.
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Read-only MCP server for repository context: context packs, graph impact analysis, and validation.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for the GitCore API, enabling AI agents to interact with GitCore repositories, issues, pull requests, and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP (Model Context Protocol) server that integrates with the ArgoCD API, enabling AI assistants and large language models to manage ArgoCD applications and resources through natural language interactions.1012MIT

OpsLevel MCPofficial
AlicenseNot gradedqualityFmaintenanceModel Context Protocol (MCP) server for OpsLevel12MIT- AlicenseBqualityCmaintenanceModel Context Protocol (MCP) server for the Rancher ecosystem: multi-cluster Kubernetes, Harvester HCI (VMs, storage, networks), and Fleet GitOps.1012Apache 2.0
- AlicenseBqualityCmaintenanceMCP server for Argo CD that provides multi-environment profiles, SSO or API key authentication, application search with cache, and REST API tools from the bundled OpenAPI catalog.26MIT