MCP server
Connect Cursor, Claude, VS Code, or any MCP client to ZopDay. Ask about services, deployments, environments and live cloud state in plain language.
The ZopDay MCP server lets an AI assistant read your workspace directly. Ask Claude “which services failed their last three deploys?” and it queries your live projects, deployments, and cluster state instead of guessing.
It speaks the Model Context Protocol over Streamable HTTP. Setup steps for common clients are below. Any other MCP-capable client connects the same way: use the Other tab.
Before you start
You need:
- A ZopDay user account in the organisation. The assistant acts with your role, so it sees only what you can see in the app.
- Access to the MCP Server section, or a colleague who has it: a user who can see the MCP Server section in Settings → Organisation can switch the MCP server on and change Write access.
- An MCP client that speaks Streamable HTTP, such as Cursor, Claude Code, Claude, VS Code, or Codex (each has a tab below). For OAuth, the client must be able to open a browser. For CI and headless servers, use a Personal Access Token instead.
Then:
Enable MCP for the organisation
Open Settings → Organisation, scroll to the MCP Server section, and switch the toggle on. The badge changes from Inactive to Active and the server URL appears. Only a user who can see the MCP Server section can switch it on.
Copy your server URL
Your server URL is
https://api.zop.dev/mcp-server. It is the same for every organisation because sign-in selects the org, so you don’t need to look it up in the app.
The same MCP server serves both products; in ZopNight the equivalent settings are at Settings → Organization (MCP Server section) and Settings → API & MCP → API Tokens / Connected Apps.
Choose how to sign in
You can authenticate in two ways. Every client below supports OAuth; all except Claude Desktop also accept a Personal Access Token.
OAuth
Recommended. There is no token to copy or secret to store. Sign in once in a browser window and your client is connected. Sessions appear on Developer Settings → Connected Apps, where you can revoke them at any time.
Personal Access Token
For CI, servers, or clients that can’t open a browser. Create a long-lived token in Developer Settings and pass it as an Authorization: Bearer header.
Option 1: OAuth (recommended)
There is nothing to configure up front. Point your client at https://api.zop.dev/mcp-server and let it prompt on the first tool call. A browser tab opens to ZopDay, you approve the connection once, and the client stores refreshable tokens itself.
Option 2: Personal Access Token
Open Developer Settings
Click your profile avatar at the bottom-left of the sidebar, then Developer Settings.
Create the token
Under API Tokens, click Create Token, name it after the client that will use it (“Cursor” or “Claude Code”), choose an expiry, and confirm.
Copy it once
The token is shown only once. Copy it straight into your secret manager, not into a committed file. The config blocks below call it
MCP_PAT.

