Nimbuz MCP Server
Official# Nimbuz MCP Server
[](https://www.npmjs.com/package/@nimbuz-tech/mcp)
[](https://github.com/nimbuz-tech/nimbuz-mcp/actions/workflows/ci.yml)
[](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.nimbuz-tech/nimbuz-mcp)
[](LICENSE)
**Let Claude, Cursor, VS Code and other AI agents work with [Nimbuz Cloud](https://nimbuz.tech)**: projects, environments, apps, managed tools, domains, AI endpoints, cron jobs, logs, metrics and billing, through the [Model Context Protocol](https://modelcontextprotocol.io).
```bash
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](#how-it-works)
- [Get an API key](#get-an-api-key)
- [Set up your client](#set-up-your-client): [Claude Code](#claude-code) · [Claude Desktop](#claude-desktop) · [Cursor](#cursor) · [VS Code](#vs-code) · [Windsurf and others](#windsurf-and-other-clients)
- [Configuration](#configuration)
- [Tools](#tools) · [full reference](docs/TOOLS.md)
- [Making changes safely](#making-changes-safely)
- [Troubleshooting](#troubleshooting)
- [Development](#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
1. In the Nimbuz portal, open *Account Information → API Keys* and create a key. It looks like `nmz_<12 hex>_<secret>`.
2. Choose what it may do: permissions per project, environment and action, an optional endpoint allow-list and an optional expiry.
3. Give it to the server, in **one** of two ways:
- **`NIMBUZ_API_KEY`** in the server's environment, as in the setup examples below. Simplest; the client stores the key in its MCP config.
- **`nimbuz login`** with the [Nimbuz CLI](https://www.npmjs.com/package/@nimbuz-tech/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 out `NIMBUZ_API_KEY` and the server reads it from there, on every call, so a new login needs no restart.
`NIMBUZ_API_KEY` wins 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](https://nodejs.org) 18 or newer. Replace `nmz_…` with your key, or leave the key out if you used `nimbuz login`.
### Claude Code
```bash
claude mcp add nimbuz -e NIMBUZ_API_KEY=nmz_… -- npx -y @nimbuz-tech/mcp
```
Variations:
```bash
# 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:
```json
{
"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:
```json
{
"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](https://registry.modelcontextprotocol.io) 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:
1. `NIMBUZ_PROJECT` / `NIMBUZ_ENV`
2. the CLI's `nimbuz use` context
3. 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](docs/TOOLS.md) 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=true` loads 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 need `confirm` set 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_variables` and `control_app` accept `waitSeconds` (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
```bash
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](CONTRIBUTING.md) for the code layout, how to add a tool and how releases work, and [AGENTS.md](AGENTS.md) for guidelines aimed at AI coding agents. Security issues: see [SECURITY.md](SECURITY.md).
## Related
- [Nimbuz CLI](https://github.com/nimbuz-tech/nimbuz-cli) (`@nimbuz-tech/cli`): the same platform from your terminal. `nimbuz login` sets up the key for both.
- [Changelog](CHANGELOG.md)
## License
MIT © Nimbuz
TDQS
Scored across 38 tools
Most tools target a distinct resource+action, and descriptions clarify boundaries (e.g. get_environment_usage vs get_environment vs get_environment_metrics). The main friction is a dense cluster of status/metrics readers (get_status, get_app_status, get_environment_metrics, get_container_metrics) and the overloaded word 'tool', which means a managed database/queue rather than an MCP tool, creating some initial confusion with list_tool_catalog vs list_tools vs get_tool.
Almost everything follows a predictable snake_case verb_noun pattern (list_*, get_*, create_*, update_*, delete_*, control_*, cancel_*, set_*), which reads consistently. The only deviations are the conventional but pattern-breaking whoami and the noun-less get_status, plus parallel pairs like control_tool/control_app that are consistent in form but easy to misread.
38 tools is well past the 25-tool threshold and the surface is fragmented across four metrics tools, several status readers and a full CRUD set for both apps and managed tools. The platform is genuinely broad, but the count exceeds what an agent can select among reliably and invites consolidation (e.g. one metrics tool with a target parameter).
Core lifecycle coverage is strong: projects, environments, apps (create/update/control/redeploy/variables/delete), managed tools, builds and logs are all present. However several tools are referenced but absent (get_pricing_catalog from resize_tool, get_account_limits from create_project), cron job runs appear in get_logs with no cron job tools, and domains/volumes referenced by delete_app have no management surface — real dead ends for an agent.