Skip to main content

Argo CD logo

ArgoCD MCP Server & Agent Plugin

An MCP execution server and Agent Skills plugin for managing Kubernetes applications via ArgoCD using GitOps principles.

PyPI Python 3.12+ License MCP ArgoCD v2.x


Let your AI assistant manage your ArgoCD applications: check health, preview and run syncs, roll back, and onboard repositories and projects. Git credentials stay on the server and are never shown to the model.

What you get

  • 24 MCP tools (13 read-only) that work against your live ArgoCD setup
  • 8 resources your assistant can read for context, under argocd://
  • 4 Agent Skills: step-by-step playbooks that teach your assistant how to use the tools well
  • Safe by default: only read-only tools are loaded until you turn on writes, and changes are previewed or confirmed before they happen

Quick start

You'll need:

  • Python 3.12+ and uv, or Docker
  • An ArgoCD server URL and an API token (argocd account generate-token)

1. Add the server to your MCP client. For Claude Desktop, Cursor, Windsurf, and most other clients, add this to your MCP config file:

{
  "mcpServers": {
    "argocd": {
      "command": "uvx",
      "args": [
        "--from",
        "talkops-argocd-mcp-server",
        "argocd-mcp-server",
        "--transport",
        "stdio"
      ],
      "env": {
        "ARGOCD_SERVER_URL": "https://argocd.example.com",
        "ARGOCD_AUTH_TOKEN": "<your-argocd-token>"
      }
    }
  }
}

Using Claude Code? Run this instead:

claude mcp add argocd -e ARGOCD_SERVER_URL=https://argocd.example.com -e ARGOCD_AUTH_TOKEN=<your-argocd-token> -- uvx --from talkops-argocd-mcp-server argocd-mcp-server --transport stdio

uvx downloads talkops-argocd-mcp-server from PyPI and runs it, so there's nothing else to install. Prefer a normal install? Run pip install talkops-argocd-mcp-server and use argocd-mcp-server as the command.

Prefer Docker? Pull talkopsai/argocd-mcp-server from Docker Hub—no Python setup needed:

{
  "mcpServers": {
    "argocd": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_TRANSPORT=stdio",
        "-e",
        "ARGOCD_SERVER_URL",
        "-e",
        "ARGOCD_AUTH_TOKEN",
        "talkopsai/argocd-mcp-server:latest"
      ],
      "env": {
        "ARGOCD_SERVER_URL": "https://argocd.example.com",
        "ARGOCD_AUTH_TOKEN": "<your-argocd-token>"
      }
    }
  }
}

2. Restart your client and try asking:

  • "Which of my ArgoCD applications are out of sync or degraded?"
  • "Show me the diff for payments-api, then do a dry-run sync."
  • "Roll checkout back to its last healthy deployment."

Allowing changes

Out of the box the server is read-only. To let your assistant make changes (creating, updating, syncing, rolling back, and deleting apps, repositories, and projects), add "MCP_ALLOW_WRITE": "true" to env (or pass -e MCP_ALLOW_WRITE=true to docker run). Even then, syncs and rollbacks run as a dry run first, and destructive actions ask for confirmation.

Configuration

Set these as environment variables (the env block in your client config, or -e with docker run) or pass the matching flag.

Variable Flag Default What it does
ARGOCD_SERVER_URL — https://argocd-server.argocd.svc:443 Your ArgoCD API URL
ARGOCD_AUTH_TOKEN — none ArgoCD API token (required)
ARGOCD_INSECURE — false Skip TLS verification (self-signed certs only)
MCP_ALLOW_WRITE — false Enable tools that change ArgoCD
MCP_TOOLSETS --toolsets all Limit tools: applications, deployments, repositories, projects, readonly
GIT_USERNAME / GIT_PASSWORD — none Server-side credentials for onboarding HTTPS repos
SSH_PRIVATE_KEY_PATH — ~/.ssh/id_rsa Server-side key for onboarding SSH repos
MCP_TRANSPORT --transport http stdio or http
MCP_PORT — 8770 Port when using HTTP

Run uvx --from talkops-argocd-mcp-server argocd-mcp-server --help to see every option.

Running over HTTP

To share one server between several clients or run it remotely, start it in HTTP mode with Docker or uvx:

# With Docker (starts in HTTP mode by default)
docker run --rm -p 8770:8770 \
  -e ARGOCD_SERVER_URL=https://argocd.example.com \
  -e ARGOCD_AUTH_TOKEN=<your-argocd-token> \
  talkopsai/argocd-mcp-server:latest

# Or with uvx
MCP_TRANSPORT=http MCP_PORT=8770 uvx --from talkops-argocd-mcp-server argocd-mcp-server

Then point your client at http://localhost:8770/mcp:

{
  "mcpServers": {
    "argocd": {
      "url": "http://localhost:8770/mcp"
    }
  }
}

Agent Skills

Skills live in skills/. Each one is a SKILL.md playbook (plus optional references/ and offline scripts/) that teaches your AI assistant how to do a job safely, while the MCP server does the actual work. Tools are the hands, skills are the know-how.

To use them, copy the folders into your assistant's skills directory, for example:

