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
/plugin marketplace add kapten-io/skills
/plugin install kapten@kapten{
"mcpServers": {
"kapten": {
"command": "npx",
"args": ["-y", "@kapten/cli@latest", "--context", "work", "mcp", "serve"]
}
}
}{
"mcpServers": {
"kapten": {
"command": "npx",
"args": ["-y", "@kapten/cli@latest", "--context", "work", "mcp", "serve"]
}
}
}{
"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 docslistProjectsdeployApplicationqueryApplicationRunLogscreateComponentVariablecreatePostgresqlDatabasecreateJobrunPipelinegetEnvironmentUsageIn 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)
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 referenceProjects and environments
listProjectscreateProjectlistEnvironmentsgetEnvironmentcreateEnvironment
Applications and jobs
createApplicationdeployApplicationlistApplicationRunsqueryApplicationRunLogscreateJobdeployJob
Databases
createPostgresqlDatabasecreateMysqlDatabasecreateMongodbDatabasecreateRedisDatabasedeployDatabase
Configuration
createProjectVariablecreateEnvironmentSecretcreateComponentVariableupdateComponentSecret
Pipelines
createPipelinecreatePipelineStagerunPipelinegetPipelineRun
Clusters and usage
listClusterssyncClustergetEnvironmentUsagelistAuditEvents
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.
- 01
Connect Kapten to your agent
Plugin, kapten skills install or JSON config, step by step.
Explore Connect Kapten to your agent - 02
Guardrails for agents
Roles, OAuth applications, allowlists and the activity log.
Explore Guardrails for agents - 03
Coding agents in the docs
The reference for the skill, the MCP servers and their flags.
Explore Coding agents in the docs
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.