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.

  1. 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.
  2. 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.

VariableMeaning
PASSIVE_API_KEYRequired. Your pvk_ key.
PASSIVE_COORDINATOR_URLDefault https://api.passivedev.com. Set it to point at a dev coordinator.
PASSIVE_MCP_READ_ONLYSet to 1 to offer only the read tools. Any value but unset, empty, 0, false, no or off counts as on.

Tools

ToolScope it needsWhat it returns
check_connectionany valid keyWhether Passive is reachable and the key works
list_apps, get_appapps:readApps, status and why, health, commit, domains, env variable names
get_app_deploymentsapps:readDeploy history and whether each commit is verified
get_app_eventsapps:readThe timeline of why an app is in its state
get_app_logsapps:readRecent log lines, optionally following for a few seconds
get_app_metricsapps:readRequests, errors and latency
list_app_domainsapps:readCustom domains and their DNS records
list_databases, get_database, get_database_schemadb:readDatabases and their schema. Never a password or row data
list_database_backupsdb:readA database's backups and recent restores from them
list_jobs, get_jobjobs:readBatch jobs
list_workersworkers:readConnected machines
search_docsnoneSearches 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.

ToolScope it needsWhat it does
deploy_from_gitapps: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_imageapps:writeCreate an app from a Docker image
redeploy_appapps:writeRebuild and redeploy the recorded commit
deploy_latestapps:writeDeploy the head of the connected branch
change_branchapps:writeDeploy another branch
rollback_appapps:writeRedeploy a previous successful deployment
create_databasedb:writeCreate a Postgres database. The connection string is not returned
restore_databasedb:writeRestore a backup into a new database, never over the original. The connection string is not returned
attach_databaseapps:writeGive an app a database; Passive sets DATABASE_URL itself
add_domain, verify_domainapps:writeAttach 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.

ToolScopeRemoves
delete_appapps:writeAn app and its deployment history
delete_databasedb:writeA database and all its data. Refused while an app is attached
detach_databaseapps:writeAn app's database connection. The database survives
remove_domainapps:writeA 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:secrets and db: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.