Authentication
The MCP server authenticates using your IONOS CLOUD API token and, for IONOS CLOUD Object Storage tools, your Object Storage credentials.
API token
All tools require the IONOS_TOKEN. It authenticates requests to the Compute Engine, Managed Kubernetes, Cloud DNS, Billing, Certificate Manager, and Object Storage management APIs.
To generate an API token:
Log in to the DCD and go to Token Management
Log in to the DCD and navigate to Management > Token Management.
Generate and copy the token
Select Generate Token, set an expiry, and copy the token value.
Set an expiry that matches your use case: 24 hours for one-off queries, 7–30 days for persistent AI client setups, or longer for automated workflows. If the token expires during a session, tool calls will fail with authentication errors. Update the token in your configuration and restart the AI client. For more information, see FAQ.
Pass the token in your MCP client configuration:
{
"mcpServers": {
"ionoscloud": {
"command": "/path/to/ionoscloud-mcp",
"env": {
"IONOS_TOKEN": "your-api-token"
}
}
}
}IONOS CLOUD Object Storage credentials
Object Storage data-plane tools (listing objects, reading bucket configuration, and checking access keys) require Object Storage credentials in addition to IONOS_TOKEN.
To generate Object Storage credentials:
Log in to the DCD and go to Access Keys
Log in to the DCD and navigate to Object Storage > Access Keys.
Add the credentials to your MCP client configuration:
Warning: Never commit your API token or Object Storage credentials to version control. Use your operating system keychain or a secrets manager to store them securely.
Security best practices
Use a dedicated token for the MCP server rather than your primary account token.
Restrict the token to read-only permissions where your IONOS CLOUD account allows it.
If you use a sub-user account, ensure the token has read access to each product you intend to query. Tokens with restricted scope return empty results or errors for out-of-scope resources.
On macOS and Linux, restrict access to your configuration file after saving credentials:
Token scope by product area
Use Minimum token permissions to set minimum-privilege permissions when creating a dedicated MCP token. Read access is enough for the server's default configuration, in which every tool is read-only.
If you enable write tools with IONOS_MCP_TOOL_SCOPE, the token also needs write permissions for the products you intend to modify: Virtual Data Centers for Compute Engine, and Kubernetes clusters for Managed Kubernetes. Grant them only for the products you actually provision. For more information, see Write Operations.
Minimum token permissions
Compute Engine
Read access to Virtual Data Centers
All Compute Engine tools (50)
Managed Kubernetes
Read access to Kubernetes clusters
All Managed Kubernetes tools (8)
Read access to Object Storage (management API)
Bucket listing and bucket configuration tools
(data-plane)
Object Storage access key IONOS_S3_ACCESS_KEY and secret key IONOS_S3_SECRET_KEY
Object listing, object metadata, and versioning
Cloud DNS
Read access to DNS
All DNS tools (14)
Billing
Read access to Billing / Usage
All Billing tools (15, including get_billing_focus_spec which needs no IONOS privilege)
Certificate Manager
Read access to Certificate Manager
All Certificate Manager tools (6)
Activity Log
ACCESS_ACTIVITY_LOG privilege on the token
All Activity Log tools (2)
For the narrowest possible scope, create a sub-user with access only to the products you intend to query and generate the token under that sub-user.
Last updated
Was this helpful?