Kapten

Kapten MCP

Ask your coding agent.
It works in Kapten.

Connect Claude Code, Cursor or Codex to Kapten with one command. Your agent lists projects and environments, deploys, reads run logs and searches the docs, with the same rights as your own login.

Install

terminal
/plugin marketplace add kapten-io/skills
/plugin install kapten@kapten
claude_desktop_config.json
{
  "mcpServers": {
    "kapten": {
      "command": "npx",
      "args": ["-y", "@kapten/cli@latest", "--context", "work", "mcp", "serve"]
    }
  }
}
.cursor/mcp.json
{
  "mcpServers": {
    "kapten": {
      "command": "npx",
      "args": ["-y", "@kapten/cli@latest", "--context", "work", "mcp", "serve"]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "kapten": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@kapten/cli@latest", "--context", "work", "mcp", "serve"]
    }
  }
}

Then ask your agent anything about your infrastructure. The first call opens a browser to sign in and pick which environments it may see.

Server
kapten mcp serve · stdio, local
Agents
Claude Code, Codex, Cursor, OpenCode, Copilot
Permissions
The roles of your login
Docs server
docs.kapten.io/mcp

What you can ask

Everything the console does.
From the chat.

The kapten server exposes every operation of the CLI as a tool: projects, environments, applications, jobs, databases, pipelines, variables and secrets. Your agent picks the tool; your client shows the call before it runs.

Coding agents in the docs
AreaYou askTool
Projects“List my projects and their environments.”listProjects
Applications“Deploy api in staging.”deployApplication
Run logs“Why did the last deploy of api fail?”queryApplicationRunLogs
Configuration“Add LOG_LEVEL=debug to api in staging.”createComponentVariable
Databases“Add a Postgres database to staging.”createPostgresqlDatabase
Jobs“Run the cleanup job every night at 2am.”createJob
Pipelines“Run the release pipeline in production.”runPipeline
Usage“How many environment minutes this month?”getEnvironmentUsage

In the conversation

No new dashboard to learn.

Ask what is running, why a deploy failed or what to change, from the terminal or editor you already have open. Every deployment is a run, with its status, timeline and logs, so the agent can check its own work.

  • › What is running in staging?
  • › Why did the last deploy of the API fail?
  • › Add a Redis database to staging and wire it to the worker.
  • › How do pipelines handle a failed stage? (from the docs)
claude · ~/acme/payments
Welcome to Claude Codekapten mcp server · 14 tools loaded
3 tool calls · scoped to your role
Animated example · sample services · no live connection

Guardrails

Your agent, your roles.

The agent gets no access of its own. It acts with a login you chose, inside the roles that login holds, and you can narrow it further.

  • Same rights as your login

    The server runs with the CLI login you give it. The agent can do what that login can do in the organization, and nothing more.

  • Narrower with an OAuth application

    Run the server as an OAuth application holding only the roles it needs, scoped to one project or one environment if you like.

  • An allowlist of operations

    --operations limits the tools to a list of operation IDs. A read-only agent gets list and log operations, nothing else.

  • Deletes marked destructive

    Delete tools carry the destructive annotation, so clients that confirm such calls ask you first.

  • One organization per server

    The server keeps the context it started with. Switching organizations in another terminal does not move a running agent.

  • Every change on record

    Each change in the organization is recorded with who made it and when, in its activity log. Every deployment is a run with its timeline and logs.

How it fits together

Three pieces. One install.

The plugin, or kapten skills install --mcp, sets up all three. The kapten server runs on your machine; the docs server is read-only. Your workloads keep running on your own clusters.

  • skill

    The kapten skill

    Teaches the agent Kapten’s resource model and how to work: confirm the organization before changing anything, then verify the result.

  • local · stdio

    kapten mcp serve

    Every Platform API operation the CLI has, as a tool named by its operationId. Runs on your machine, with your CLI login. No network listener.

  • remote · http

    kapten-docs

    search_docs, get_page and list_pages over docs.kapten.io/mcp, so the agent answers from the docs instead of from memory.

Tools

What your agent can call.

Each tool is a Platform API operation, named by its operationId. A selection is below; the API reference lists them all with their parameters.

Platform API reference

Projects and environments

  • listProjects
  • createProject
  • listEnvironments
  • getEnvironment
  • createEnvironment

Applications and jobs

  • createApplication
  • deployApplication
  • listApplicationRuns
  • queryApplicationRunLogs
  • createJob
  • deployJob

Databases

  • createPostgresqlDatabase
  • createMysqlDatabase
  • createMongodbDatabase
  • createRedisDatabase
  • deployDatabase

Configuration

  • createProjectVariable
  • createEnvironmentSecret
  • createComponentVariable
  • updateComponentSecret

Pipelines

  • createPipeline
  • createPipelineStage
  • runPipeline
  • getPipelineRun

Clusters and usage

  • listClusters
  • syncCluster
  • getEnvironmentUsage
  • listAuditEvents

Questions, answered plainly.

What is MCP?

The Model Context Protocol is an open standard that lets AI assistants call external tools. The kapten MCP server gives a coding agent the operations of the Kapten Platform API as tools.

Which agents are supported?

kapten skills install knows Claude Code, Codex, Cursor, OpenCode and GitHub Copilot. Any other MCP client can run the server from a JSON configuration, and Claude Code, Codex and Cursor can install the kapten-io/skills plugin.

Where does the server run?

On your machine, over stdio, started by your client. It has no network listener, and it calls the Kapten API with your CLI login or an OAuth application.

Can the agent break production?

It can do what its login can do. Give it an OAuth application whose roles cover only development and staging, or allowlist read operations with --operations, and keep production deployments to pipelines run by a person or CI.

Does my code or data leave my account?

Your applications, jobs and databases run on Kubernetes clusters in your own cloud account. The MCP server reads and changes Kapten resources through the API; it does not copy your data anywhere.

Where is the reference?

The Coding agents page of the docs covers setup, and the kapten mcp serve reference lists every flag. Tool names are the operationIds of the Platform API reference.

Go deeper

Read before you connect.

Build with Kapten

Start with one service.
Build from there.

Tell us what you want to deploy. We review each request and follow up about fit and onboarding on your preferred cloud.

Free during early access. No card required. Cloud usage billed separately.