Developer Settings → API Tokens: the tokens that authenticate the API and your AI assistants over MCP, each scoped to the organisations and write capabilities you pick.
A token acts as you, limited to the organisations and write capabilities you pick when you create it. Each call resolves your live role at the moment it is made, so a token can never do more than you can. Create it as the person with the narrowest role that can do the job, and pick only the organisations and write access the client needs.
Set up your client
Find your client below and follow its steps. Most cards cover both OAuth (the recommended one-click sign-in) and Personal Access Token (for CI, servers, and clients that can’t open a browser); pick the tab that matches how you want to authenticate. Claude Desktop connects with OAuth only.
Configure your MCP client to connect to your workspace.
Install in one click:
Add to CursorOr set it up manually:
Open the MCP servers panel
In Cursor, open Customize → MCPs → New MCP server. Cursor opens
~/.cursor/mcp.jsonfor editing.Paste the config
Pick OAuth (recommended) or a Personal Access Token; the tabs below toggle the config.
OAuth (recommended) {"mcpServers": {"zopdev": {"url": "https://api.zop.dev/mcp-server","transport": "streamable-http"}}}Personal Access Token {"mcpServers": {"zopdev": {"url": "https://api.zop.dev/mcp-server","transport": "streamable-http","headers": { "Authorization": "Bearer MCP_PAT" }}}}For PAT, swap
MCP_PATfor the token you copied at Developer Settings → API Tokens.Save and enable
Save the file. Back on the MCPs panel, click the new zopdev entry and turn the User (
~/.cursor/mcp.json) toggle on.Reload and authenticate
Click Reload on the zopdev entry. OAuth opens a browser window to sign in; approve to finish. PAT users skip this: the token authenticates every call. The tools appear inside Cursor on the next call.
Add the server
Inside a Claude Code session, pick OAuth (recommended) or a Personal Access Token; the tabs below toggle the command. The
-t httpflag is required. Without it, Claude records the URL as a program to execute.OAuth (recommended) claude mcp add zopdev https://api.zop.dev/mcp-server -t httpPersonal Access Token claude mcp add zopdev https://api.zop.dev/mcp-server -t http -H "Authorization: Bearer MCP_PAT"For PAT, swap
MCP_PATfor the token you copied at Developer Settings → API Tokens.Restart Claude
Quit Claude Code and start a fresh session with
claude. The new MCP server is picked up on startup.Authenticate
In the session, run
/mcp, find the zopdev entry, and select Authenticate. OAuth opens a browser window to sign in; approve to finish. PAT users skip this: the header authenticates every call.
Open the custom connector form
In Claude Desktop, click your profile → Settings → Connectors → Add → Add custom connector.
Fill in the details
- Name:
zopdev - Remote MCP Server URL:
https://api.zop.dev/mcp-server
Then click Continue.
- Name:
Add and connect
Claude Desktop shows a few security-verification prompts. Accept each one, then click Add to save the connector. Click Connect, and OAuth opens a browser window to sign in. Approve to finish.
Install in one click:
Add to VS CodeOr set it up manually:
Open the MCP config file
In VS Code (1.99+), open the Command Palette (
Cmd + Shift + Pon macOS,Ctrl + Shift + Pon Windows/Linux), typeMCP, and pick the command that opens your user MCP config file (labelled something like MCP: Open User Configuration). To scope the server to one project instead, create.vscode/mcp.jsonin the workspace root.Paste the config
Pick OAuth (recommended) or a Personal Access Token; the tabs below toggle the config.
OAuth (recommended) {"servers": {"zopdev": {"url": "https://api.zop.dev/mcp-server","type": "http"}}}Personal Access Token {"servers": {"zopdev": {"url": "https://api.zop.dev/mcp-server","type": "http","headers": { "Authorization": "Bearer MCP_PAT" }}}}For PAT, swap
MCP_PATfor the token you copied at Developer Settings → API Tokens.Save and authenticate
Save the file. VS Code starts the server automatically and shows a ✓ Running · Stop · Restart · More… inlay hint above the
zopdeventry. On the first tool call, OAuth opens a browser window to sign in; approve to finish. PAT users skip this: the header authenticates every call.You can also manage the server from Extensions → MCP Servers - Installed → zopdev.
Add the server
Inside a Codex CLI session, pick OAuth (recommended) or a Personal Access Token; the tabs below toggle the command.
OAuth (recommended) codex mcp add zopdev --url https://api.zop.dev/mcp-serverPersonal Access Token export ZOPDEV_MCP_PAT=<your token>codex mcp add zopdev --url https://api.zop.dev/mcp-server --bearer-token-env-var ZOPDEV_MCP_PATCopy
<your token>from Developer Settings → API Tokens and export it in the shell before you launch Codex. Codex reads the env var by name at connect time.Authenticate
Run
codex mcp login zopdevand follow the prompts. OAuth opens a browser window to sign in; approve to finish. PAT users skip this: the bearer env var authenticates every call.
Open your client's MCP config
Any client that speaks the standard MCP JSON config works. Find its config file or MCP settings UI in its docs.
Check the field names
Some clients use
serverUrlinstead ofurl, ortypeinstead oftransport. The URL and header values below stay the same; only the surrounding key names change.Paste one of these configs
Pick OAuth (recommended) or a Personal Access Token; the tabs below toggle the config.
OAuth (recommended) {"mcpServers": {"zopdev": {"url": "https://api.zop.dev/mcp-server","transport": "streamable-http"}}}Personal Access Token {"mcpServers": {"zopdev": {"url": "https://api.zop.dev/mcp-server","transport": "streamable-http","headers": { "Authorization": "Bearer MCP_PAT" }}}}For PAT, swap
MCP_PATfor the token you copied at Developer Settings → API Tokens.Save and connect
Save the config and restart the client. On the first tool call, OAuth opens a browser to sign in; approve to finish. PAT users skip this: the header authenticates every call.
Confirm it works
Start a fresh session and ask:
List my organisationsA working connection calls list_organisations and reads back your organisations by name. Run this before asking anyone for help. It tests the connection on its own: list_organisations is the only tool that needs no arguments, and most other tools take the org_id it returns.
If it fails, see Troubleshooting below.
What the tools cover
The MCP server has 332 tools: 185 read and 147 write. For ZopDay, the tools cover everything you need to ship: projects, environments and services, deploys, infrastructure, provisioning, database migrations, and cluster components. By area, with examples:
| Area | Covers | For example |
|---|---|---|
| Organisations & permissions | The organisations you can reach and what your own token may do | list_organisations, get_my_permissions |
| Projects, environments & services | The Project → Environment → Service hierarchy, where each environment runs (ZopCloud or your own account), and per-service status | list_projects, list_environments, list_services, get_project_stats |
| Deploys | Deploy history, shipping a new service or a new revision, rolling back, and following a deploy to active | list_deploys, deploy_service, redeploy_service, rollback_service, wait_for_deploy |
| Debugging a deploy | Build output, live replica logs, and a one-call diagnosis of a failed or stuck deploy | diagnose_deploy, get_build_logs, get_service_logs |
| Infrastructure & provisioning | Clusters, VM pools, and datastores on one list, provisioning jobs and their step progress, retrying a failed job | list_infrastructure, list_provisioning_jobs, get_provisioning_job_overview, retry_provisioning_job |
| Components | The Helm and VM component catalogue, installing a component, and moving an installed one to a pinned version | list_infrastructure_components, install_infrastructure_component, upgrade_infrastructure_component |
| Database migrations | Copies of a database between Cloud SQL instances, with per-step status | list_migrations, start_migration, retry_migration |
| Audit | The audit trail, including every call an assistant makes | list_audit_logs |
The same server also carries the ZopNight tools (resources, cost, recommendations, schedules, budgets, and the tags ZopNight derives); see the ZopNight MCP page.
For the authoritative list, call tools/list or ask your assistant what tools it has. The list is filtered to what your token and role allow, so it shows what you can use rather than the whole tool list.
Start with two tools:
list_infrastructureshows every cluster, VM pool, and datastore on one list, the same board as the Infrastructure page.diagnose_deployanswers “why did this deploy fail?” in one call. It reads the stage-by-stage deploy trail, the build output, and what the running replicas are printing.
Reads and writes
Most tools read. A smaller set writes: it deploys or rolls back a service, starts or retries a provisioning job, installs a component, or, on the ZopNight side, changes a schedule or a budget.
One setting per organisation, Write access in Settings → Organisation, controls how much an agent may change. The levels are cumulative, so each level also admits every level below it:
| Write access | Admits | For example |
|---|---|---|
| Read-only | Nothing. Read tools only. | None |
| Metadata only | Records inside the platform. No cloud state, no cost. | Budgets, recommendation status, smart-tag acceptance |
| Reversible changes | Bounded blast radius, may affect cost. | Schedules, overrides, tagging policies |
| Irreversible changes | No undo, or incurs cost. | Starting and stopping resources |
Every organisation starts at Read-only. Irreversible changes need a token bound to a single organisation. ZopDay deploy, rollback and provisioning tools follow the same tiers; the tool list shows what your level allows.
Writes must also be switched on for the service as a whole, and that switch is off by default; if a write tool never appears even after you raise Write access, contact support. Role and member management (roles, organisation members, and team-member changes) is admitted at Metadata only, and bulk start and stop at Irreversible changes. Four capabilities are excluded at every level, and no setting adds them: organisation deletion, cloud-account deletion, credential reads, and org-level role assignment.
An agent can never exceed the permissions of the person whose token it holds. ZopDay resolves the role on every call, so revoking someone’s access in the app takes effect on their next tool call. Every write is recorded in the audit trail.
Troubleshooting
List my organisations fails
Check the transport flag, whether the token has expired, and whether the organisation toggle is on. For OAuth, check that you approved the browser prompt. The MCP Server section in Settings → Organisation should show Active; only a user who can see that section can switch it on.
Claude Code tries to run the URL as a program
The server was added without the -t http flag, so Claude recorded the URL as a program to execute. Remove the entry and add it again with -t http.
Calls fail after I revoked an app
If you revoke an app on the Connected Apps page, its subsequent calls fail. Reconnect the client with OAuth, or give it a new Personal Access Token from Developer Settings → API Tokens.
New tools don't show up after setup
Clients pick up newly added tools once per session. Start a new chat on a web client, or open a fresh window or terminal in an IDE, desktop app, or CLI.