Manage Aiven services using MCP
The Aiven MCP server lets you create and manage services directly from AI assistants such as Cursor and Claude Code.
Prerequisites
- An Aiven account
- An organization with MCP access enabled
- An MCP-compatible client such as Cursor, Claude Code, Claude Desktop, or VS Code
MCP server URL
Use the following server URL when configuring your client:
https://aiven.io/mcp
Configure your MCP client
- Cursor
- Claude Code
- Claude Desktop
- VS Code
- Other clients
Alternatively, add it manually:
-
In your project root, create or edit
.cursor/mcp.json. -
Add the following configuration:
{
"mcpServers": {
"aiven": {
"type": "http",
"url": "https://aiven.io/mcp"
}
}
} -
Save the file.
-
Restart Cursor.
-
Open Settings > Tools & MCP.
-
Select aiven and click Connect.
-
Open a terminal.
-
Run the following command:
claude mcp add --transport http aiven https://aiven.io/mcp -
Run
/mcpin Claude Code to verify the server is registered. -
On first use, a browser window opens where you sign in to Aiven and select your organization.
For more information, see the Claude Code MCP documentation.
-
Open the Claude Desktop configuration file. If it does not exist, create it:
-
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json -
Windows:
%APPDATA%\Claude\claude_desktop_config.json
-
-
Add the following to the configuration file:
{
"mcpServers": {
"aiven": {
"type": "http",
"url": "https://aiven.io/mcp"
}
}
} -
Save the file and restart Claude Desktop.
For more information, see the Claude Desktop MCP documentation.
Requires Visual Studio Code 1.102 or later with the GitHub Copilot extension installed and enabled.
-
Open your workspace in Visual Studio Code.
-
In the workspace root, create a
.vscodedirectory if it does not exist. -
In the
.vscodedirectory, create or editmcp.json. -
Add the following configuration:
{
"servers": {
"aiven": {
"type": "http",
"url": "https://aiven.io/mcp"
}
}
} -
Save the file.
-
Reload Visual Studio Code.
-
Open the Command Palette and run MCP: List Servers.
-
Confirm that aiven appears in the list.
For more information, see the VS Code MCP documentation.
-
Open your MCP client configuration.
-
Add the Aiven MCP server using the following URL:
https://aiven.io/mcp
Most clients accept a configuration similar to:
{
"mcpServers": {
"aiven": {
"url": "https://aiven.io/mcp"
}
}
}
- Save the file and restart your client.
Some clients require specifying the transport type, for example "type": "http". Refer
to your client documentation if the configuration fails.
Verify the connection
- Cursor
- Claude Code
- Claude Desktop
- VS Code
- Other clients
-
Open Cursor Chat with Cmd+L on macOS or Ctrl+L on Windows/Linux.
-
Try a prompt such as:
List my Aiven projects.
-
If prompted to allow tool execution, click Allow.
-
To confirm the server is registered, go to Settings > Tools & MCP and check that aiven appears with a connected status.
-
Run
/mcpin Claude Code to verify the server is registered. -
Try a prompt such as:
List my Aiven projects.
-
If prompted to allow tool execution, confirm.
-
Open a new conversation.
-
Verify that the MCP tools icon appears in the input area.
-
Try a prompt such as:
List my Aiven projects.
-
If prompted to allow tool execution, click Allow.
-
Open Copilot Chat in Visual Studio Code.
-
Open the Command Palette and run MCP: List Servers.
-
Confirm that aiven appears in the list.
-
Try a prompt such as:
List my Aiven projects.
-
If prompted to allow tool execution, click Allow.
-
Open your AI assistant.
-
Try a prompt such as:
List my Aiven projects.
-
If prompted to allow tool execution, confirm.
-
Verify that the response includes information about your Aiven projects.
Authentication
The Aiven MCP server uses OAuth 2.0 with PKCE for authentication. When you first use the server, it opens a browser window where you sign in to Aiven and select your organization. The server manages token refresh automatically.
Supported tools
Service management
Create, update, and delete Aiven services across all supported service types. Browse available plans and pricing, view service metrics and logs, and manage service configurations and cloud regions.
PostgreSQL®
Create and manage PostgreSQL databases, execute read and write SQL queries, and manage PgBouncer connection pools. Get AI-powered query optimization recommendations, view query performance statistics, and list available extensions.
Apache Kafka®
Create and manage Kafka topics, produce and consume messages, and configure Kafka Connect connectors. Browse Schema Registry subjects and manage connector lifecycle operations including pause, resume, and restart.
Read-only mode
To restrict the server to read-only operations, set the AIVEN_READ_ONLY
environment variable to true in your MCP client configuration:
{
"mcpServers": {
"aiven": {
"type": "http",
"url": "https://aiven.io/mcp",
"env": {
"AIVEN_READ_ONLY": "true"
}
}
}
}
In read-only mode, the server only allows operations that read data, such as listing services, viewing metrics, and running SELECT queries. Write operations like creating services or modifying data are blocked.