Claude Code + Render
Deploy and manage your Render apps from Claude Code.
Claude Code is Anthropic's terminal-based coding agent. Paired with Render, it can deploy web services, create Render Postgres databases, inspect logs and metrics, update environment variables, and help plan infrastructure changes from your shell. The combination is well-suited to long-running production apps: Render's managed infrastructure, real Postgres with HA and read replicas, persistent disks, background workers, no cold starts, and render.yaml Blueprints for infrastructure-as-code mean Claude has stable surfaces to act against.
- Agent
- Claude Code
- Short name
- Claude
- Vendor
- Anthropic
- Install
npm install -g @anthropic-ai/claude-code- Start
claude- Skills mode
- Agent-invoked
Quick start
-
Install Claude Code globally.
-
Add the Render MCP server to Claude Code. Generate an API key in your account settings, then run:
-
Install Render's official skills so Claude knows how to deploy, debug, and monitor:
The installer auto-detects Claude Code and installs the right files in
~/.claude/skills/. If you already have the Render CLI installed,render skills installworks too. See the Render skills section below for both options. -
Start Claude Code.
-
Set your Render workspace. If your Render account has multiple workspaces, tell Claude which one to operate against. For example, "Set my Render workspace to
<YOUR_WORKSPACE_NAME>." -
Deploy a template. Try a prompt like "Deploy the Next.js + Postgres template from render.com/templates and walk me through any choices."
Quick links
MCP configuration
The claude mcp add command from Quick start writes an entry into ~/.claude.json.
claude mcp add --transport http render https://mcp.render.com/mcp --header "Authorization: Bearer $RENDER_API_KEY"~/.claude.jsonThe equivalent JSON looks like this:
The Render MCP server currently uses API-key authentication. Generate a key in your account settings and pass it as a Bearer token. OAuth support is on the roadmap.
For full setup details, including troubleshooting, scoping a key to a single workspace, and the complete tool reference, see the Render MCP server repo and the MCP server docs page.
The prompts below can use a combination of MCP tools, Render skills, the Render CLI, and guided Dashboard or API steps.
Example prompts
Start with one of these prompts, then refine the plan with your agent.
Deploy this project to Render.
Create a Render Postgres database and wire DATABASE_URL to my web service.
Check the deploy logs for the last failed deploy and fix the error.
Review my service's scaling settings and recommend the safest path to autoscaling at 70% CPU.
Set up a custom domain with SSL for app.example.com.
Create separate staging and production environments using a render.yaml Blueprint.
Deploy an AI chatbot with Postgres for chat history and a background worker for embeddings.
Set up n8n with Postgres and a persistent disk on Render.
Deploy a Next.js SaaS starter with Auth.js and Stripe webhooks.
Set up a Workflow to orchestrate my data pipeline with retries and subtasks.
Render skills
Render's official skills give Claude Code the procedural know-how to deploy services, debug failed builds, run read-only database queries, and manage infrastructure changes. Skills are agent-invoked SKILL.md files that Claude Code picks automatically based on your prompt. They can combine MCP tools with the Render CLI, local code edits, and Dashboard or API guidance for workflows that MCP alone doesn't cover.
Install skills
Works without the Render CLI installed. The installer detects supported tools on your system (Claude Code, Codex, Cursor, OpenCode) and prompts you to select which skills to install.
Requires version 2.10 or later of the Render CLI.
Check your current version with render --version.
Use this if you already have the Render CLI on your system. It's the same flow as the npx installer, just routed through the CLI.
Skills catalog
- render-deployDeploy applications to Render by analyzing codebases, generating render.yaml Blueprints, and providing Dashboard deeplinks.
- render-debugDebug failed Render deployments by analyzing logs, metrics, and database state.
- render-monitorMonitor Render services in real-time.
- render-blueprintsAuthors and validates render.yaml Blueprints for Render infrastructure.
- render-postgresSets up and optimizes Managed PostgreSQL on Render—connection strings (internal vs external), creation constraints, storage autoscaling, connection limits, high availability, read replicas, backups, and MCP inspection.
- render-keyvalueProvisions and configures Render Key Value (Redis-compatible Valkey 8) instances for caching, session storage, and job queues.
- render-workflowsSets up, develops, tests, and deploys Render Workflows.
- render-scalingScales Render services—configures autoscaling targets, chooses instance types, sets manual instance counts, and optimizes cost.
Common workflows
Deploy a Postgres database
- Ask Claude Code to create a Render Postgres database and pick a plan.
- Store the database's internal connection string as a service env var (
DATABASE_URL). - Run any required migrations from your service's pre-deploy command.
- For read-heavy workloads, ask it to evaluate whether high availability or a read replica belongs in your plan, then make that change from the Render Dashboard or API.
Deploy a project from a Blueprint
- Ask Claude Code to read the project and propose a
render.yamlBlueprint. - Review the proposed services, databases, and env vars.
- Validate the Blueprint with the Render CLI, then apply it from the Render Dashboard or API.
- Confirm the first deploy succeeds by checking logs and the health-check endpoint.
Debug a failing deployment
- Ask Claude Code to fetch the most recent failed deploy's logs.
- Have it identify the root cause (missing env var, port binding, OOM, build error).
- Apply the fix by updating env vars, editing code, or changing service settings through the Render Dashboard or API.
- Push the code fix or update the service settings, then watch the next deploy until the service is healthy.
Configure environment variables and secrets
- Ask Claude Code to list the current env vars on the target service.
- Add or update values, marking sensitive secrets with
sync: false. - For values shared across services, ask it to propose an env group change.
- Confirm a new deploy starts, or redeploy from the Render Dashboard if needed.
Set up a custom domain
- Ask Claude Code to walk through adding a custom domain to the service.
- It returns the required DNS record (CNAME or A/ALIAS for an apex).
- Add the DNS record at your registrar.
- Confirm verification and TLS issuance with a final status check.
Tips for success
- Install the Render MCP server so Claude Code can read service state, fetch logs and metrics, and apply supported env-var changes instead of guessing from your local repo.
- Define your infra in a
render.yamlBlueprint. Agents read and modify Blueprints reliably, and the file becomes the source of truth that your team and your agent share. - Ask for service status before deploying. A quick "what's the current state of my services?" prompt catches mismatches between local intent and what's actually deployed before you ship a change.
FAQ
Troubleshooting
claude mcp command fails or hangs
Confirm Claude Code is at least version 1.0.30 with claude --version. The HTTP MCP transport used here was added in that release. Upgrade with npm install -g @anthropic-ai/claude-code@latest.
Authentication errors from the Render MCP
The Authorization header must be the literal string Bearer <KEY>. If your shell didn't expand $RENDER_API_KEY, the header will contain the literal $RENDER_API_KEY and the server will reject it. Run echo $RENDER_API_KEY to confirm the variable is set, or paste the key value directly into the header.
Claude can't find the render CLI
The render skills install command needs the Render CLI on your PATH. Install it with Homebrew (brew install render) or the install script, then confirm with render --version.
Community
Related agents
- Codex + RenderConnect OpenAI Codex to Render so it can inspect services, read deploy logs, draft Blueprints, and manage deploy workflows from the CLI.
- Cursor + RenderAdd Render MCP and skills to Cursor so your editor agent can inspect services, update env vars, read logs, and manage deploy workflows in context.
- OpenCode + RenderConfigure OpenCode with the Render plugin, MCP, and skills for an open-source terminal workflow that can debug, create services, and deploy.