Skip to main content
Back to blog

Claude Code + Clanker Cloud: The Coding Agent That Knows Your Production Environment

Connect Claude Code to live cloud infrastructure via MCP. Clanker Cloud gives your coding agent real production context — no context switching required.

Claude Code is one of the most capable coding agents available today. It reads your codebase, understands your intent, writes tests, refactors functions, and helps you ship features faster than working alone. For pure code tasks, it's exceptional.

There is one gap: Claude Code doesn't know what's running in production.

When you're debugging a latency spike, the workflow looks like this — open a second terminal, run kubectl describe pod, check CloudWatch, open the AWS Console, paste what you found back into Claude Code, then ask it to help. That context-switch loop happens dozens of times a day for any developer doing non-trivial work. Each switch breaks focus. Each paste is a translation step between what's actually happening and what your coding agent understands.

Clanker Cloud closes that gap. Via a local MCP server, Claude Code gains live access to your production infrastructure — AWS, GCP, Azure, Kubernetes, Cloudflare, GitHub — without ever leaving the coding session. Your Claude Code sessions become infra-aware.


What Changes with MCP Integration

The difference is best shown concretely.

Without Clanker Cloud:

"We're seeing latency spikes in production." → Open CloudWatch. Find the payments service. Switch to kubectl. Run kubectl describe pod payments-7d9f8. Pod is OOMKilling. Copy the config. Go back to Claude Code. Paste context. Ask it to help find the memory leak.

With Clanker Cloud via MCP:

Tell Claude Code: "We're seeing latency spikes in production." → Claude Code calls Clanker Cloud's MCP server. Gets live data on all services. Identifies the payments pod OOMKilling. Cross-references the timing with recent commits from GitHub. Suggests the fix and generates the patch — all in the same session.

The developer never switched tools. The agent did the infrastructure query itself.

Here are five questions Claude Code can now answer directly when Clanker Cloud is connected:

  • "Before I deploy this change, what's the current state of the production ECS cluster?" — Claude Code calls Clanker Cloud, gets the real-time cluster state, flags any pods already under resource pressure.
  • "This PR changes the database schema. What services query this table in production?" — Clanker Cloud traces live service dependencies, surfacing any API or worker that touches the affected table.
  • "We merged the payment refactor an hour ago. Are there any errors or anomalies since then?" — Claude Code pulls recent error rates and deployment events correlated with that commit window.
  • "Generate a deployment plan for this change and check if there's enough headroom in the cluster." — Claude Code writes the plan, then validates it against actual production capacity before you approve.
  • "Is there anything currently broken that I should know about before starting this feature?" — A one-shot health check across your connected providers before you write a single line.

This is the difference between a coding agent that knows your repository and one that knows your system.


How to Set It Up — Step by Step

Prerequisites:

  • Clanker Cloud desktop app installed and running
  • Claude Code installed and working
  • MCP config file access (~/.claude/ directory)

Step 1: Start Clanker Cloud and find the MCP port

Open the Clanker Cloud desktop app. In Settings, locate the local MCP server port. By default this is shown on the settings screen. Leave the app running — it acts as a local proxy between Claude Code and your cloud providers.

Step 2: Add Clanker Cloud to Claude Code's MCP configuration

Edit (or create) ~/.claude/claude_desktop_config.json and add the Clanker Cloud MCP server:

{
  "mcpServers": {
    "clanker-cloud": {
      "command": "npx",
      "args": ["@clankercloud/mcp"],
      "env": {
        "CLANKER_ENDPOINT": "http://localhost:<port>"
      }
    }
  }
}

Replace <port> with the port shown in Clanker Cloud settings. Full MCP setup documentation is available at docs.clankercloud.ai.

Step 3: Restart Claude Code

MCP servers are loaded at startup. Restart Claude Code and verify the Clanker Cloud MCP server shows as connected in the tools panel.

Step 4: Connect your cloud providers

Back in the Clanker Cloud desktop app, connect the providers you want Claude Code to query: AWS, GCP, Azure, Kubernetes, Cloudflare, GitHub, DigitalOcean, Hetzner. Use your existing credentials — IAM roles, kubeconfigs, API tokens. All credentials remain on your local machine. Clanker Cloud never transmits them.

Once connected, Claude Code can query those providers through natural language calls to the MCP tools. No new credentials, no new dashboards — just your existing infrastructure, now accessible from your coding session.


The Infra-Aware Coding Session: A Full Workflow

Here's what a realistic end-to-end session looks like when you're shipping a feature that touches the API layer and the database.

Scenario: You're building a new user preferences endpoint. It needs a schema migration on the users table.

  1. Open Claude Code, describe the feature. Claude Code starts planning the implementation.

  2. Claude Code queries production schema. Rather than you pasting a schema dump, Claude Code calls Clanker Cloud: "What's the current schema for the users table in production?" Clanker Cloud fetches the live definition. Claude Code writes the migration with accurate column types and indexes.

  3. Impact analysis before writing code. Claude Code asks: "What services query the users table in production?" Clanker Cloud returns a dependency map. Claude Code flags that the auth service and the billing worker both read this table — the migration needs to be additive, not destructive.

  4. Pre-deploy validation. Before you approve the deploy, Claude Code asks: "What's the current pod count for the API service, and is there enough headroom for a rolling restart?" Real answer: two pods at 65% memory. Claude Code recommends scaling to three before the migration to absorb the restart overhead.

  5. Deploy and verify. You approve. Claude Code generates the deployment commands. After the rollout: "Is the new deployment healthy?" Clanker Cloud confirms all pods running, error rate nominal, response times within baseline.

The entire session stayed in one place. The infrastructure context was pulled live, not pasted from memory.


Security and Data Flow — What Goes Where

