argocd-mcp
argocd-mcp
Tools
get_resource_actions
get_resource_actions returns actions for a resource that is managed by an application
run_resource_action
run_resource_action runs an action on a resource
list_applications
list_applications returns list of applications
get_application
get_application returns application by application name
create_application
create_application creates application
update_application
update_application updates application
delete_application
delete_application deletes application
sync_application
sync_application syncs application
get_application_resource_tree
get_application_resource_tree returns resource tree for application by application name
get_application_managed_resources
get_application_managed_resources returns managed resources for application by application name
get_application_workload_logs
get_application_workload_logs returns logs for application workload (Deployment, StatefulSet, Pod, etc.) by application name and resource ref
get_application_events
get_application_events returns events for application by application name
get_resource_events
get_resource_events returns events for a resource that is managed by an application
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.
<!--
// Generate using?:
const config = JSON.stringify({
"name": "argocd-mcp",
"command": "npx",
"args": ["argocd-mcp@latest", "stdio"],
"env": {
"ARGOCD_BASE_URL": "<argocd_url>",
"ARGOCD_API_TOKEN": "<argocd_token>"
}
});
const urlForWebsites = vscode:mcp/install?${encodeURIComponent(config)};
// Github markdown does not allow linking to vscode: directly, so you can use our redirect:
const urlForGithub = https://insiders.vscode.dev/redirect?url=${encodeURIComponent(urlForWebsites)};
-->
<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code"> <img alt="Install in VS Code Insiders" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">
This project is maintained by Akuity, the creators of Argo Project.
<img align="center" src="https://raw.githubusercontent.com/akuity/argocd-mcp/main/images/akuity.png" alt="akuity" width="50%" height="50%">
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 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
Usage with Cursor
- Follow the Cursor documentation for MCP support, and create a
.cursor/mcp.jsonfile in your project:
{
"mcpServers": {
"argocd-mcp": {
"command": "npx",
"args": [
"argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "<argocd_url>",
"ARGOCD_API_TOKEN": "<argocd_token>"
}
}
}
}
- Start a conversation with Agent mode to use the MCP.
Usage with VSCode
- Follow the Use MCP servers in VS Code documentation, and create a
.vscode/mcp.jsonfile 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>"
}
}
}
}
- Start a conversation with an AI assistant in VS Code that supports MCP.
Usage with Claude Desktop
- Follow the MCP in Claude Desktop documentation, and create a
claude_desktop_config.jsonconfiguration file:
{
"mcpServers": {
"argocd-mcp": {
"command": "npx",
"args": [
"argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "<argocd_url>",
"ARGOCD_API_TOKEN": "<argocd_token>"
}
}
}
}
- 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 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 application
Resource Management
get_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 resource
For Development
- Clone the repository:
git clone https://github.com/akuity/argocd-mcp.git
cd argocd-mcp
- Install project dependencies:
pnpm install
- 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:
-
Download the
swagger.jsonfile from the ArgoCD release page, for example here is the swagger.json link for ArgoCD v2.14.11. -
Place the downloaded
swagger.jsonfile in the root directory of theargocd-mcpproject. -
Generate the TypeScript types from the Swagger definition by running the following command. This will create or overwrite the
src/types/argocd.d.tsfile:pnpm run generate-types -
Update the
src/types/argocd-types.tsfile to export the required types from the newly generatedsrc/types/argocd.d.ts. This step often requires manual review to ensure only necessary types are exposed.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。