Skip to main content
Glama

CI License: AGPL-3.0

contabo-mcp

An MCP (Model Context Protocol) server that exposes the entire Contabo API — all 157 operations, generated from the official OpenAPI spec — to OpenAI-compatible agents (OpenAI Agents SDK, Codex CLI, Claude Desktop, Cursor, …).

  • 14 domain tools (instances, snapshots, images, objectStorage, privateNetworks, firewalls, dns, domains, vips, secrets, tags, users, audits, troubleshooting)

  • 1 documentation tool (contabo_reference) with full parameter docs per operation

  • Handles Contabo OAuth2 (password grant), token caching, and the required x-request-id header — the agent never deals with tokens

  • Read-only by default. Start with CONTABO_ENABLE_WRITES=1 to allow POST/PATCH/PUT/DELETE operations.

Getting credentials

Create the four credentials in the Contabo Customer Control Panel: ClientId, ClientSecret, API User (email), API Password.

Related MCP server: Hetzner Cloud MCP Server

Configuration

Env var

Required

Meaning

CONTABO_CLIENT_ID

yes

OAuth2 client id

CONTABO_CLIENT_SECRET

yes

OAuth2 client secret

CONTABO_API_USER

yes

API user email

CONTABO_API_PASSWORD

yes

API password

CONTABO_ENABLE_WRITES

no

1 enables non-GET operations (default read-only)

CONTABO_API_BASE_URL

no

default https://api.contabo.com

CONTABO_AUTH_URL

no

default Contabo token endpoint

CONTABO_TIMEOUT_MS

no

per-request timeout (default 30000)

Usage

The server runs straight from this repository — npx fetches it, builds it, and starts it:

npx -y github:sanchayan721/contabo-mcp

Prefer running from a clone? git clone + bun install && bun run build, then point your client at node dist/index.js instead.

OpenAI Agents SDK (Python)

from agents import Agent, MCPServerStdio

mcp = MCPServerStdio(
    command="npx",
    args=["-y", "github:sanchayan721/contabo-mcp"],
    env={
        "CONTABO_CLIENT_ID": "...",
        "CONTABO_CLIENT_SECRET": "...",
        "CONTABO_API_USER": "...",
        "CONTABO_API_PASSWORD": "...",
        # "CONTABO_ENABLE_WRITES": "1",  # uncomment to allow writes
    },
)
agent = Agent(name="infra", mcp_servers=[mcp])

Claude Desktop / Codex CLI / Cursor (stdio config)

{
  "mcpServers": {
    "contabo": {
      "command": "npx",
      "args": ["-y", "github:sanchayan721/contabo-mcp"],
      "env": {
        "CONTABO_CLIENT_ID": "...",
        "CONTABO_CLIENT_SECRET": "...",
        "CONTABO_API_USER": "...",
        "CONTABO_API_PASSWORD": "..."
      }
    }
  }
}

Development

Requires Bun (see package.json engines). Nub users get a faster local loop (nub run test, nub src/codegen/generate.ts) — see CONTRIBUTING.md.

Maintainer operational standards are documented in docs/MAINTAINERS.md.

bun install
bun run generate        # spec/contabo-openapi.json → src/generated/registry.ts (157 ops)
bun test                # Bun test suite incl. golden codegen + stdio E2E tests
bun run test:coverage   # Bun coverage (text + lcov)
bun run coverage:check  # Enforce line coverage >= 95%
bun run build           # tsc → dist/ (regenerates the registry first)

The API spec is committed at spec/contabo-openapi.json. When Contabo updates their API, replace that file and rerun bun run generate — the registry and all tool schemas stay in sync (codegen fails loudly if anything is dropped, renamed or collides).

Safety

  • Read-only by default: write operations are rejected before any HTTP call with a message naming CONTABO_ENABLE_WRITES.

  • Destructive operations (cancel/delete/revoke/reset/shutdown/rollback) are flagged [DESTRUCTIVE] in tool descriptions and the reference tool.

  • Tokens are never logged; all logging goes to stderr.

Available Tools

15 tools
contabo_auditsA
Read-only

Contabo audit logs for every resource type. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • tags: List history about your assignments (audit)

  • tagAssignments: List history about your assignments (audit)

  • dnsZones: List history about your DNS Zones (audit)

  • dnsRecords: List history about your DNS Records (audit)

  • vips: List history about your VIPs (audit)

  • secrets: List history about your secrets (audit)

  • privateNetworks: List history about your Private Networks (audit)

  • users: List history about your users (audit)

  • roles: List history about your roles (audit)

  • firewalls: List history about your Firewalls (audit)

  • instanceActions: List history about your actions (audit) triggered via the API

  • instances: List history about your instances (audit)

  • images: List history about your custom images (audit)

  • snapshots: List history about your snapshots (audit) triggered via the API

  • handles: List history about your handles (audit)

  • domains: List history about your Domains (audit)

  • objectStorages: List history about your object storages (audit)

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_dnsA
Destructive

