Aiven MCP
Aiven offers two Model Context Protocol (MCP) servers for use with AI assistants:
- Aiven MCP server: Create and manage Aiven services directly from AI assistants such as Cursor and Claude Code. Use this to create services like PostgreSQL® and Apache Kafka®, deploy apps, run queries, and manage your resources.
- Documentation MCP server: Access Aiven documentation from MCP-compatible clients. Use this to get answers about Aiven features and troubleshooting from within your AI assistant.
Aiven MCP server
Use the Aiven MCP server to create and manage Aiven services from AI assistants, such as Cursor and Claude Code. You can create, update, and delete Aiven services across all supported service types. It also supports browsing available plans and pricing, viewing service metrics and logs, and managing service configurations and cloud regions. Supported services and features include:
- PostgreSQL®: Create and manage databases, execute SQL queries, manage PgBouncer connection pools, get AI-powered query optimization recommendations, view query performance statistics, and list available extensions.
- Apache Kafka®: Create and manage topics, produce and consume messages, configure Kafka Connect connectors, browse Schema Registry subjects, and manage connector lifecycle operations including pause, resume, and restart.
To restrict the server to non-destructive operations, you can enable read-only mode.
Authentication
The Aiven MCP server uses OAuth 2.0 with Proof Key for Code Exchange (PKCE) for authentication. The first time you use the server, your browser opens so you can sign in to Aiven and select your organization. The server refreshes tokens automatically.
Prerequisites
- An Aiven account
- An MCP-compatible client, such as Cursor, Claude Code, Claude Desktop, or Visual Studio Code (VS Code)
Configure your MCP client
- Cursor
- Claude Code
- Claude Desktop
- VS Code
- Other clients
To add the server manually:
-
In your project root, create or edit the
.cursor/mcp.jsonfile. -
Add the following configuration:
{
"mcpServers": {
"aiven": {
"type": "http",
"url": "https://mcp.aiven.live/mcp"
}
}
} -
Save the file.
-
Restart Cursor.
-
Open Settings > Tools & MCP.
-
Select aiven and click Connect.
For more information, see the Cursor MCP documentation.
-
Open a terminal.
-
Run the following command:
claude mcp add --transport http aiven https://mcp.aiven.live/mcp -
To verify the server is registered, in Claude Code run
/mcp. The first time you use the server, your browser opens. -
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 configuration to the file:
{
"mcpServers": {
"aiven": {
"type": "http",
"url": "https://mcp.aiven.live/mcp"
}
}
} -
Save the file and restart Claude Desktop.
For more information, see the Claude Desktop MCP documentation.
Requires VS Code 1.102 or later with the GitHub Copilot extension installed and enabled.
-
Open your workspace in VS Code.
-
In the workspace root, create a
.vscodedirectory. -
In the
.vscodedirectory, create or edit themcp.jsonfile. -
Add the following configuration:
{
"servers": {
"aiven": {
"type": "http",
"url": "https://mcp.aiven.live/mcp"
}
}
} -
Save the file.
-
Reload VS 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 URL
Most clients use a configuration similar to:https://mcp.aiven.live/mcp{
"mcpServers": {
"aiven": {
"url": "https://mcp.aiven.live/mcp"
}
}
} -
Save the file and restart your client.
Some clients require a transport type, such as "type": "http". If the configuration
fails, see your client documentation.
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 your client prompts you to allow tool execution, approve the request.
-
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 VS 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 your client prompts you to allow tool execution, approve the request.
Security and responsibility
MCP tools can perform destructive operations on your Aiven services, including creating, modifying, and deleting services, databases, topics, and data. AI agents can run operations from natural language prompts that are easy to misinterpret. Using the Aiven MCP server can result in damage to or loss of data. Whether to enable MCP access is your organization's decision. Evaluate the risks before you grant AI agents access to your resources.
Under the shared responsibility model, security and compliance for MCP usage are shared between Aiven and your organization. Aiven secures the platform and API. You are responsible for the following:
- Deciding whether to enable MCP in your organization and evaluating the associated risks.
- Controlling access by scoping API tokens to the minimum permissions needed (principle of least privilege) and rotating them regularly.
- Reviewing AI agent actions before they run, especially for write or delete operations on production resources.
- Configuring MCP servers securely, including choosing read-only mode where appropriate to restrict the server to non-destructive operations.
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://mcp.aiven.live/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. The server blocks write operations, such as creating services or modifying data.
Documentation MCP server
The Aiven documentation MCP server lets you access Aiven documentation from MCP-compatible clients. The server is hosted by Kapa and retrieves content from the latest published documentation.
Prerequisites
- An MCP-compatible client
- A Google account for authentication (required by some clients)
MCP server URL
Use the following server URL when configuring your client:
https://aiven-docs.mcp.kapa.ai
Configure your MCP client
- Cursor
- Claude Code
- Claude Desktop
- VS Code
- ChatGPT (Web)
- Other clients
-
In your project root, create or edit the
.cursor/mcp.jsonfile. -
Add the following configuration:
{
"mcpServers": {
"aiven-docs": {
"type": "http",
"url": "https://aiven-docs.mcp.kapa.ai"
}
}
} -
Save the file.
-
Restart Cursor.
-
Open Settings > Tools & MCP.
-
Select aiven-docs and click Connect.
-
Sign in with your Google account when prompted.
For more information, see the Cursor MCP documentation.
-
Open a terminal.
-
Run the following command:
claude mcp add --transport http aiven-docs https://aiven-docs.mcp.kapa.ai -
Sign in with your Google account when prompted.
-
Run
/mcpin Claude Code to verify the server is registered.
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-docs": {
"type": "http",
"url": "https://aiven-docs.mcp.kapa.ai"
}
}
} -
Save the file.
-
Restart Claude Desktop.
-
Sign in with your Google account when prompted.
For more information, see the Claude Desktop MCP documentation.
Requires VS Code 1.102 or later with the GitHub Copilot extension installed and enabled.
-
Open your workspace in VS Code.
-
In the workspace root, create a
.vscodedirectory. -
In the
.vscodedirectory, create or edit themcp.jsonfile. -
Add the following configuration:
{
"servers": {
"aiven-docs": {
"type": "http",
"url": "https://aiven-docs.mcp.kapa.ai"
}
}
} -
Save the file.
-
Reload VS Code.
-
Open the Command Palette and run MCP: List Servers.
-
Confirm that aiven-docs appears in the list.
-
Sign in with your Google account when prompted.
For more information, see the VS Code MCP documentation.
ChatGPT UI labels and navigation may change. Refer to the OpenAI documentation if the steps do not match your interface.
- Open ChatGPT in a web browser.
- Click Settings.
- Select Apps, then select Advanced settings.
- Click the Developer mode toggle.
- Select Apps > Create app.
- Enter the following:
- Name: Aiven
- Description (optional): Aiven documentation MCP server
- MCP Server URL:
https://aiven-docs.mcp.kapa.ai
- Click Create.
- Sign in with your Google account when prompted.
- Confirm that Aiven appears under Settings > Apps.
For more information, see the OpenAI Developer mode documentation.
-
Open your MCP client configuration.
-
Add the Aiven documentation MCP server using the following URL:
https://aiven-docs.mcp.kapa.ai
Most clients accept a configuration similar to:
{
"mcpServers": {
"aiven-docs": {
"url": "https://aiven-docs.mcp.kapa.ai"
}
}
}
- Save the file and restart your client.
- Sign in with your Google account when prompted.
Some clients require specifying the transport type, for example "type": "http". Refer
to your client documentation if the configuration fails.
Verify the connection
After connecting the MCP server:
-
Open your AI client, such as Copilot Chat in VS Code or Chat in Cursor.
-
Ask a question about Aiven documentation, such as:
- How do I create a topic in Aiven for Apache Kafka®?
- How do I migrate snapshot data to Aiven for OpenSearch®?
-
If prompted to allow tool execution, click Allow.
-
Confirm that the response includes references to Aiven documentation.
If the response includes references to Aiven documentation, the MCP server is connected.