Passive MCP server
Lets an MCP client work on a Passive workspace: look at apps, deployments, logs, databases, jobs and workers, and deploy, roll back, attach databases and manage domains. Passive hosts it, and it also runs on your own machine from the source. Either way it talks to Passive with your own credential.
What it can do is whatever your key allows, and no more. A read-only key gives a
read-only server. Set PASSIVE_MCP_READ_ONLY=1 and the tools that change anything are not
even offered.
Connect by URL
Nothing to install. The first time you use it, your client opens a browser and you sign in to Passive and choose what to allow; there is no key to create or paste.
claude mcp add --transport http passive https://mcp.passivedev.com/mcp
Or, if your client cannot sign in with a browser, use a key:
claude mcp add --transport http passive https://mcp.passivedev.com/mcp \
--header "Authorization: Bearer pvk_..."
https://mcp.passivedev.com/mcp/read-only offers only the read tools and search_docs: the
tools that change anything do not exist there, and signing in to it grants read scopes only.
Every request carries your token, the server stores nothing, and it can only call Passive's API
with the token you gave it.
The token you get from signing in lasts an hour and renews itself. It appears in API keys in the
dashboard, marked signed in, and Disconnect there ends the connection. Signing in grants only
the permissions the tools use (apps:read, apps:write, db:read, db:write, jobs:read,
workers:read), whatever the client asks for. The scopes that reveal secrets or table data are never among
them.
Run it from source
If you have Passive's source, the server also runs locally over stdio with an API key.
- Create an API key at https://passivedev.com/dashboard/settings/api-keys. Choose Read only to let an agent look around, or Deploy and manage to let it deploy. Do not tick the sensitive permissions; the server cannot use them anyway.
- Add the server to your MCP client.
Claude Code:
claude mcp add passive --env PASSIVE_API_KEY=pvk_... -- passive-mcp
Any client that takes a JSON config:
{
"mcpServers": {
"passive": {
"command": "passive-mcp",
"env": { "PASSIVE_API_KEY": "pvk_..." }
}
}
}
From the repository's root, install its dependencies with pip install -r passive_mcp/requirements.txt. pip install -e ".[mcp]" there also provides the passive-mcp
command used above; without it, run python -m passive_mcp instead.
| Variable | Meaning |
|---|---|
PASSIVE_API_KEY | Required. Your pvk_ key. |
PASSIVE_COORDINATOR_URL | Default https://api.passivedev.com. Set it to point at a dev coordinator. |
PASSIVE_MCP_READ_ONLY | Set to 1 to offer only the read tools. Any value but unset, empty, 0, false, no or off counts as on. |
Tools
| Tool | Scope it needs | What it returns |
|---|---|---|
check_connection | any valid key | Whether Passive is reachable and the key works |
list_apps, get_app | apps:read | Apps, status and why, health, commit, domains, env variable names |
get_app_deployments | apps:read | Deploy history and whether each commit is verified |
get_app_events | apps:read | The timeline of why an app is in its state |
get_app_logs | apps:read | Recent log lines, optionally following for a few seconds |
get_app_metrics | apps:read | Requests, errors and latency |
list_app_domains | apps:read | Custom domains and their DNS records |
list_databases, get_database, get_database_schema | db:read | Databases and their schema. Never a password or row data |
list_database_backups | db:read | A database's backups and recent restores from them |
list_jobs, get_job | jobs:read | Batch jobs |
list_workers | workers:read | Connected machines |
search_docs | none | Searches Passive's own docs (statuses, deploys, errors, scopes). Makes no request |
Tools that change things
Every call is sent with an Idempotency-Key. A call that fails without saying whether it ran
names its key, and calling again with idempotency_key set to it returns the first call's
result instead of running it twice. A deploy returns as soon as it is accepted, with a
deployment_id, and builds in the background (Prefer: respond-async): poll
get_app_deployments until that entry is succeeded or failed, then get_app until the
status is running.
| Tool | Scope it needs | What it does |
|---|---|---|
deploy_from_git | apps:write (and db:write with with_database) | Create an app from a GitHub repository (your GitHub account must be connected in the dashboard). A repository no app in the workspace deploys yet needs confirm set to its full name, after you agree to publish it. with_database also creates a database named after the app, and the first deploy already has DATABASE_URL; its connection string is never returned |
deploy_image | apps:write | Create an app from a Docker image |
redeploy_app | apps:write | Rebuild and redeploy the recorded commit |
deploy_latest | apps:write | Deploy the head of the connected branch |
change_branch | apps:write | Deploy another branch |
rollback_app | apps:write | Redeploy a previous successful deployment |
create_database | db:write | Create a Postgres database. The connection string is not returned |
restore_database | db:write | Restore a backup into a new database, never over the original. The connection string is not returned |
attach_database | apps:write | Give an app a database; Passive sets DATABASE_URL itself |
add_domain, verify_domain | apps:write | Attach a custom domain and check its DNS |
Tools that remove things
These refuse unless confirm is set to the exact name of what is being removed, and
the refusal changes nothing. Your MCP client may also ask you before running them.
| Tool | Scope | Removes |
|---|---|---|
delete_app | apps:write | An app and its deployment history |
delete_database | db:write | A database and all its data. Refused while an app is attached |
detach_database | apps:write | An app's database connection. The database survives |
remove_domain | apps:write | A custom domain |
If a tool answers insufficient_scope, the key lacks the scope in the table. Make a new
key that has it.
What it will never do
- Call a route that returns or sets a secret. The two scopes that reveal secrets,
apps:secretsanddb:credentials, are never used by any tool, and a test fails if a tool is pointed at a route that needs one. There is no tool to set an environment variable: set those in the dashboard. A created database's connection string is not returned either. - Pass on anything shaped like a credential. Environment variable values and secret-named fields are removed from every result, and every string, log lines included, is scanned for credential shapes: a URL with a password, an API key, a GitHub, Stripe or AWS token, a JWT, a private key. A secret with no recognisable shape still passes: an app that prints a bare password to its logs shows it to whoever reads them, a model included.
- Run SQL. A key may call the SQL endpoint through the API; this server does not offer it.
- Act beyond your key. Every tool is one request to Passive made with your key. Passive enforces the key's scopes, your role in the workspace, and the rate limit.
- Send your key anywhere else. It goes only to the coordinator URL, and redirects are not followed.
How it fits together
MCP client ── HTTPS ──> mcp.passivedev.com ── HTTPS + your token ──> Passive API
MCP client ── stdio ──> passive-mcp (local) ── HTTPS + your key ───> Passive API
Either way the server is a thin adapter: each tool is one request to Passive's API, made with your own credential. Passive checks the permissions, your role and the rate limit on every request, exactly as it does for any other client of the API.