
nimbuz-mcp
io.github.nimbuz-tech/nimbuz-mcp
Manage Nimbuz Cloud projects, environments, apps, managed tools, logs and metrics from AI agents.
Documentation
Nimbuz MCP Server
Let Claude, Cursor, VS Code and other AI agents work with Nimbuz Cloud: projects, environments, apps, managed tools, domains, AI endpoints, cron jobs, logs, metrics and billing, through the Model Context Protocol.
claude mcp add nimbuz -e NIMBUZ_API_KEY=nmz_… -- npx -y @nimbuz-tech/mcp
Then ask things like:
- "Why is the api app in shop-api production failing?"
- "Deploy github.com/acme/web to staging and tell me when it's up."
- "Add a PostgreSQL database to staging and give the api app its connection settings."
- "Which apps use the most memory compared to their limit?"
- "How much have I spent this month, and what's the forecast?"
Contents
- How it works
- Get an API key
- Set up your client: Claude Code · Claude Desktop · Cursor · VS Code · Windsurf and others
- Configuration
- Tools · full reference
- Making changes safely
- Troubleshooting
- Development
How it works
Your AI client starts nimbuz-mcp on your own machine and talks to it over stdin/stdout. When the model calls a tool, the server calls the Nimbuz API (https://api.nimbuz.tech) with your account API key.
- The server can do exactly what that key is allowed to do, and nothing more.
- Nothing is hosted. Your key and data go only between your machine and Nimbuz.
- Secret values (passwords, connection strings, app secrets) are masked in every result unless you opt in.
Get an API key
-
In the Nimbuz portal, open Account Information → API Keys and create a key. It looks like
nmz_<12 hex>_<secret>. -
Choose what it may do: permissions per project, environment and action, an optional endpoint allow-list and an optional expiry.
-
Give it to the server, in one of two ways:
NIMBUZ_API_KEYin the server's environment, as in the setup examples below. Simplest; the client stores the key in its MCP config.nimbuz loginwith the Nimbuz CLI. The key is saved in~/.nimbuz-cli/config.json(readable only by you), never lands in your shell history, and is shared with the CLI. Leave outNIMBUZ_API_KEYand the server reads it from there, on every call, so a new login needs no restart.
NIMBUZ_API_KEYwins when both are set.
Tip: give your AI client its own key, for example read-only everywhere and write access only on staging. API keys can never manage users, policies, 2FA or other keys.
Set up your client
All clients run the same command, npx -y @nimbuz-tech/mcp, which needs Node.js 18 or newer. Replace nmz_… with your key, or leave the key out if you used nimbuz login.
Claude Code
claude mcp add nimbuz -e NIMBUZ_API_KEY=nmz_… -- npx -y @nimbuz-tech/mcp
Variations:
# with a default project and environment
claude mcp add nimbuz -e NIMBUZ_API_KEY=nmz_… -e NIMBUZ_PROJECT=shop-api -e NIMBUZ_ENV=production -- npx -y @nimbuz-tech/mcp
# read-only: no tool that changes anything is loaded
claude mcp add nimbuz -e NIMBUZ_API_KEY=nmz_… -e NIMBUZ_MCP_READ_ONLY=true -- npx -y @nimbuz-tech/mcp
# key saved by `nimbuz login`
claude mcp add nimbuz -- npx -y @nimbuz-tech/mcp
Add --scope user to use it in every project. --scope project writes .mcp.json for your team: don't put a key there; let each person use nimbuz login.
Claude Desktop
Settings → Developer → Edit Config opens claude_desktop_config.json. Add:
{
"mcpServers": {
"nimbuz": {
"command": "npx",
"args": ["-y", "@nimbuz-tech/mcp"],
"env": { "NIMBUZ_API_KEY": "nmz_…" }
}
}
}
Restart Claude Desktop afterwards.
Cursor
Add the same mcpServers block as for Claude Desktop to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json in a project.
VS Code
Add to .vscode/mcp.json (or run MCP: Add Server). This version asks for the key once and keeps it out of the file:
{
"inputs": [
{ "type": "promptString", "id": "nimbuz-api-key", "description": "Nimbuz API key (nmz_…)", "password": true }
],
"servers": {
"nimbuz": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@nimbuz-tech/mcp"],
"env": { "NIMBUZ_API_KEY": "${input:nimbuz-api-key}" }
}
}
}
Windsurf and other clients
Any client that runs local (stdio) MCP servers works. Use command npx, arguments -y @nimbuz-tech/mcp, and the environment variables below. For Windsurf, add the Claude Desktop mcpServers block to ~/.codeium/windsurf/mcp_config.json.
Clients that read the MCP Registry can also find it as io.github.nimbuz-tech/nimbuz-mcp.
Configuration
| Variable | Purpose |
|---|---|
NIMBUZ_API_KEY | Account API key (nmz_…). Overrides the key saved by nimbuz login. |
NIMBUZ_PROJECT / NIMBUZ_ENV | Default project / environment (name or ID). |
NIMBUZ_MCP_TOOLSETS | Tool groups to load: default (projects, apps, tools, logs, metrics), all, or a list such as default,billing. Groups: projects apps tools domains ai cron logs metrics billing. |
NIMBUZ_MCP_READ_ONLY | true never loads tools that change things. |
NIMBUZ_MCP_ALLOW_SECRETS | true adds get_app_secrets, get_tool_connection and rotate_ai_key, which return passwords or keys in plain text. Off by default; everything else masks secrets. |
NIMBUZ_ACCOUNT_ID | Account ID for billing tools. Default: the one saved by nimbuz login, else discovered from the costs API (needs a key with billing access). |
NIMBUZ_API_URL | API base URL (default https://api.nimbuz.tech). |
NIMBUZ_PROFILE / NIMBUZ_CONFIG_DIR | Which CLI profile / config directory to read. |
NIMBUZ_TIMEZONE | Time zone for log timestamps (default: your system's). |
NIMBUZ_MCP_MAX_CHARS | Maximum size of one tool result before it is truncated with a hint to narrow the query. |
NIMBUZ_DEBUG | true logs HTTP calls to stderr, with secrets redacted. |
Choosing the project and environment
Most tools take optional project and environment arguments (name or ID). When a call leaves them out, the server uses, in order:
NIMBUZ_PROJECT/NIMBUZ_ENV- the CLI's
nimbuz usecontext - the only one that exists
If that still doesn't decide it, the tool tells the model which names exist so it can ask you or pick one. Names match exactly, case-insensitively, or by a unique prefix.
Tools
67 tools in 9 groups, plus 3 prompts. The tool reference lists every tool with its inputs.
| Group | Loaded | Look | Change |
|---|---|---|---|
| (always) | yes | whoami, get_status | |
projects | default | projects, environments, quota usage | create, update, delete projects and environments |
apps | default | apps, live status, releases | create from Git or an archive, update, redeploy, variables and secrets, start/stop/restart, cancel build, delete |
tools | default | catalog, installed tools | install (PostgreSQL, MongoDB, n8n, …), update, resize, start/stop, delete |
logs | default | runtime and build logs, with since, from/to, grep | |
metrics | default | CPU, memory and storage use against limits, for apps, tools, environments and containers | |
domains | opt-in | public endpoints, custom domains and DNS status | expose, add/verify/remove custom domains, unexpose |
ai | opt-in | models, endpoints, usage | create endpoints, rotate keys, rate limits, revoke |
cron | opt-in | jobs and executions | create, enable/disable, delete |
billing | opt-in | invoices, month-to-date cost, forecast, cost explorer, credits, limits, pricing |
Turn on opt-in groups with NIMBUZ_MCP_TOOLSETS, for example default,billing or all.
Prompts are ready-made workflows that clients show as slash commands or menu items:
diagnose_app: finds out why an app is failing or slow.deploy_app: deploys from a Git repository and waits until it runs.cost_report: summarises spend and suggests savings.
Results are compact: metrics are summarised (current, average and maximum against the limit) instead of raw time series, logs return only the lines you ask for, and very large results are cut with a hint to narrow the query.
Making changes safely
- Read-only mode.
NIMBUZ_MCP_READ_ONLY=trueloads only the tools that look. Combine it with a read-only API key for belt and braces. - Client approval. Every tool carries MCP annotations (
readOnlyHint,destructiveHint), so clients can ask you before running anything that changes things. - Typed confirmation. Destructive tools (
delete_*,revoke_ai_endpoint,remove_custom_domain,unexpose_app) also needconfirmset to the exact name of what they remove, which the model has to get from you. - Merging updates. Updates merge with the current configuration. Variables, secrets and settings you don't mention are kept.
- Waiting for builds. Builds take minutes.
create_app,update_app,redeploy_app,set_app_variablesandcontrol_appacceptwaitSeconds(up to 600): they report progress and return the final status, or "still rolling out" instead of failing. - Key permissions. Whatever the tools allow, the API key's permissions in the portal have the final say.
Troubleshooting
Start by asking the model to run whoami: it shows which key (masked) and account the server uses, whether the key works, and which tool groups are loaded.
| Problem | What to do |
|---|---|
| "No Nimbuz API key." | Set NIMBUZ_API_KEY in the client's MCP config, or run nimbuz login. Restart the server after changing its config. |
INVALID_API_KEY | The key is wrong, expired or revoked, or belongs to another Nimbuz environment (for example a dev key against production). Create a new key, or set NIMBUZ_API_URL to match. |
| HTTP 403 / no permission | The key has no permission for that project, environment or action. An account admin can grant it in the portal (API keys → Permissions). |
API_KEY_ENDPOINT_NOT_ALLOWED | The key's endpoint allow-list doesn't include this call. Widen it in the portal. |
API_KEY_RATE_LIMITED | Each key allows a limited number of requests per minute. Wait a minute and try again. |
| "Several projects exist" / "has several environments" | Name the project or environment in your request, or set NIMBUZ_PROJECT / NIMBUZ_ENV. |
| Billing tools can't find the account | Set NIMBUZ_ACCOUNT_ID, or use a key with billing access. |
| A tool you expect is missing | Its group isn't loaded (NIMBUZ_MCP_TOOLSETS), read-only mode is on, or it is a secrets tool (NIMBUZ_MCP_ALLOW_SECRETS). |
| The server doesn't start | Check node --version is 18 or newer. The first npx run downloads the package, so it can take a few seconds. |
For more detail, set NIMBUZ_DEBUG=true: the server logs each HTTP call to stderr (secrets redacted), which most clients show in their MCP logs.
Development
npm install
npm test # unit and end-to-end tests against a mock API
npm run docs # regenerate docs/TOOLS.md after changing tools
npm run inspect # try the server in the MCP Inspector
See CONTRIBUTING.md for the code layout, how to add a tool and how releases work, and AGENTS.md for guidelines aimed at AI coding agents. Security issues: see SECURITY.md.
Related
- Nimbuz CLI (
@nimbuz-tech/cli): the same platform from your terminal.nimbuz loginsets up the key for both. - Changelog
License
MIT © Nimbuz
@nimbuz-tech/mcpnpm install @nimbuz-tech/mcp