Claude Code users working with production infrastructure need to understand exactly what data moves where.

Your cloud credentials are stored on your local machine by the Clanker Cloud desktop app. They are never sent to Clanker Cloud's servers or anywhere else. This is the core of Clanker Cloud's local-first architecture.

The data flow for an infrastructure query:

  1. Claude Code calls a Clanker Cloud MCP tool
  2. The call goes to the Clanker Cloud desktop app running locally on your machine
  3. Clanker Cloud uses your local credentials to query your cloud provider (AWS, GCP, etc.)
  4. The cloud provider returns resource data (names, statuses, configs, metrics)
  5. Clanker Cloud returns that data as MCP context to Claude Code
  6. Claude Code sends the context to Anthropic's API for reasoning and response

The key distinction: Clanker Cloud never sends your credentials. It fetches data on your behalf using local credentials, then surfaces that data as structured context. What travels to Anthropic is resource metadata — instance names, pod states, error counts — not IAM keys or kubeconfigs.

For teams with strict data residency requirements or who want everything on-machine, Clanker Cloud supports using a locally-hosted model via Ollama (such as Gemma 4) as the reasoning engine. In that configuration, no query data leaves your machine at all.

More on architecture and security in the Clanker Cloud documentation.


What Claude Code + Clanker Cloud Is Best For

It's worth being direct about where this combination excels and where it doesn't.

Excellent fit:

  • Debugging deployment issues with production context — Claude Code can correlate code changes with infrastructure events without you manually gathering that data.
  • Pre-deploy impact analysis — asking "what does this change affect in production?" before shipping, not after.
  • Schema migrations with production awareness — Claude Code knows actual row counts, dependent services, and current load before generating the migration.
  • Infra-aware code review — flagging patterns like N+1 queries on a table that has 10 million rows in production, because it can actually check.
  • Onboarding to an unfamiliar codebase — Claude Code can answer "what infrastructure does this repo actually use?" in seconds.

Not the right tool for:

  • Real-time monitoring or alerting dashboards — use dedicated monitoring tools (Datadog, Grafana, PagerDuty) for that. Clanker Cloud is for querying context, not watching streams.
  • Complex IaC generation from scratch — Pulumi AI Copilot and similar tools are better for generating Terraform/Pulumi from first principles. Clanker Cloud gives those sessions production context, but doesn't replace generation tooling.

For teams using Claude Code for AI DevOps workflows, this integration becomes particularly valuable at scale — the same MCP endpoint can feed context to multiple agents across your team.


BYOK: Your Own Claude API Key

Clanker Cloud supports bring-your-own-key (BYOK) for Anthropic API access. You supply your API key directly in the desktop app. There is no token markup, no proxy, no middleman. Your Claude API calls go from your machine to Anthropic.

This matters for two reasons:

  1. Cost transparency. You see exactly what you're spending in your Anthropic dashboard, not in a reseller's pricing tier.
  2. Unified account. If you're already paying for Claude Code access via Anthropic, you can use the same API key for both Claude Code and Clanker Cloud. One account, one billing line, consistent model access.

For developers who want to go further with AI agents and infrastructure, see the Clanker Cloud agent integrations overview and the product demo.


Conclusion

Claude Code is a powerful coding agent. Its one structural limitation is that it reasons about your codebase, not your running system. Every time you've switched tabs to check production state and then manually fed that information back into a session, you've been filling that gap by hand.

Clanker Cloud's MCP integration fills it automatically. Claude Code gets live infrastructure context — schema state, pod health, service dependencies, recent anomalies — through standard MCP tool calls, without you leaving the session or copy-pasting anything.

Your next Claude Code session can know what's running in production. Setup takes about 5 minutes.

Download Clanker Cloud and connect your infrastructure
Read the MCP setup documentation


Frequently Asked Questions

Can Claude Code access my cloud infrastructure?

Not by default — Claude Code doesn't have built-in cloud provider integrations. However, Claude Code supports MCP (Model Context Protocol), which allows it to call external tools during a session. By running Clanker Cloud's local MCP server, Claude Code can query AWS, GCP, Azure, Kubernetes, Cloudflare, and other providers through natural language. Your credentials stay on your machine; Clanker Cloud handles the provider communication locally.

How do I connect Claude Code to AWS?

Connect AWS to Clanker Cloud (desktop app → Settings → Providers → AWS), then add Clanker Cloud as an MCP server in Claude Code's config file (~/.claude/claude_desktop_config.json). Once connected, Claude Code can query your AWS resources — ECS clusters, RDS instances, Lambda functions, S3 buckets — directly from a coding session. Full setup instructions are at docs.clankercloud.ai.

What is MCP in Claude Code?

MCP stands for Model Context Protocol — an open standard developed by Anthropic that allows AI coding agents like Claude Code to call external tools and data sources during a session. Instead of only reasoning over files in your repository, Claude Code with MCP can call services that return live data: databases, APIs, infrastructure providers. Clanker Cloud exposes a local MCP server that gives Claude Code access to your connected cloud infrastructure. You can learn more about the MCP ecosystem in Anthropic's documentation.

Can Claude Code deploy to production?

Claude Code can generate deployment commands, Kubernetes manifests, CI/CD configurations, and infrastructure changes — but execution happens through your existing tooling, under your control. With Clanker Cloud connected, Claude Code can also validate a deployment plan against your real production state before you run it (checking resource headroom, service dependencies, current error rates). Clanker Cloud's "maker mode" provides an additional layer of human approval for any infrastructure changes, keeping execution explicit and reviewed.

Next step

Give your agent live infrastructure context

Download Clanker Cloud, expose the local MCP surface, and let coding agents work from current cloud, Kubernetes, GitHub, and cost state instead of guesses.

Download and connect MCPWatch demo