The Octopus Deploy MCP Server provides read-only access to Octopus Deploy instances, enabling AI assistants to inspect, query, and diagnose DevOps deployment configurations and operations.
Core Capabilities:
Organization & Structure - List spaces, environments (dev, staging, production, etc.), and projects with filtering options
Deployments & Releases - List and filter deployments by project, environment, tenant, channel, and task state; view releases with version search; get detailed release information
Tasks & Operations - Monitor server tasks, access detailed/raw task information and logs for troubleshooting
Multi-Tenancy - List tenants with filtering by tags, projects, and IDs; get tenant details; view all, common, or project-specific tenant variables; identify missing tenant variables
Infrastructure - List deployment targets (machines) with filtering by roles, health status, environment, tenant, and type; get detailed target configurations
Kubernetes - Get real-time status of Kubernetes resources for projects and environments (requires Octopus 2025.3+)
Security & Credentials - List and retrieve details for certificates (with filtering by name, archived status, tenant) and accounts (AWS, Azure, SSH, etc.)
Configuration - View deployment processes for projects, releases, and branches; get project variables and library variable sets; list Git branches for version-controlled projects (requires Octopus 2021.2+)
User Context - Get information about the current authenticated user
Key Features: All operations are read-only for security, support filtering and pagination, work with Octopus Server 2021.1+, and are optimized for diagnostic and troubleshooting workflows.
Enables retrieval of live status information for Kubernetes resources within Octopus Deploy projects and environments
Provides comprehensive tools for inspecting, querying, and diagnosing Octopus Deploy instances, including management of projects, deployments, releases, tasks, tenants, Kubernetes resources, deployment targets, certificates, and accounts
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Octopus Deploy MCP Servershow me the status of recent deployments for the 'web-api' project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Octopus Deploy Official MCP Server
Octopus makes it easy to deliver software to Kubernetes, multi-cloud, on-prem infrastructure, and anywhere else. Automate the release, deployment, and operations of your software and AI workloads with a tool that can handle CD at scale in ways no other tool can.
Model Context Protocol (MCP) allows the AI assistants you use in your day to day work, like Claude Code, or ChatGPT, to connect to the systems and services you own in a standardized fashion, allowing them to pull information from those systems and services to answer questions and perform tasks.
The Octopus MCP Server provides your AI assistant with powerful tools that allow it to inspect, query, and diagnose problems within your Octopus instance, transforming it into your ultimate DevOps wingmate. For a list of supported use-cases and sample prompts, see our documentation.
Octopus Server Compatibility
Most tools exposed by the MCP Server use stable APIs that have been available from at least version 2021.1 of Octopus Server. Tools that are newer will specify the minimum supported version in the documentation. Alternatively, you can use the command line argument --list-tools-by-version to check how specific tools relate to versions of Octopus.
π Installation
Install via Docker
Run with environment variables
Run with CLI arguments
Full example configuration (for Claude Desktop, Claude Code, and Cursor):
For Apple Mac users, you might need to add the following arguments in the configuration to force Docker to use the Linux platform:
We are planning to release a native ARM build shortly so that those arguments will not be required anymore.
Install via Node
Requirements
Node.js >= v20.0.0
Octopus Deploy instance that can be accessed by the MCP server via HTTPS
Octopus Deploy API Key
Configuration
Full example configuration (for Claude Desktop, Claude Code, and Cursor):
Read-only mode (default, recommended for production):
Write mode enabled (for development/testing):
The Octopus MCP Server is typically configured within your AI Client of choice.
It is packaged as an npm package and executed via Node's npx command. Your configuration will include the command invocation npx, and a set of arguments that supply the Octopus MCP Server package and provide the Octopus Server URL and API key required, if they are not available as environment variables.
The command line invocation you will be configuring will be one of the two following variants:
With configuration provided via environment variables:
Or with configuration supplied via the command line:
Configuration Options
The Octopus MCP Server supports several command-line options to customize which tools are available.
If you are not sure which tools you require, we recommend running without any additional command-line options and using the provided defaults.
Toolsets
Use the --toolsets parameter to enable specific groups of tools:
Available toolsets:
core - Basic operations (always enabled)
projects - Project operations
deployments - Deployment operations
releases - Release management
tasks - Task operations
tenants - Multi-tenancy operations
kubernetes - Kubernetes operations
machines - Deployment target operations
certificates - Certificate operations
accounts - Account operations
Read-Only Mode
The server runs in read-only mode by default for security. Most tools are read-only operations, but some tools can perform write operations (like creating releases and deployments).
Write-enabled tools:
create_release- Create new releasesdeploy_release- Deploy releases to environments and tenants
To use write-enabled tools, you must explicitly disable read-only mode:
Security Note: When disabling read-only mode, ensure you use an API key with appropriate, least-privilege permissions. Write operations can create releases and trigger deployments in your Octopus instance.
Complete Examples
Other command line arguments
--log-level <level>- Minimum log level (info, error)--log-file <path>- Log file path or filename. If not specified, logs are written to console only-q, --quiet- Disable file logging, only log errors to console--list-tools-by-version- List all registered tools by their supported Octopus Server version and exit
π¨ Tools
Core Tools
list_spaces: List all spaces in the Octopus Deploy instancelist_environments: List all environments in a given space
Projects
list_projects: List all projects in a given space
Deployments
deploy_release: Deploy a release to environments (supports both tenanted and untenanted deployments)list_deployments: List deployments in a space with optional filtering
Releases
create_release: Create a new release for a projectfind_releases: Find releases in a space (can get a specific release by ID or list all releases)list_releases_for_project: List all releases for a specific project
Tasks
get_task_by_id: Get details for a specific server task by its IDget_task_details: Get detailed information for a specific server taskget_task_raw: Get raw details for a specific server task
Tenants
find_tenants: Find tenants in a space (can get a specific tenant by ID or list/search tenants with filters)get_tenant_variables: Get tenant variables by type (all, common, or project)get_missing_tenant_variables: Get tenant variables that are missing values
Kubernetes
get_kubernetes_live_status: Get live status of Kubernetes resources for a project and environment (minimum supported version:2025.3)
Machines (Deployment Targets)
find_deployment_targets: Find deployment targets in a space (can get a specific target by ID or list/search targets with filters)
Certificates
find_certificates: Find certificates in a space (can get a specific certificate by ID or list/search certificates with filters)
Accounts
find_accounts: Find accounts in a space (can get a specific account by ID or list/search accounts with filters)
Additional Tools
get_deployment_process: Get deployment process by ID for projects or releasesget_branches: Get Git branches for a version-controlled project (minimum supported version:2021.2)get_current_user: Get information about the current authenticated user
π Security Considerations
The Octopus MCP Server includes both read and write operations. Important security considerations:
Read Operations
Can read full deployment logs, which could include production secrets if they were not marked as secrets
Access to sensitive configuration data and variables
Exercise caution when connecting to tools and models you do not fully trust
Write Operations
When read-only mode is disabled (--no-read-only), the following write operations are available:
Creating releases: Can create new releases for projects
Deploying releases: Can trigger deployments to environments (including production)
Critical Security Measures:
Least Privilege: Use API keys with the minimum permissions needed for your use case
Read-Only by Default: The server defaults to read-only mode - you must explicitly opt-in to write operations
Prompt Injection Risk: Running agents in fully automated fashion could make you vulnerable to prompt-injection attacks
Recommendation: For production environments, use read-only mode unless you have a specific, controlled use case for write operations.
β οΈ Limitations
Data Analysis
The nature of current AI chat tools and the MCP protocol itself makes it impractical to analyze large amounts of data. Most MCP clients currently do not support chaining tool calls (using the output of one tool as input to the next one) and instead fall back to copying the results token by token, which frequently leads to hallucinations. If you are looking to process historical data from your Octopus instance for analysis purposes, we recommend using the API directly or writing your own MCP client that is capable of processing the tool call results programmatically.
Performance
The MCP Server is technically just a thin layer on top of the existing Octopus Server API. As such it is capable of retrieving large amounts of data (for example, requesting thousands of deployments). Such queries can have a significant effect on your instance's performance. Instruct your models to only retrieve the minimum set of data that it needs (most models are really good at this out of the box).
π€ Contributions
Contributions are welcome! :heart: Please read our Contributing Guide for information about how to get involved in this project.
We are eager to hear how you plan to use Octopus MCP Server and what features you would like to see included in future version.
Please use Issues to provide feedback, or request features.
If you are a current Octopus customer, please report any issues you experience using our MCP server to our support team. This will ensure you get a timely response within our standard support guarantees.
π FAQ
Do you have plans to release a remote MCP server?
We are working on integrating an MCP server directly into Octopus Server. This will open up the door for us to build more complex MCP tools, as well as:
Giving Octopus Administrators more granular control over MCP clients
Natively support OAuth for client authentication
Integrating security scanning tools into the MCP output
If this is of interest to you, please register your interest on our roadmap item.
License
This project is licensed under the terms of Mozilla Public License 2.0 open source license.