Contabo DNS zones, records and PTR records. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • getPtrRecord: Retrieve a PTR Record by ip address

  • updatePtrRecord: Edit a PTR Record by ip address

  • deletePtrRecord: Delete a PTR Record using ip address [DESTRUCTIVE]

  • createPtrRecord: Create a new PTR Record using ip address

  • listPtrRecords: List PTR records

  • listZones: List DNS zones

  • createZone: Create DNS zone

  • getZone: Retrieve a DNS Zone by zone name

  • deleteZone: Delete a DNS zone. [DESTRUCTIVE]

  • listZoneRecords: List a DNS Zone's records

  • createZoneRecord: Create DNS zone record

  • updateZoneRecord: Update DNS zone record

  • deleteZoneRecord: Delete a DNS zone record [DESTRUCTIVE]

  • bulkDeleteZoneRecords: Bulk delete DNS zone records [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_domainsA
Destructive

Contabo domains and contact handles. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • listHandles: List all handles

  • createHandle: Create specific handle

  • getHandle: Get specific handle

  • deleteHandle: Remove specific handle [DESTRUCTIVE]

  • updateHandle: Update specific handle

  • setDefaultHandle: Set default handle

  • checkAvailability: Check domain availablility

  • list: List all domains

  • order: Create or transfer a domain

  • listPendingActions: List pending domain actions

  • suggest: Suggest domains

  • get: List specific domain

  • update: Update a specific domain

  • cancel: Cancel a specific domain [DESTRUCTIVE]

  • getAuthCode: Get auth code for a domain

  • revokeCancel: Revoke cancellation for a specific domain [DESTRUCTIVE]

  • confirmTransferOut: Confirm transfer out for a domain

  • revokeTransferOut: Revoke transfer out for a domain [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_firewallsA
Destructive

Contabo firewalls and their rules. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • create: Create a new firewall definition

  • list: List all firewalls

  • delete: Delete existing firewall by id [DESTRUCTIVE]

  • get: Get specific firewall by its id

  • update: Update a firewall by id

  • updateRules: Update specific firewall rules

  • assignInstance: Add instance to a firewall

  • unassignInstance: Remove instance from a firewall [DESTRUCTIVE]

  • listPresetRules: Get all preset rules

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_imagesA
Destructive

Contabo standard and custom images. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • list: List available standard and custom images

  • create: Provide a custom image

  • get: Get details about a specific image by its id

  • update: Update custom image name by its id

  • delete: Delete an uploaded custom image by its id [DESTRUCTIVE]

  • stats: List statistics regarding the customer's custom images

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_instancesA
Destructive

Contabo compute instances (VPS/VDS). Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • start: Start a compute instance / resource identified by its id

  • restart: Restart a compute instance / resource identified by its id.

  • stop: Stop compute instance / resource by its id

  • shutdown: Shutdown compute instance / resource by its id [DESTRUCTIVE]

  • rescue: Rescue a compute instance / resource identified by its id

  • resetPassword: Reset password for a compute instance / resource referenced by an id [DESTRUCTIVE]

  • list: List instances

  • create: Create a new instance

  • checkRegionChange: Check if the instance can be moved to another host

  • requestRegionChange: Request instance region change

  • get: Get specific instance by id

  • update: Update specific instance

  • reinstall: Reinstall specific instance

  • listProducts: Get the available products of a specific instance

  • cancel: Cancel specific instance by id [DESTRUCTIVE]

  • upgrade: Upgrading instance capabilities

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_objectStorageA
Destructive

Contabo S3-compatible object storages and data centers. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • list: List all your object storages

  • create: Create a new object storage

  • listDataCenters: List data centers

  • get: Get specific object storage by its id

  • update: Modifies the display name of object storage

  • upgrade: Upgrade object storage size resp. update autoscaling settings.

  • stats: List usage statistics about the specified object storage

  • cancel: Cancels the specified object storage at the next possible date [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_privateNetworksA
Destructive

Contabo private networks (VPC). Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • list: List Private Networks

  • create: Create a new Private Network

  • update: Update a Private Network by id

  • get: Get specific Private Network by id

  • delete: Delete existing Private Network by id [DESTRUCTIVE]

  • assignInstance: Add instance to a Private Network

  • unassignInstance: Remove instance from a Private Network [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_referenceA
Read-only

Documentation for every Contabo MCP operation. Pass a domain to list its operations; pass domain + operation to get full parameter documentation (types, required fields, enums, defaults, descriptions and the exact input JSON Schema).

Inputs: domain (required), operation.

contabo_secretsA
Destructive

Contabo secrets (SSH keys, passwords). Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • list: List secrets

  • create: Create a new secret

  • get: Get specific secret by id

  • update: Update specific secret by id

  • delete: Delete existing secret by id [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_snapshotsA
Destructive

Contabo instance snapshots. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • list: List snapshots

  • create: Create a new instance snapshot

  • get: Retrieve a specific snapshot by id

  • update: Update specific snapshot by id

  • delete: Delete existing snapshot by id [DESTRUCTIVE]

  • rollback: Revert the instance to a particular snapshot based on its identifier [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_tagsA
Destructive

Contabo tags and tag assignments. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • list: List tags

  • create: Create a new tag

  • get: Get specific tag by id

  • update: Update specific tag by id

  • delete: Delete existing tag by id [DESTRUCTIVE]

  • listAssignments: List tag assignments

  • getAssignment: Get specific assignment for the tag

  • createAssignment: Create a new assignment for the tag

  • deleteAssignment: Delete existing tag assignment [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_troubleshootingA
Destructive

Contabo troubleshooting checks, check collections and remedies. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • listChecks: List check

  • startCheck: Start check

  • getCheck: Get check

  • cancelCheck: Cancel check [DESTRUCTIVE]

  • listCheckCollections: List check collections

  • startCheckCollection: Start check collection

  • getCheckCollection: Get check collection

  • cancelCheckCollection: Cancel check collection [DESTRUCTIVE]

  • listCheckCollectionTemplates: List check collection templates

  • getCheckCollectionTemplate: Get check

  • listRemedies: List remedy

  • startRemedy: Start remedy

  • getRemedy: Get remedy

  • cancelRemedy: Cancel remedy [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_usersA
Destructive

Contabo users, roles, accounts and object-storage credentials. Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • list: List users

  • create: Create a new user

  • get: Get specific user by id

  • update: Update specific user by id

  • delete: Delete existing user by id [DESTRUCTIVE]

  • resetPassword: Send reset password email [DESTRUCTIVE]

  • resendEmailVerification: Resend email verification

  • generateSsoToken: Generate one time SSO token

  • getClient: Get client

  • generateClientSecret: Generate new client secret [DESTRUCTIVE]

  • isPasswordSet: Get user is password set status

  • requestEmailChange: Request email change

  • switchAccount: Switch user account

  • makeDefault: Make user account default

  • listAccounts: List of your accounts

  • listRoles: List roles

  • createRole: Create a new role

  • getRole: Get specific role by id

  • updateRole: Update specific role by id

  • deleteRole: Delete existing role by id [DESTRUCTIVE]

  • listApiPermissions: List of API permissions

  • listObjectStorageCredentials: Get list of S3 compatible object storage credentials for user.

  • getObjectStorageCredentials: Get S3 compatible object storage credentials.

  • regenerateObjectStorageCredentials: Regenerates secret key of specified user for the S3 compatible object storages. [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

contabo_vipsA
Destructive

Contabo virtual IPs (VIP). Choose exactly one 'operation'; every operation has its own parameter set (validated per operation).

This server runs READ-ONLY: write operations are rejected until it is started with CONTABO_ENABLE_WRITES=1.

Operations:

  • list: List VIPs

  • get: Get specific VIP by ip

  • assign: Assign a VIP to an VPS/VDS/Bare Metal

  • unassign: Unassign a VIP to a VPS/VDS/Bare Metal [DESTRUCTIVE]

Use the contabo_reference tool for full parameter documentation of any operation.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 15 tools

    Disambiguation4/5

    Each tool maps to a clearly distinct resource domain (firewalls, instances, snapshots, DNS, domains, etc.), so intent is easy to select. Minor overlap exists where the audits tool exposes history for resources that also have their own dedicated tools, and cross-cutting 'assignInstance'/'assign' verbs appear across several tools, but descriptions disambiguate well.

    Naming Consistency4/5

    All tools share the consistent 'contabo_' prefix and operations are uniformly camelCase (create, list, get, update, delete, resetPassword). The only deviation is casing of the domain suffix, mixing lowercase (firewalls, dns) with camelCase (objectStorage, privateNetworks), plus a few operation names that mix resource-qualified forms (listHandles, getZone) with bare verbs (list, get).

    Tool Count4/5

    15 tools sits at the top of the comfortable range but is well-scoped: each corresponds to a real resource family. The pattern of one tool per domain with an 'operation' selector keeps the visible surface manageable even though underlying operation counts (users, domains, audits) are high.

    Completeness4/5

    Coverage is broad, spanning firewalls, instances, snapshots, images, object storage, VPC, DNS, domains, VIPs, secrets, tags, users, audits, and troubleshooting, with a reference tool for parameter docs. Minor gaps: bare metal is only referenced via VIP assignment, and object-storage buckets/objects themselves are not exposed, but core lifecycle CRUD is present throughout.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers