Skip to content

MCP Server for AI Agents

DanubeData runs an MCP server, so an AI agent can operate your infrastructure through typed tools instead of learning the REST API first. Nearly every operation of the public API is a tool: vps_create, database_list, storage_buckets_create and a couple of hundred more (the exceptions are file uploads and partner sub-accounts). The tools are generated from the same specification as the API reference, so a new API endpoint becomes a tool as soon as it ships.

Each tool call is a call to the REST API, made with your API token. An agent connected over MCP can do exactly what that token can do, and nothing more. The server is open to every account, and it costs nothing on its own: what an agent creates is billed like anything you create yourself.

  • Endpoint: https://danubedata.ro/mcp
  • Transport: Streamable HTTP
  • Authentication: an API token, sent as Authorization: Bearer YOUR_TOKEN

Set It Up from the Console

Open Security, API tokens. The tab has an AI agents card. Connect an agent walks you through the setup: it creates a token for the agent, lets you choose the tools, and writes the configuration for Claude Code, Cursor, VS Code, Codex or OpenCode, ready to copy. The rest of this page is the same setup by hand.

Before You Start

Create an API token for the agent on Security, API tokens (see Authentication):

  • Give the agent a token of its own, so you can see what it did and revoke it without touching anything else.
  • Choose This project only unless the agent needs several projects.
  • Tick only the permissions it needs. A token with vps:read but not vps:write can look at servers and cannot change them. Leave out the password permissions (vps:credentials, database:credentials and the like) unless the agent has to read passwords.
  • Everything a tool returns reaches the model your client uses. A Rapids container's environment variables come back with their values to any token with serverless:read or serverless:write, so keep secrets the agent should not see out of them, or leave both permissions out.

Keep the token in an environment variable, not in a file you commit. The Cursor, OpenCode, Codex and .mcp.json examples below read it from DANUBEDATA_TOKEN; VS Code asks for the token instead, and the claude mcp add command takes it in place of YOUR_TOKEN. Set the variable for your user account, then restart the client:

  • macOS and Linux: add export DANUBEDATA_TOKEN="your-token" to your shell profile (~/.zshrc or ~/.bashrc).
  • Windows: run setx DANUBEDATA_TOKEN "your-token" in a terminal.

Connect Your Client

Claude Code

Bash
claude mcp add --transport http danubedata https://danubedata.ro/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"

Claude Code keeps the header with the server. Add --scope user to use the server in every project, then type /mcp in Claude Code: danubedata should show Connected.

Or, in a project's .mcp.json, where ${DANUBEDATA_TOKEN} is read from the environment when Claude Code starts:

JSON
{
  "mcpServers": {
    "danubedata": {
      "type": "http",
      "url": "https://danubedata.ro/mcp",
      "headers": { "Authorization": "Bearer ${DANUBEDATA_TOKEN}" }
    }
  }
}

Cursor

In ~/.cursor/mcp.json, or .cursor/mcp.json in a project:

JSON
{
  "mcpServers": {
    "danubedata": {
      "url": "https://danubedata.ro/mcp",
      "headers": { "Authorization": "Bearer ${env:DANUBEDATA_TOKEN}" }
    }
  }
}

The console's Connect an agent also has an Add to Cursor link, which adds the same entry after Cursor asks you to confirm.

VS Code

In .vscode/mcp.json. VS Code asks for the token the first time the server starts, and keeps it:

JSON
{
  "inputs": [
    { "type": "promptString", "id": "danubedata-token", "description": "DanubeData API token", "password": true }
  ],
  "servers": {
    "danubedata": {
      "type": "http",
      "url": "https://danubedata.ro/mcp?toolsets=vps,database",
      "headers": { "Authorization": "Bearer ${input:danubedata-token}" }
    }
  }
}

VS Code sends at most 128 tools with a request, so choose toolsets there.

OpenCode

In opencode.json:

JSON
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "danubedata": {
      "type": "remote",
      "url": "https://danubedata.ro/mcp",
      "headers": { "Authorization": "Bearer {env:DANUBEDATA_TOKEN}" }
    }
  }
}

Codex CLI

In ~/.codex/config.toml:

TOML
[mcp_servers.danubedata]
url = "https://danubedata.ro/mcp"
bearer_token_env_var = "DANUBEDATA_TOKEN"

Other Clients

Any MCP client that speaks Streamable HTTP and lets you set a request header works: point it at https://danubedata.ro/mcp and send Authorization: Bearer YOUR_TOKEN. A client that runs in a web page sends its site's Origin header, which the server refuses unless the site is DanubeData's own.

Clients that connect only through OAuth, such as custom connectors in claude.ai and ChatGPT, cannot connect yet: the server takes an API token.

Choose the Tools

With no options, the server lists every tool your account can use. That is a lot of text for a model to carry: some clients (Claude Code among them) load tools only when they are needed, others send all of them with every request. Add toolsets to the URL to list only some groups:

Text
https://danubedata.ro/mcp?toolsets=vps,database,snapshots