git clone https://github.com/talkops-ai/talkops-mcp.git
cp -r talkops-mcp/src/argocd-mcp-server/skills/* ~/.claude/skills/

This folder is also a portable Agent Plugin (plugin.json + mcp.json + skills/), so plugin-aware clients can load the server and skills together.

Skill Use it to
deploying-argocd-applications Diff first, dry-run the sync, then deploy and confirm the app is healthy.
rolling-back-argocd-applications Pick a known-good revision, handle auto-sync, preview, and roll back.
troubleshooting-argocd-applications Figure out why an app is degraded or out of sync using events, resources, and logs.
onboarding-argocd-repositories-and-projects Add Git, Helm, or OCI repos and set up projects with the right access limits.

Reference

All 24 tools
Tool Access What it does
cancel_deployment Write Terminate an ongoing sync operation on an application.
create_application Write Create a new ArgoCD application tracking a Git repository path.
create_project Write Create a new ArgoCD AppProject with source repositories, destinations, and RBAC restrictions.
delete_application Write (destructive) Delete an ArgoCD application and optionally cascade-delete its cluster resources.
delete_project Write (destructive) Delete an ArgoCD AppProject (fails safely if applications still belong to the project).
delete_repository Write (destructive) Delete a registered repository from ArgoCD.
get_application_details Read Get application sync/health state, managed resources, sync policy, and deployment history with history IDs.
get_application_diff Read Compare live cluster state against target Git manifests and optionally validate via dry-run.
get_application_events Read Get recent Kubernetes events for an application sorted newest first.
get_application_logs Read Retrieve and summarize pod logs for an application with NDJSON stream parsing and error detection.
get_application_resource_tree Read Get the Kubernetes resource hierarchy (Deployments, ReplicaSets, Pods, Services) for an application.
get_project Read Get detailed AppProject configuration, allowed repositories, destinations, and resource restrictions.
get_repository Read Get repository connection status and metadata (credentials redacted).
get_sync_status Read Get current sync status, active operation phase, per-resource sync results, and recent history.
list_applications Read List ArgoCD applications with optional filtering and pagination.
list_projects Read List all ArgoCD AppProjects with source repositories and destination rules.
list_repositories Read List all repositories registered in ArgoCD with credentials redacted.
onboard_repository Write Onboard a Git/Helm/OCI repository into ArgoCD using server-side credentials (inferred from URL scheme).
refresh_application Read Trigger a soft ('normal') or manifest-cache-invalidating ('hard') refresh on an application.
rollback_application Write (destructive) Preview (dry_run=True) or execute (dry_run=False) an application rollback to a specific deployment history ID.
sync_application Write Preview (dry_run=True) or execute (dry_run=False) an ArgoCD application sync operation.
update_application Write Update an existing ArgoCD application's revision, path, namespace, or sync policy.
update_project Write Update an existing ArgoCD AppProject's description, repositories, destinations, or resource restrictions.
validate_repository_connection Read Validate repository connectivity using server-configured Git credentials.
All 8 resources
Resource What it returns
argocd://applications Catalog of all ArgoCD applications with sync and health status.
argocd://clusters Registered target Kubernetes clusters with connection state and server version.
argocd://health ArgoCD API connectivity, server version, and MCP guardrail posture.
argocd://repositories Onboarded Git, Helm, and OCI repositories (credentials redacted).
argocd://applications/{app_name} Full state, managed resources, and deployment history for a specific application.
argocd://applications/{app_name}/history Deployment revision history with integer history IDs for rollback targeting.
argocd://applications/{app_name}/resource-tree Hierarchical Kubernetes resource tree for an application.
argocd://projects/{project_name} AppProject RBAC rules, allowed source repositories, and cluster destinations.

Development

git clone https://github.com/talkops-ai/talkops-mcp.git
cd talkops-mcp/src/argocd-mcp-server
uv sync --dev
uv run pytest
uv run argocd-mcp-server --help

Get help

License

Apache 2.0. See LICENSE.

Metadata

Release files for talkops-argocd-mcp-server 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for talkops-argocd-mcp-server 0.4.1
File Size Uploaded Provenance Actions
talkops_argocd_mcp_server-0.4.1.tar.gz 142.4 kB With provenance Details for talkops_argocd_mcp_server-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for talkops-argocd-mcp-server 0.4.1
File Interpreter ABI Platform Actions
talkops_argocd_mcp_server-0.4.1-py3-none-any.whl Python 3 none any Details for talkops_argocd_mcp_server-0.4.1-py3-none-any.whl

Total release size: 190.8 kB

Release files / talkops_argocd_mcp_server-0.4.1.tar.gz

Download URL talkops_argocd_mcp_server-0.4.1.tar.gz
Size 142.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15ce22eb06e963101cd3ad96e671ab8623291e8f88b9a37e5f0c0685acfffb0d
BLAKE2b-256 checksum
How to use checksums
0de21f7749beb7b0acc03dbe6f725ce3bdf605efa8e20f77eb29db62a00e65ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / talkops_argocd_mcp_server-0.4.1-py3-none-any.whl

Download URL talkops_argocd_mcp_server-0.4.1-py3-none-any.whl
Size 48.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a764befa8c42789181692a024430c2d9b9f502fbb36920b0bf657f36c230405
BLAKE2b-256 checksum
How to use checksums
313e4b035e1a7554cb980929b70fb6f64c7145e680197b1cf722af7ee74ef2ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for talkops-argocd-mcp-server 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for talkops_argocd_mcp_server-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page