Skip to main content
Connect Claude Code to Control Plane to manage your infrastructure through natural language conversations.

Prerequisites

Claude Code

Download Claude Code

Service Account Token

Create a service account with appropriate permissions

Configuration

Step 1: Add the MCP Server

Use the claude mcp add command to register the Control Plane MCP Server:
claude mcp add --transport http cpln https://mcp.cpln.io/mcp \
  --header "Authorization: <your-service-account-token>" \
  --scope user
Replace <your-service-account-token> with your actual service account token.
We recommend the user scope to make the MCP server available across all your projects. Without --scope user, the default is local scope which only applies to the current directory.
You can also use --scope project to add the server for the current project only. See the Claude Code Documentation for more details on scopes.

Step 2: Verify the Connection

List your configured MCP servers to confirm the setup:
claude mcp list
You should see cpln listed with a successful connection:
cpln: https://mcp.cpln.io/mcp (HTTP) - ✓ Connected

Managing MCP Servers

# List all MCP servers
claude mcp list

# Remove an MCP server
claude mcp remove cpln

# Get help on MCP commands
claude mcp --help
For the latest configuration options and troubleshooting, refer to the official Claude Code Documentation.

Example Conversation

Here’s an example of deploying a public workload through Claude:
1

Set Context

Use org "my-org" and gvc "my-gvc" for context.
2

Deploy a Workload

Create a publicly accessible workload called "my-api" using nginx:latest on port 80.
3

Get the Endpoint

Monitor the readiness of my-api and give me the public endpoint once it's ready.

Troubleshooting

  • Check that your service account token is valid.
  • Ensure the token is entered without extra spaces or quotes.
  • Verify the token has appropriate permissions (see Service Account Permissions).
  • Check for typos in the org name you’re using for context, this is a common cause of authentication failures.

Next Steps