ToolsetCovers
vpsVPS instances, block volumes, images and plans
databaseDatabases, their replicas and settings, parameter groups
cacheRedis, Valkey and Dragonfly instances
queueRabbitMQ instances
storageBuckets, bucket policies and access keys
serverlessRapids containers, runs, schedules and volumes
static_sitesStatic sites, builds and domains
appsManaged apps
kubernetesManaged Kubernetes clusters
registryContainer registry repositories and tags
snapshotsVPS, database and cache snapshots, recovery options
firewallsFirewalls and their rules
ssh_keysSSH keys
monitoringUptime checks, metric and resource alerts, notifications, webhooks
accountYour projects, account limits, approvals, operations, support tickets, search

toolsets=all is the same as no option. A name the server does not know is refused with the list of valid ones. Products that are not open to your account do not appear, whatever you select.

The account toolset includes projects_list, projects_create, projects_get, projects_update, projects_invitations_create, projects_members_list, projects_members_delete and projects_delete. They use the opt-in project:read, project:create, project:write, project:invite, project:members:read, project:members:delete and project:delete token permissions. Creating a project requires an account-wide token and does not change the console's current project. Each create call makes a new project ID, even when the name already exists; it is not get-or-create and has no idempotency key. A token locked to one project can list or get only that project and cannot create another.

Only a project owner can rename, invite, remove members or delete the project. Invitation permission is separate from rename permission, and invitations go through the existing email acceptance flow. projects_members_list returns accepted users only, with the owner first and roles owner, admin or editor. The owner cannot remove themselves. projects_members_delete responds 204; it revokes the removed member's tokens locked to that project, while their account-wide tokens and tokens locked to other projects remain active.

Project deletion requires a verified email and is blocked by personal projects, remaining resources or retained data (including VPS snapshots and customer-managed secrets), and billing blockers. Exported VPS backups remain protected after their source VPS is removed; delete the snapshots explicitly and wait for their removal to finish. A successful projects_delete responds 204 while infrastructure cleanup runs in the background; it revokes project-scoped tokens and leaves account-wide tokens active. Project mutations require a verified email and share a limit of 10 requests per minute per user across their tokens and projects.

Read-Only Mode

Add read_only=1 to list only the tools that read:

Text
https://danubedata.ro/mcp?toolsets=vps,database&read_only=1

The server enforces it: a tool that changes something is not listed and cannot be called. Read-only still includes reading credentials if the token holds a password permission, so pair it with a token without those permissions when that matters.

Choose a Project

A call acts on the project the token is locked to. An account-wide token acts on your current project; to pick another one, send its ID in an X-Team-Id header from the client configuration, as with the REST API. The user_teams tool lists your projects, says which one the call acts on (current_team_id) and which one the token is locked to (token_team_id, null for an account-wide token).

How Calls Work

  • Results. A result starts with the HTTP status and the API path, such as 201 Created · POST /api/v1/ssh-keys, followed by the API's JSON answer unchanged.
  • Errors. A refused call comes back as an error result with the status, one line on what to do next, and the API's answer. A 422 names the fields to fix; a 403 means the token lacks the permission or the project does not allow it; a 404 names the tools that list the valid IDs.
  • IDs. Path arguments are IDs, named in snake_case like every other argument (ssh_key, vps_instance). Most name the tool that lists them in their description, such as ssh_keys_list.
  • Lists. Most list tools answer one page at a time. per_page sets its size, up to the maximum in the tool's schema (200 on most lists); walk the pages with page until last_page, or with cursor until next_cursor is null where a tool takes a cursor. To count, ask for per_page: 1 and read total.
  • Background work. Many changes answer 202 Accepted and finish in the background. Agents should poll the resource (its *_get or *_status tool) rather than repeat the change: where the answer has status_details, the work is done when status_details.operation.terminal is true, whatever the status string says. operations_get follows only Rapids deployments: it does not know the operation_id that a database or snapshot change returns.
  • Retries. Tools whose API route accepts an Idempotency-Key take an idempotency_key argument: send the same key when retrying a create, and the first answer is replayed instead of a second resource being made.
  • Rate limits. Each tool call counts as one request against your project's API rate limit. The MCP endpoint itself accepts 300 requests a minute per token.
  • Long answers are cut after about 80 KB, with a note; use the tool's paging or filter arguments for less.
  • Not available over MCP: uploading a ZIP to deploy a container or a static site build (use the CLI), and managing partner sub-accounts (use the REST API).

Troubleshooting

SymptomCause
404 from https://danubedata.ro/mcpThe address is mistyped, or the server is switched off for maintenance. Check status.danubedata.ro, or ask support.
401The token is missing, mistyped, expired or revoked, or the header is not Authorization: Bearer YOUR_TOKEN.
403 with "Requests from this origin may not use the MCP server"The client runs in a web page and sent its site's Origin header. Connect from a client that runs outside the browser.
A tool call fails with 403The token lacks the permission for that call. Edit the token on Security, API tokens, or create one with it.
A tool call fails with 402The project needs a payment method before it can do this. Add one under Billing.
429, or a tool call fails with 429The token sent more than 300 requests a minute to the endpoint, or the calls used up your project's API rate limit. Wait, then retry.
400 with "Unknown toolset" or "Unknown parameter"A name in toolsets is misspelt, or the URL has a parameter other than toolsets and read_only (readonly=1, say). The error lists what is valid.
A product's tools are missingThe product is not open to your account, or its toolset is not in the URL.
The client warns about too many toolsNarrow the list with toolsets.