Octopus Deploy MCP Server
OfficialThe 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 "Deploy 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 Server show 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.
Deprecated: This MCP server is deprecated. The Remote MCP Server is available in Octopus Server 2026.3 and later. See the Remote MCP Server documentation.
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
Credentials must be supplied via environment variables to avoid exposing them in the host process list (ps aux / /proc/<pid>/cmdline). The Octopus server URL can still be supplied via the --server-url flag.
docker run -i --rm -e OCTOPUS_API_KEY=your-key -e OCTOPUS_SERVER_URL=https://your-octopus.com octopusdeploy/mcp-serverFull example configuration (for Claude Desktop, Claude Code, and Cursor):
{
"mcpServers": {
"octopus-deploy": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OCTOPUS_SERVER_URL",
"-e",
"OCTOPUS_API_KEY",
"octopusdeploy/mcp-server"
],
"env": {
"OCTOPUS_SERVER_URL": "https://your-octopus.com",
"OCTOPUS_API_KEY": "YOUR_API_KEY"
}
},
}
}For Apple Mac users, you might need to add the following arguments in the configuration to force Docker to use the Linux platform:
"--platform",
"linux/amd64",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 or Access Token (see Authentication below)
Configuration
Full example configuration (for Claude Desktop, Claude Code, and Cursor):
Write tools enabled (default):
{
"mcpServers": {
"octopusdeploy": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@octopusdeploy/mcp-server"],
"env": {
"OCTOPUS_SERVER_URL": "https://your-octopus.com",
"OCTOPUS_API_KEY": "YOUR_API_KEY"
}
}
}
}Read-only mode (recommended for production):
{
"mcpServers": {
"octopusdeploy": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@octopusdeploy/mcp-server", "--read-only"],
"env": {
"OCTOPUS_SERVER_URL": "https://your-octopus.com",
"OCTOPUS_API_KEY": "YOUR_API_KEY"
}
}
}
}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. Credentials (API key or access token) must be supplied via environment variables ā they are not accepted as command-line arguments to avoid exposing secrets in the process list. The Octopus server URL may be supplied via either the OCTOPUS_SERVER_URL environment variable or the --server-url flag.
OCTOPUS_API_KEY=API-KEY \
OCTOPUS_SERVER_URL=https://your-octopus.com \
npx -y @octopusdeploy/mcp-serverOr with the server URL on the command line:
OCTOPUS_API_KEY=API-KEY \
npx -y @octopusdeploy/mcp-server --server-url https://your-octopus.comAuthentication
The MCP server supports two authentication methods. Both are supplied via environment variables ā credentials are not accepted on the command line because flags are visible in the host process list to any local user.
API Key (recommended for interactive use)
API keys are the standard authentication method for Octopus Deploy. You can generate one from your Octopus Deploy user profile.
OCTOPUS_API_KEY=API-XXXXXXXXXXXXXXXXXXXXXXXXXX \
OCTOPUS_SERVER_URL=https://your-octopus.com \
npx -y @octopusdeploy/mcp-serverAccess Token / Bearer Token (automated scenarios only)
The server also supports short-lived access tokens (Bearer tokens) as an alternative to API keys. This authentication method is intended only for automated scenarios where an external system issues a short-lived token to the MCP server (e.g., CI/CD pipelines, automated orchestration, or machine-to-machine workflows). Do not use long-lived Bearer tokens ā use API keys instead for interactive or long-running sessions.
OCTOPUS_ACCESS_TOKEN=your-short-lived-token \
OCTOPUS_SERVER_URL=https://your-octopus.com \
npx -y @octopusdeploy/mcp-serverFull example configuration with an access token:
{
"mcpServers": {
"octopusdeploy": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@octopusdeploy/mcp-server"],
"env": {
"OCTOPUS_SERVER_URL": "https://your-octopus.com",
"OCTOPUS_ACCESS_TOKEN": "YOUR_TOKEN"
}
}
}
}If both an API key and an access token are provided, the access token takes precedence. The active authentication method is recorded in the log file (configurable with --log-file) so operators can confirm which credential is in use.
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:
# Enable all toolsets (default)
npx -y @octopusdeploy/mcp-server
# Enable only specific toolsets
npx -y @octopusdeploy/mcp-server --toolsets projects,deployments
# Enable all toolsets explicitly
npx -y @octopusdeploy/mcp-server --toolsets allAvailable toolsets:
core - Basic operations (always enabled)
projects - Project operations
deployments - Deployment operations
releases - Release management
runbooks - Runbook discovery and execution
tasks - Task operations
tenants - Multi-tenancy operations
kubernetes - Kubernetes operations
machines - Deployment target operations
certificates - Certificate operations
accounts - Account operations
interruptions - Manual intervention and approval operations
featureToggles - Inspect and adjust customer feature toggles
context - Authenticated user and project context (current user, Git branches)
Read-Only Mode
The server runs with write tools enabled by default. Pass --read-only to disable all write tools and block POST/PUT/PATCH/DELETE through the execute backstop. Most curated tools are already read-only; only a small set perform writes.
Write-enabled tools (always-write):
create_release- Create new releasesdeploy_release- Deploy releases to environments and tenantsrun_runbook- Run a runbook against one or more environments (and optional tenants)update_feature_toggle- Adjust per-environment state and rollout percentages on an existing feature toggle
Conditionally-writing tool: execute is a structured REST backstop whose tier (read / write / delete) is determined by the HTTP method passed to it. See the API Catalog & Backstop section for details.
Write tools are gated by an MCP elicitation prompt: clients that support elicitation will be asked to confirm before the call proceeds. Clients without elicitation support must pass confirm: true in the tool arguments ā otherwise the tool aborts with an error. Set OCTOPUS_SKIP_ELICITATION=true to bypass the gate entirely (intended for unattended automation).
The server uses a three-tier read/write/delete classification, enforced server-side based on the HTTP method (the agent cannot bypass this by lying about intent):
read ā always allowed. GET requests through
execute, plus allfind_*/get_*/list_*tools.write ā POST/PUT/PATCH through
executeand the always-write tools above. Blocked when--read-onlyis set.delete ā DELETE through
execute. Requires--allow-deletesand is blocked when--read-onlyis set. A small set of catastrophic-delete paths (e.g.DELETE /api/spaces/{id},DELETE /api/users/{id}) and API-key endpoints are on a hard sensitive denylist that ignores both flags.
# Default - write tools enabled (POST/PUT/PATCH)
npx -y @octopusdeploy/mcp-server
# Additionally permit DELETE requests through the execute tool
npx -y @octopusdeploy/mcp-server --allow-deletes
# Read-only mode - write/delete tools disabled
npx -y @octopusdeploy/mcp-server --read-onlySecurity Note: Use an API key with appropriate, least-privilege permissions ā write operations can create releases and trigger deployments in your Octopus instance. For production, consider passing --read-only unless you have a specific, controlled use case for writes. --allow-deletes is off by default; only enable it when the agent must issue DELETE requests through execute. If you pass --allow-deletes together with --read-only, the server prints a startup warning to stderr ā DELETE requests remain blocked by the read-only gate.
Complete Examples
All examples below assume OCTOPUS_API_KEY is set in the environment. The --server-url flag is shown for clarity but can also be provided via OCTOPUS_SERVER_URL.
# Development setup with only core and project tools
npx -y @octopusdeploy/mcp-server --toolsets core,projects --server-url https://your-octopus.com
# Production setup with all tools and read-only enforcement
npx -y @octopusdeploy/mcp-server --toolsets all --read-only --server-url https://your-octopus.com
# Default invocation - all tools and writes enabled
npx -y @octopusdeploy/mcp-server --server-url https://your-octopus.comOther command line arguments
--read-only- Enable read-only mode: disable all curated write tools and block POST/PUT/PATCH/DELETE throughexecute. Writes are enabled by default; this flag turns them off. See Read-Only Mode.--allow-deletes- Permit DELETE requests through theexecutetool. Ignored (with a startup warning) when--read-onlyis set. Defaultfalse.--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
Related MCP server: Octopus Deploy Official MCP Server
šØ Tools
URL-Based Tools
Quick start: Paste Octopus URLs directly to investigate issues without manual ID extraction.
get_deployment_from_url: Get deployment details from deployment URL (returns taskId for follow-up)get_task_from_url: Get task details and logs from task URL
Deployment investigation workflow:
1. get_deployment_from_url with deployment URL
ā Returns deployment context + taskResourceUri + grepTaskLogHint
2a. Fetch the structured activity tree via resources/read (or read_resource)
octopus://spaces/{spaceName}/tasks/{taskId}/details
2b. Or call grep_task_log with the taskId to search the raw log without
fetching the full body:
grep_task_log({ spaceName, taskId, pattern: "error|fail", caseInsensitive: true })Task investigation (direct task URL):
get_task_from_url with task URL
ā Returns task details and logs immediatelyThese tools eliminate manual ID extraction by:
Parsing URLs automatically
Resolving space IDs to space names
Validating ID formats
Providing clear error messages
Example URLs:
Deployment:
https://your-octopus.com/app#/Spaces-1/projects/my-app/deployments/Deployments-123Task:
https://your-octopus.com/app#/Spaces-1/tasks/ServerTasks-456
See Working with URLs for detailed workflows, examples, and best practices.
Core Tools
list_spaces: List all spaces in the Octopus Deploy instancelist_environments: List all environments in a given space
API Catalog & Backstop
These tools and resources let the agent reach Octopus REST endpoints that don't have a dedicated curated tool, with hard server-side gating between read, write, and delete operations.
grep_llms_txt: Search the Octopus API catalog (octopus://api/llms.txt) with grep-style semantics (minimum supported Octopus version:2026.2.3916). The catalog body is large (typically 300+ KB) ā call this rather than reading the resource body directly. Parameters mirror GNU grep (pattern,caseInsensitive,invertMatch,fixedString,beforeContext,afterContext,maxCount). Useful for discovering endpoints (POST /releases), enumerating delete endpoints (DELETE), or finding the body type for a write operation (Body: Create.*Command).execute: Structured REST backstop. Reaches any Octopus REST endpoint under/api. The HTTP method is the authoritative read/write/delete classifier ā never anisWriteflag the LLM can set. Method gating is hard-coded server-side:GETis always allowed (subject to the path shape check + sensitive denylist).POST/PUT/PATCHare blocked when--read-onlyis set; otherwise they require user confirmation via elicitation.DELETErequires--allow-deletes(and is blocked when--read-onlyis set) plus a stronger "IRREVERSIBLE" elicitation message.The sensitive denylist (API-key endpoints,
DELETE /api/spaces/{id},DELETE /api/users/{id}) is enforced even with both flags on.The path is required to be
/apior start with/api/ā absolute URLs, SDK-relative~/api/...paths, and host-relative paths outside/api(e.g./octopus/portal/...) are rejected up front, soexecutestays bounded to the Octopus REST API surface.Per-toolset path allowlist applies only when
--toolsetshas been narrowed. With every toolset enabled (the default, or explicit--toolsets all) the allowlist is bypassed and any path under/apiis reachable subject to the gates above. When--toolsetsis narrowed the allowlist becomes the kill-switch: paths only resolve if their owning toolset is enabled, so disabling a toolset (e.g.certificates) makes its paths unreachable throughexecuteeven onGET.
Catalog data is also exposed as MCP Resources:
octopus://api/llms.txtā markdown catalog of every Octopus REST endpoint (HTTP method, path, query params, request/response types). Requires Octopus Server2026.2.3916or later. 5-minute in-memory cache keyed on the configured server URL. Prefergrep_llms_txtto reading the body directly.octopus://api/capabilitiesā JSON describing the running session: server version, enabled toolsets, available tools (with theirminimumOctopusVersion), and whether--read-only/--allow-deletesis on. Useful for the agent to discover what's reachable in this session.
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/filter releases by project)
Release detail is also available as an MCP Resource at octopus://spaces/{spaceName}/releases/{releaseId} ā fetch via resources/read (or the read_resource backstop tool) to get the full release body, including release notes and selected packages.
Runbooks
find_runbooks: Find runbooks in a project (can get a specific runbook by ID, or list/filter runbooks by partial name). Each summary includes the published snapshot ID, multi-tenancy mode, and environment scope so callers can pick valid targets before running.run_runbook: Run a runbook against one or more environments. Supports tenanted runs (by tenant name or tenant tag), prompted variables, guided failure mode, scheduled run windows, and step or machine inclusion/exclusion. Defaults to the runbook's published snapshot ifrunbookSnapshotIdis omitted.
The full runbook body (including runtime policy fields) is available as an MCP Resource at octopus://spaces/{spaceName}/runbooks/{runbookId}.
Tasks
Task data is primarily exposed as MCP Resources. Use resources/read (or the read_resource backstop tool) with one of:
octopus://spaces/{spaceName}/tasks/{taskId}ā lightweight metadata (state, timing, completion flags)octopus://spaces/{spaceName}/tasks/{taskId}/detailsā full ServerTaskDetails (Progress, ActivityLogs tree, etc.)
For log search, use the grep_task_log tool rather than a /log resource:
grep_task_log: Search a task's activity log without fetching the full body. Parameters mirror GNU grep (pattern,caseInsensitive,invertMatch,fixedString,beforeContext,afterContext,maxCount). Returns matching lines with 1-indexedlineNumber, optional before/after context arrays, and atotalMatchescount across the whole log.
There is intentionally no /log resource: activity logs can be multi-megabyte, and an addressable resource would tempt callers to fetch the entire body when grep is almost always the right primitive.
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)
Interruptions
find_interruptions: Find pending or historical interruptions (manual interventions, approvals, guided-failure prompts) in a space, optionally filtered by task, project, environment, regarding document, responsibility, or pending state. Returns slim summaries; dereference theoctopus://spaces/{spaceName}/interruptions/{interruptionId}resource for the full Form definition (control types, Markdown instructions, button options, submitted Form.Values).
Feature Toggles
find_feature_toggles: List customer feature toggles in a project. Each summary includes per-environment state (isEnabled,rolloutPercentage,clientRolloutPercentage) plus aresourceUriso "where is X turned on" is answerable from the list response.update_feature_toggle: Adjust an existing toggle. Narrow surface ā flip an environment on/off, change rollout percentages, or update the toggle-level description / default state. Internally fetches the current toggle, applies your patches in memory, and PUTs the merged body, so unmentioned environments and unmentioned fields are preserved. Patches that reference an environment not already configured on the toggle are rejected.
The full toggle body (description, tenants, segments, minimum versions) is available as an MCP Resource at octopus://spaces/{spaceName}/projects/{projectId}/featuretoggles/{slug}. Rollout group bodies are addressable at octopus://spaces/{spaceName}/projects/{projectId}/rolloutgroups/{rolloutGroupId} for read-only inspection.
Out of scope (use the Octopus UI): creating new feature toggles, deleting toggles, renaming or retagging, attaching/detaching rollout groups, tenant targeting, segments, minimum-version filters, and rollout-group / SDK client-identifier management.
Additional Tools
get_deployment_process: Get deployment process by ID for projects or releasesget_variables: Get all project variables and library variable set variables for a project (supports config-as-code projects viagitRef)get_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
By default, the following write operations are available:
Creating releases: Can create new releases for projects
Deploying releases: Can trigger deployments to environments (including production)
Running runbooks: Can execute runbooks against environments and tenants
Updating feature toggles: Can flip per-environment state and change rollout percentages on existing toggles
Arbitrary POST/PUT/PATCH via the
executebackstop: Bounded to paths under/api, with an always-on sensitive denylist. The per-toolset path allowlist applies only when--toolsetshas been narrowed; with all toolsets enabled (the default) the only path gates are the/apiboundary and the sensitive denylist.
Pass --read-only to disable all of the above. DELETE requests through execute require an additional --allow-deletes flag ā a deliberate opt-in for irreversible operations ā and remain blocked when --read-only is set.
Critical Security Measures:
Least Privilege: Use API keys with the minimum permissions needed for your use case
Opt In to Read-Only Mode: Writes are enabled by default. For production, pass
--read-onlyunless you have a specific, controlled use case for write operations. DELETE always requires the additional--allow-deletesopt-in.Method gating is server-side and hard-coded: The HTTP method passed to
executeis the authoritative classifier. The agent cannot bypass the gate by misrepresenting what the call does ā POST/PUT/PATCH/DELETE requests get tier-specific gating regardless of the prose in the request body.Toolset filtering doubles as a kill switch: Narrowing
--toolsetsremoves both the disabled toolsets' curated tools and their paths from theexecuteallowlist. (The allowlist is only consulted when toolsets are narrowed; with all toolsets enabledexecuteis bounded by the/apishape check and the sensitive denylist instead.)Prompt Injection Risk: Running agents in fully automated fashion could make you vulnerable to prompt-injection attacks
Recommendation: For production environments, pass --read-only unless you have a specific, controlled use case for write operations. Leave --allow-deletes off unless you specifically need DELETE semantics through execute.
ā ļø 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.
Available Tools
30 toolscreate_releaseCreate a new release in Octopus DeployC
Create a new release for an Octopus Deploy project
This tool creates a new release for a project. The space name and project name are required. All other parameters are optional and will use Octopus defaults if not specified.
Inputs: spaceName (required), projectName (required), releaseVersion, channelName, +10 more.
deploy_releaseDeploy a release to environments in Octopus DeployADestructive
Deploy a release to one or more environments in Octopus Deploy
This tool supports both tenanted and untenanted deployments:
Untenanted: Don't provide tenants or tenantTags. Can deploy to multiple environments at once.
Tenanted: Provide tenants or tenantTags. Can only deploy to ONE environment, but can target multiple tenants.
The tool automatically determines which deployment type to use based on the parameters provided.
Inputs: spaceName (required), projectName (required), releaseVersion (required), environmentNames (required), +15 more.
executeExecute an Octopus REST request (backstop)ADestructive
Reach Octopus REST endpoints not covered by the curated tools. Use this only after grep_llms_txt has shown you the right method and path.
Method gating is hard-coded server-side, three tiers:
GET ā read tier: always allowed (subject to toolset allowlist + sensitive denylist).
POST/PUT/PATCH ā write tier: blocked when --read-only is set; requires user confirmation via elicitation otherwise.
DELETE ā delete tier: requires --allow-deletes (and is blocked when --read-only is set) AND a stronger user confirmation.
The HTTP method enum is the gate. The tool will not honour any 'isRead' flag the agent invents ā the runtime classifies based on the actual method.
Other gates (in order): 0. Path shape: must be '/api' or start with '/api/'. Absolute URLs, '~/api/...', '/octopus/portal/...', query strings, fragments, '..' segments, and percent-encoded slashes are all rejected up front.
Sensitive denylist: API key endpoints and catastrophic deletes (DELETE /api/users/{id}, DELETE /api/spaces/{id}) are always blocked.
Path allowlist ā only applied when --toolsets has narrowed the active set. With every toolset enabled (the default, or explicit --toolsets all) any path under /api is reachable subject to the other gates; when toolsets are narrowed, paths only resolve if their owning toolset is enabled so disabling a toolset (e.g. 'certificates') makes its endpoints unreachable even on GET.
Elicitation on every non-GET, with a stronger message for DELETE.
Discover endpoints with grep_llms_txt. Use octopus://api/capabilities to see which toolsets are enabled and whether write/delete modes are on.
Inputs: method (required), path (required), query, body, +2 more.
find_accountsFind accounts in an Octopus Deploy spaceARead-onlyIdempotent
Find accounts in a space - can retrieve a single account by ID or list all accounts
This unified tool can either:
Get detailed information about a specific account when accountId is provided
List all accounts in a space when accountId is omitted
You can optionally filter by various parameters like name, account type, etc. when listing.
Inputs: spaceName (required), accountId, skip, take, +3 more.
find_certificatesFind certificates in an Octopus Deploy spaceARead-onlyIdempotent
Find certificates in a space - can retrieve a single certificate by ID or list all certificates
This unified tool can either:
Get detailed information about a specific certificate when certificateId is provided
List all certificates in a space when certificateId is omitted
You can optionally filter by various parameters like name, archived status, tenant, etc. when listing.
Inputs: spaceName (required), certificateId, skip, take, +7 more.
find_deployment_targetsFind deployment targets in an Octopus Deploy spaceARead-onlyIdempotent
Find deployment targets (machines) in a space - can retrieve a single target by ID or list all targets
This unified tool can either:
Get detailed information about a specific deployment target when targetId is provided
List all deployment targets in a space when targetId is omitted
You can optionally filter by various parameters like name, roles, health status, etc. when listing.
Inputs: spaceName (required), targetId, skip, take, +14 more.
find_eventsSearch the Octopus audit logARead-onlyIdempotent
Search the Octopus Deploy audit log (also called the Events log) ā every meaningful action recorded against a space: deployments, release creations, modifications, user logins, machine registrations, variable edits, tenant changes, and so on.
Modes (the mode arg):
search(default) ā query the audit log. RequiresspaceName. Supports rich filtering by user, project, environment, tenant, document type, date range, category, group, and agent.listCategoriesā enumerate every event category (e.g.DeploymentSucceeded).listGroupsā enumerate event groups (e.g.Created,Modified,Deleted,Deployment). Each group lists the categories inside it.listAgentsā enumerate user-agent strings recorded by the audit subsystem.listDocumentTypesā enumerate entity-prefix metadata (Projects-,Releases-, ...).
Search modes (within mode='search', picked by argument shape):
eventIdā fetch that single event. Mutually exclusive with list and pagination filters;excludeDifferenceis still honoured.otherwise ā list events matching the filters, paginated.
Performance tip: the per-event ChangeDetails field (the before/after diff for Modified events) is by far the heaviest payload field. Pass excludeDifference: true whenever scanning many events; fetch a single event without the flag when you need the diff.
Filter semantics:
regardingā AND semantics: event must reference EVERY listed document ID.regardingAnyā OR semantics: event must reference ANY listed document ID.All other multi-value filters (users, projects, environments, tenants, eventCategories, eventGroups, ...) are OR semantics within the field.
from(inclusive) andto(exclusive) accept ISO 8601 datetimes.
Permissions: requires EventView on the calling user's space scope. The server filters results further based on per-document permissions.
Inputs: mode, spaceName, eventId, regarding, +17 more.
find_feature_togglesFind feature togglesARead-onlyIdempotent
List customer feature toggles in an Octopus Deploy project.
Each summary includes per-environment state (isEnabled, rolloutPercentage, clientRolloutPercentage) so "where is X turned on" is answerable from the list response. Heavy fields (description, tenant lists, segments, minimum versions) live in the resource body.
Dereference the returned resourceUri (octopus://spaces/{spaceName}/projects/{projectId}/featuretoggles/{slug}) for the full toggle body.
Use update_feature_toggle to flip an environment on/off or change rollout percentages on an existing toggle. This MCP server does not expose toggle creation, deletion, renaming, or rollout-group management ā direct customers to the Octopus UI for those.
Inputs: spaceName (required), projectId (required), partialName, tags, +3 more.
find_interruptionsFind interruptionsARead-only
Find interruptions (manual interventions, guided failures, deployment approvals) in an Octopus Deploy space.
Interruptions are the Octopus surface equivalent to pending approvals: a deployment or runbook run pauses and waits for a human to take action. Use this tool to enumerate them or to look up a single one.
Modes (picked by which arguments you supply):
interruptionId ā fetch the slim summary for that interruption.
assignedToMe ā list interruptions the authenticated user can act on; resolves /users/me (cached per session).
regarding ā list interruptions related to a specific entity (ServerTasks-ā¦, Deployments-ā¦). Native server-side filter.
(none) ā list all interruptions, optionally filtered by pendingOnly (default: true) and skip/take.
Each summary includes:
resourceUri ā octopus://spaces/{spaceName}/interruptions/{id} for the FULL body (form definition with Markdown instructions, button options, control types, and any already-submitted values). Dereference this when the user asks for details about a specific interruption.
taskResourceUri ā octopus://spaces/{spaceName}/tasks/{taskId} for the surrounding deployment/runbook task.
publicUrl ā Octopus portal deep link to take action.
formElementNames ā just the field names (e.g. Instructions, Notes, Result). Field values are NOT in the slim summary; fetch resourceUri for those.
Inputs: spaceName (required), interruptionId, pendingOnly, assignedToMe, +3 more.
find_releasesFind releasesARead-onlyIdempotent
Find releases in an Octopus Deploy space.
Three modes, picked by which arguments are supplied:
releaseId ā fetch the summary for that release.
projectId ā list releases for that project (optionally filtered by searchByVersion).
neither ā list releases across the space.
Each summary includes a resourceUri for fetching the full release body (release notes, packages, build information, custom fields).
Inputs: spaceName (required), releaseId, projectId, searchByVersion, +2 more.
find_runbooksFind runbooks in a projectARead-onlyIdempotent
Find runbooks in an Octopus Deploy project.
Two project kinds are supported:
DB-backed projects: address runbooks by 'runbookId' (e.g. 'Runbooks-123'). The summary includes 'publishedRunbookSnapshotId', which run_runbook uses by default.
Config-as-Code (CaC) projects: pass 'gitRef' (branch name like 'main', tag, or commit SHA). Address a single runbook by 'runbookSlug'. The summary includes 'gitRef' instead of 'publishedRunbookSnapshotId'; run_runbook needs the same gitRef.
Modes:
runbookId ā fetch a single DB runbook.
runbookSlug + gitRef ā fetch a single CaC runbook.
gitRef alone ā list CaC runbooks at that ref.
neither ā list DB runbooks in the project (optionally filtered by partialName).
Each summary includes multiTenancyMode and environmentScope so callers can determine which environments and tenants are valid targets before invoking run_runbook.
Inputs: spaceName (required), projectName (required), runbookId, runbookSlug, +4 more.
find_tenantsFind tenants in an Octopus Deploy spaceARead-onlyIdempotent
Find tenants in a space - can retrieve a single tenant by ID or list all tenants
This unified tool can either:
Get details for a specific tenant when tenantId is provided, including the projects and environments the tenant is associated with
List all tenants in a space when tenantId is omitted
Tenants represent customers or clients in Octopus Deploy, allowing you to manage deployments and configurations specific to each tenant. Tenants can be grouped into tenant tags for easier management and deployment targeting. Tenants can also represent geographical locations, organizational units, or any other logical grouping.
Optionally provide filtering and pagination parameters when listing.
Inputs: spaceName (required), tenantId, skip, take, +4 more.
get_branchesGet Git branches for a version-controlled projectARead-onlyIdempotent
Get Git branches for a version-controlled project
This tool retrieves Git branches for a specific project in a space. The space name and project ID are required. Optionally provide searchByName, skip, and take parameters for filtering and pagination.
Inputs: spaceName (required), projectId (required), searchByName, skip, +1 more.
get_current_userGet current user informationARead-onlyIdempotent
Get information about the current authenticated user
This tool retrieves information about the currently authenticated user from the Octopus Deploy API.
Inputs: no named parameters.
get_deployment_from_urlGet deployment details from an Octopus Deploy URLARead-onlyIdempotent
Get deployment details from an Octopus Deploy deployment URL. Returns comprehensive deployment information including the task ID needed to view execution logs.
Accepts deployment URLs like: https://your-octopus.com/app#/Spaces-1/projects/my-app/deployments/releases/1.0.0/deployments/Deployments-123
Returns:
Full deployment details (environment, release, project, created time)
taskIdForLogs: the ServerTasks- ID for this deployment
taskResourceUri: octopus:// URI for the structured activity tree (resources/read or read_resource)
grepTaskLogHint: pre-filled arguments for the grep_task_log tool ā call it with a pattern to search the raw log without fetching the whole thing
Public URL for web portal access
Recommended workflow for investigating deployment issues:
Call get_deployment_from_url with the deployment URL
Review deployment context (environment, release version, etc.) 3a. Fetch the taskResourceUri for the structured activity tree (step timings, embedded log entries by category), OR 3b. Call grep_task_log with the taskId to search the raw log for a specific error / pattern
Handles space ID to space name resolution automatically.
Inputs: url (required).
get_deployment_processGet deployment process details from Octopus DeployBRead-onlyIdempotent
Get deployment process by ID
This tool retrieves a deployment process by its ID. Each project has a deployment process attached, and releases/deployments can also have frozen processes attached.
Inputs: spaceName (required), projectId, processId, branchName, +1 more.
get_kubernetes_live_statusGet Kubernetes live status from Octopus DeployARead-onlyIdempotent
Get Kubernetes live status for a project and environment
This tool retrieves the live status of Kubernetes resources for a specific project and environment. Optionally include a tenant ID for multi-tenant deployments.
Inputs: spaceName (required), projectId (required), environmentId (required), tenantId, +1 more.
get_missing_tenant_variablesGet missing tenant variables from Octopus DeployARead-onlyIdempotent
Get missing tenant variables
This tool retrieves tenant variables that are missing values. Optionally filter by tenant, project, or environment.
Inputs: spaceName (required), tenantId, projectId, environmentId, +1 more.
get_task_from_urlGet task details from an Octopus Deploy URLARead-onlyIdempotent
Get task details from an Octopus Deploy task URL. Returns full task details including execution logs and state.
This tool is a URL-to-ID resolver that returns the same body as the octopus://spaces/{spaceName}/tasks/{taskId}/details resource ā no need to dereference the URI afterward. If you only need lightweight metadata for polling (state, timing, completion flags) use the smaller octopus://spaces/{spaceName}/tasks/{taskId} resource instead.
Accepts task URLs like: https://your-octopus.com/app#/Spaces-1/tasks/ServerTasks-456
Key features:
Returns full task details including execution logs
Handles space ID to space name resolution automatically
Validates task ID format
For deployment URLs: If you have a deployment URL, use this workflow:
Call get_deployment_from_url with the deployment URL
Use the returned taskResourceUri (structured tree) or call grep_task_log with the returned taskId to search the raw log
Tasks represent background operations in Octopus Deploy, such as deployments, health checks, and system maintenance. Each task has a unique ID and can be monitored for status and progress.
Inputs: url (required).
get_tenant_variablesGet tenant variables from Octopus DeployARead-onlyIdempotent
Get tenant variables by type
This tool retrieves different types of tenant variables. Use variableType parameter to specify which type:
"all": Get all tenant variables
"common": Get common variables only
"project": Get project-specific variables only
Inputs: spaceName (required), tenantId (required), variableType (required), includeMissingVariables.
get_variablesGet variables for a Project from Octopus DeployARead-onlyIdempotent
This tool gets all project and library variable set variables for a given project. Projects can contain variables (specific to a project), library variable sets (shared collections of variables associated with many projects), and tenant variables (variables related to a tenants connected to the project) If you want to retrieve tenant variables for a tenant connected to the project, use the get_tenant_variables tool.
Inputs: spaceName (required), projectId (required), gitRef.
grep_llms_txtGrep the Octopus API catalog (llms.txt)ARead-onlyIdempotent
Search the Octopus API catalog at octopus://api/llms.txt with grep-style semantics. The catalog is large (~300+ KB) ā call this rather than reading the resource body directly.
llms.txt is structured as:
Authentication and Space Selection sections (top of file)
Endpoints section: one '### {Category}' heading per resource family (Accounts, ActionTemplates, Channels, Releases, ā¦) and one bullet per endpoint of the form
- \METHOD /path` - description | Prefixes (pick one): /{spaceId}, /spaces/{spaceIdentifier} | ?queryParams ā ReturnType`Steps section: deployment step types (Octopus.* ActionType) and their configurable property keys.
Useful patterns:
'POST /releases' ā find write endpoints under a resource family
'DELETE ' ā enumerate delete endpoints
'### Channels' ā jump to a section heading
'Body: Create.*Command' ā find endpoints that take a Create command body
Parameter conventions mirror GNU grep:
pattern (regex by default; set fixedString:true for literal text)
caseInsensitive (-i)
invertMatch (-v)
fixedString (-F)
beforeContext (-B)
afterContext (-A)
maxCount (-m)
Response: totalMatches (true count across the whole file), totalLines, the matched lines with 1-indexed lineNumber, optional before/after context arrays, and catalogResourceUri for the structured fall-through.
Inputs: pattern (required), caseInsensitive, invertMatch, fixedString, +3 more.
grep_task_logGrep an Octopus task activity logARead-onlyIdempotent
Search a server task's activity log with grep-style semantics. Returns only matching lines (with optional symmetric context windows). This is the canonical way to inspect task logs ā there is no full-log resource URI, because exposing one would tempt callers to inhale multi-megabyte bodies when grep is almost always the better primitive.
Use this when you know what to look for (a specific error string, a step name, a pattern). For structured access to the activity tree (step hierarchy, categories, timing) use the octopus://spaces/{spaceName}/tasks/{taskId}/details resource instead.
Parameter conventions mirror GNU grep so the schema is self-explanatory:
pattern (regex by default; set fixedString:true for literal text)
caseInsensitive (-i)
invertMatch (-v)
fixedString (-F)
beforeContext (-B)
afterContext (-A)
maxCount (-m)
Response includes totalMatches (true count across the whole log), totalLines, the matched lines with 1-indexed lineNumber, optional before/after context arrays, and a taskDetailsResourceUri for the structured fall-through.
Inputs: spaceName (required), taskId (required), pattern (required), caseInsensitive, +6 more.
list_deploymentsList deployments in an Octopus Deploy spaceARead-onlyIdempotent
List deployments in a space
This tool lists deployments in a given space. The space name is required. When requesting latest deployment consider which deployment state the user is interested in (successful or all). Optional filters include: projects (array of project IDs), environments (array of environment IDs), tenants (array of tenant IDs), channels (array of channel IDs), taskState (one of: Canceled, Cancelling, Executing, Failed, Queued, Success, TimedOut), and take (number of results to return).
Inputs: spaceName (required), projects, environments, tenants, +4 more.
list_environmentsList all environments in an Octopus Deploy spaceARead-onlyIdempotent
List environments in a space
This tool lists all environments in a given space. The space name is required. Use this tool as early as possible to understand which environments are configured. Optionally filter by partial name match using partialName parameter.
Inputs: spaceName (required), partialName, skip, take.
list_projectsList all projects in an Octopus Deploy spaceARead-onlyIdempotent
This tool lists all projects in a given space. Projects let you manage software applications and services, each with their own deployment process, lifecycles, and variables. Projects are where you define what you are deploying and how it should be deployed. The space name is required, if you can't find the space name, ask the user directly for the name of the space. Optionally filter by partial name match using partialName parameter.
Inputs: spaceName (required), partialName, skip, take.
list_spacesList all spaces in an Octopus Deploy instanceBRead-onlyIdempotent
List all spaces in the Octopus Deploy instance. Spaces is the main organizational unit in Octopus Deploy, Spaces keep the different projects, infrastructure and tenants completely separate. Spaces typically represent team or project boundary, but not customer boundary (use tenants for those). Always use this tool first to check that the requested space exists.
Inputs: partialName, skip, take.
read_resourceRead an Octopus resource by URIARead-onlyIdempotent
Universal fetch for any 'octopus://' URI returned by any other tool. Use this whenever you see fields like 'resourceUri' or 'taskResourceUri' in a response and need the full body.
How to use:
Pass the URI string verbatim. Examples: 'octopus://spaces/Default/releases/Releases-42', 'octopus://spaces/Default/tasks/ServerTasks-7', 'octopus://spaces/Default/tasks/ServerTasks-7/details'.
The response 'mimeType' tells you how to interpret 'text': 'application/json' ā parse as JSON.
This tool is the backstop for clients that do not natively implement the MCP 'resources/read' primitive. Clients that DO support resources/read (Claude Code, MCP Inspector) can call it directly and skip this tool. Either path returns byte-identical bodies.
Tools that return resource URIs include: find_releases, get_deployment_from_url, get_task_from_url, and others. When in doubt, call read_resource on any 'octopus://' string you encounter.
Note: there is intentionally no octopus://...tasks/{id}/log resource. Call the grep_task_log tool to search task logs without inhaling the full body.
Inputs: uri (required).
run_runbookRun a runbook in Octopus DeployADestructive
Run a runbook against one or more environments in Octopus Deploy.
Runbooks execute operational processes (DB backups, smoke tests, environment refresh, etc.) against the specified environments. For tenanted runs, supply tenants and/or tenantTags.
Two project kinds:
DB-backed projects: by default the runbook's published snapshot is used; pass runbookSnapshotId to pick a specific snapshot.
Config-as-Code projects: pass gitRef (branch name like 'main', tag, or commit SHA). Snapshots don't apply ā the gitRef is the version pin. Use find_runbooks with the same gitRef to discover runbook names.
Inputs: spaceName (required), projectName (required), runbookName (required), environmentNames (required), +13 more.
update_feature_toggleUpdate a feature toggleADestructive
Adjust an existing customer feature toggle in an Octopus Deploy project.
Narrow surface ā flip an environment on/off, change rollout percentages, or update the toggle-level description / default state. Internally fetches the current toggle, applies your patches in memory, and PUTs the merged body, so unmentioned environments and unmentioned fields are preserved.
Deliberately not exposed: name/slug rename, tag changes, rollout group attach/detach, tenant targeting, segments, minimum version, adding or removing environment configurations entirely. For those, use the Octopus UI.
Patches that reference an environment not already configured on the toggle are rejected with reason: environment_not_configured. The tool does not add new environment configurations.
Inputs: spaceName (required), projectId (required), slug (required), defaultIsEnabled, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 30 tools
Most tools target clearly distinct Octopus resources (spaces, projects, deployments, releases, runbooks, tenants, events, etc.). A few adjacent pairs like get_task_from_url vs grep_task_log or get_variables vs get_tenant_variables could cause momentary confusion, but the descriptions generally resolve it.
All names are readable snake_case verb_noun, but read operations are split across list_, find_, get_, and grep_, while writes use create_, deploy_, run_, update_, and execute. There is no single predictable verb pattern, though the names are mostly self-explanatory.
At 30 tools, this exceeds the 25+ threshold for 'too many'. The Octopus domain is broad, but the surface is heavy with niche getters and two generic escape-hatch tools, making it harder for an agent to navigate than a more focused set would be.
Core workflows are covered: explore spaces/projects/environments, create and deploy releases, run runbooks, and inspect tasks/logs. However, many resources are read-only in the curated surfaceāno create/update/delete for projects, variables, tenants, targets, or certificatesāand interruptions can be found but not acted on. The execute tool partially compensates for these gaps.
Maintenance
Related MCP Connectors
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Read-only production context for AI agents: Docker/K8s health, deploys, logs, traffic, code graph
Ask your AI assistant about your logs, traces, security events, robot runs and video. Read-only.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceConnects AI assistants to an Octopus instance so they can inspect, query, and diagnose deployments, projects, releases, runbooks, tenants, and infrastructure through curated read and write tools. It can also create releases, trigger deployments, run runbooks, and call Octopus REST APIs, with read-only and delete-restricted modes for safer operation.547 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants like Claude Code and ChatGPT to inspect, query, and diagnose problems within an Octopus instance, and optionally create releases, deploy them to environments and tenants, and run runbooks. Tools are grouped into toolsets covering projects, deployments, releases, runbooks, tasks, tenants, Kubernetes, machines, certificates, accounts, and interruptions, with a read-only mode for production use.547 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to inspect, query, and diagnose DevOps workflows in an Octopus Deploy instance through tools for projects, deployments, releases, runbooks, tasks, tenants, Kubernetes, machines, certificates, accounts, and interruptions.547 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to connect to an Octopus instance to inspect, query, and diagnose deployment problems, with toolsets covering projects, releases, deployments, runbooks, tenants, Kubernetes, machines, and accounts. Supports read-only mode and gated write operations for creating releases, deploying, and running runbooks.547 npmMIT