Skip to content

Menu

Octopus Deploy MCP Server logo

Octopus Deploy MCP Server

Published · Updated

At a glance

Hosted by the vendor
https://octopus.com/docs/octopus-ai/mcp/remote
Watch out for
The remote server needs Octopus Server 2026.3 or later and is disabled until an administrator turns it on.

Octopus Deploy ships an MCP server that lets an AI assistant query and act on an Octopus instance: spaces, projects, releases, deployments, runbooks and tasks. There are two versions. The current one is the Remote MCP Server, built into Octopus Server 2026.3 and later and served from your own instance at /mcp over Streamable HTTP.

The older local server (OctopusDeploy/mcp-server on GitHub, also on npm as @octopusdeploy/mcp-server and Docker as octopusdeploy/mcp-server) is now marked deprecated in its README and will not get new features. It still runs over stdio and works with older Octopus versions, so teams on earlier releases may keep using it for now.

The remote server is off by default. An administrator turns it on under Configuration > Settings > MCP Controls, and agents authenticate with an Octopus Agent API key in a header or through OAuth. Rather than one tool per API call, it exposes a small set of discovery and contract tools that describe and run queries and commands.

How it connects

Your AI app

An assistant or agent that supports MCP

Octopus Deploy MCP Server

Runs as

  • npx (Node.js)
  • Remote (HTTP)

Gives the agent

  • Finding things
  • Discovering operations
  • Reading state
  • Making changes
  • Local server tools

Octopus Deploy

Signs in with

  • OAuth / browser sign-in
  • API key
Your AI app talks to Octopus Deploy MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Finding things
find_spaces and find_projects let the agent locate the space and project it should work in.
Discovering operations
search_contracts and describe_contract show the agent which queries and commands exist and what inputs they need.
Reading state
execute_query runs read operations, such as looking up releases, deployments or task details.
Making changes
execute_command runs operations that change state, kept separate from reads so you can reason about what an agent is allowed to do.
Local server tools
The deprecated local server has named tools such as list_spaces, list_environments, get_deployment_from_url, get_task_from_url, create_release, deploy_release and run_runbook, plus a --read-only flag.

Setting it up

First have an administrator enable Remote MCP under Configuration > Settings > MCP Controls, and create an Agent API key, ideally with custom scopes or on a dedicated Agent Service Account. In Claude Code, export OCTOPUS_API_KEY and run claude mcp add --transport http octopus-deploy https://your-octopus-instance.com/mcp --header "X-Octopus-ApiKey: ${OCTOPUS_API_KEY}". In Cursor, add an octopus-deploy entry under mcpServers in ~/.cursor/mcp.json with the same url and an X-Octopus-ApiKey header set to ${env:OCTOPUS_API_KEY}, then restart Cursor. In VS Code with Copilot, add an http server under mcpServers in the workspace-root .mcp.json whose header uses ${OCTOPUS_API_KEY}. Claude Desktop connects through the mcp-remote proxy (npx -y mcp-remote, Node.js 18 or later). OAuth sign-in with an Octopus account is also supported instead of an API key. A sensible first check is a read-only request such as listing spaces.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Paste in a failed deployment and ask the agent to find the task and explain what went wrong.
  • List the projects in a space and report which releases are deployed to each environment.
  • Create a release and deploy it to a test environment, with the API key scoped to allow only that.
  • Run a runbook that the team has opened up to AI agents.

Limitations and things to watch

  • The remote server needs Octopus Server 2026.3 or later and is disabled until an administrator turns it on.
  • Remote MCP covers a set of core Octopus features for now, and its tool set differs from the local server.
  • execute_command can change your instance, so scope the Agent API key tightly and block AI access on runbooks agents should not run.
  • The local npm and Docker server is deprecated and will not receive new features.
  • Clients without remote HTTP and custom header support need the mcp-remote proxy.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…