Aiven MCP Early availability
Create and manage Aiven services from AI assistants such as Cursor and Claude Code, including PostgreSQL®, Apache Kafka®, plans, metrics, logs, and service configuration. Enable read-only mode in the configuration tabs below to restrict the server to non-destructive operations, or limit tools to specific services to keep the assistant focused.
Prerequisites
- An Aiven account
- An MCP-compatible client, such as Cursor, Claude Code, Claude Desktop, VS Code, or Gemini CLI
- MCP access enabled for your organization by an admin in the Aiven Console under Admin settings > Authentication > Allow MCP connection
Authentication uses OAuth 2.0 with PKCE; your browser opens on first connect so you can sign in and authorize MCP access.
Install the Aiven MCP
- Claude Code
- Cursor
- Claude Desktop
- VS Code
- Gemini CLI
- Other clients
- Local installation
-
Open a terminal.
-
Choose your options below, then run the generated command:
PermissionsAvailable toolsSubscribed through a cloud marketplace?
Select your marketplace only if you subscribed to Aiven through AWS, Azure, or Google Cloud Marketplace. This helps you sign in to the correct console.
claude mcp add --transport http aiven "https://mcp.aiven.live/mcp?read_only=true" -
Run
/mcpand authenticate in your browser when prompted. -
Test the connection with a prompt such as
List my Aiven projects.and approve the tool execution if prompted.
For more information, see the Claude Code MCP documentation.
For one-click installation:
Add to CursorTo add the server manually:
- In your project root, create or edit the
.cursor/mcp.jsonfile. - Choose your options below, then copy the generated configuration into the file:
Subscribed through a cloud marketplace?
Select your marketplace only if you subscribed to Aiven through AWS, Azure, or Google Cloud Marketplace. This helps you sign in to the correct console.
{
"mcpServers": {
"aiven": {
"type": "http",
"url": "https://mcp.aiven.live/mcp?read_only=true"
}
}
}
- Save the file.
- Restart Cursor.
- Open Settings > Tools & MCP.
- Select aiven and click Connect.
In Cursor Chat (Cmd+L / Ctrl+L), test the connection with a prompt such
as List my Aiven projects. and click Allow if prompted.
For more information, see the Cursor 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
-
-
Choose your options below, then add the generated configuration to the file:
PermissionsAvailable toolsSubscribed through a cloud marketplace?
Select your marketplace only if you subscribed to Aiven through AWS, Azure, or Google Cloud Marketplace. This helps you sign in to the correct console.
{
"mcpServers": {
"aiven": {
"type": "http",
"url": "https://mcp.aiven.live/mcp?read_only=true"
}
}
} -
Save the file and restart Claude Desktop.
-
In a new conversation, test the connection with a prompt such as
List my Aiven projects.and click Allow if 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. -
Choose your options below, then add the generated configuration to the file:
PermissionsAvailable toolsSubscribed through a cloud marketplace?
Select your marketplace only if you subscribed to Aiven through AWS, Azure, or Google Cloud Marketplace. This helps you sign in to the correct console.
{
"servers": {
"aiven": {
"type": "http",
"url": "https://mcp.aiven.live/mcp?read_only=true"
}
}
} -
Save the file and reload VS Code.
-
Open the Command Palette, run MCP: List Servers, and confirm that aiven appears.
-
In Copilot Chat, test the connection with a prompt such as
List my Aiven projects.and click Allow if prompted.
For more information, see the VS Code MCP documentation.
-
Create or edit the
~/.gemini/settings.jsonfile. -
Add the following configuration:
PermissionsAvailable toolsSubscribed through a cloud marketplace?
Select your marketplace only if you subscribed to Aiven through AWS, Azure, or Google Cloud Marketplace. This helps you sign in to the correct console.
{
"mcpServers": {
"aiven": {
"httpUrl": "https://mcp.aiven.live/mcp?read_only=true"
}
}
} -
Save the file and run
geminito start the CLI. -
Run
/mcp auth aivento sign in via your browser. -
Test the connection with a prompt such as
List my Aiven projects.and approve the tool execution if prompted.
-
Open your MCP client configuration.
-
Choose your options below, then add the generated configuration to your client:
PermissionsAvailable toolsSubscribed through a cloud marketplace?
Select your marketplace only if you subscribed to Aiven through AWS, Azure, or Google Cloud Marketplace. This helps you sign in to the correct console.
{
"mcpServers": {
"aiven": {
"url": "https://mcp.aiven.live/mcp?read_only=true"
}
}
}Most clients use a configuration similar to the above.
-
Save the file and restart your client.
-
In your AI assistant, test the connection with a prompt such as
List my Aiven projects.and approve the tool execution if prompted.
Some clients require a transport type, such as "type": "http". If the configuration
fails, see your client documentation.
Run the server locally using npx instead of the hosted server. Requires
an Aiven API token. Set
AIVEN_READ_ONLY="true" to enable read-only mode.
- Claude Code
- Cursor
- Claude Desktop
- VS Code
- Other clients
-
Open a terminal.
-
Run the following command, replacing
your-token-herewith your Aiven API token:claude mcp add --scope user aiven-mcp -e AIVEN_TOKEN=your-token-here -e AIVEN_READ_ONLY=false -- npx -y mcp-aiven -
Run
/mcpin Claude Code to verify the server is registered.
-
In your project root, create or edit the
.cursor/mcp.jsonfile. -
Add the following configuration, replacing
your-token-herewith your Aiven API token:{
"mcpServers": {
"aiven-mcp": {
"command": "npx",
"args": ["-y", "mcp-aiven"],
"env": {
"AIVEN_TOKEN": "your-token-here",
"AIVEN_READ_ONLY": "false"
}
}
}
} -
Save the file and restart Cursor.
-
Open the Claude Desktop configuration file.
-
Add the following configuration, replacing
your-token-herewith your Aiven API token:{
"mcpServers": {
"aiven-mcp": {
"command": "npx",
"args": ["-y", "mcp-aiven"],
"env": {
"AIVEN_TOKEN": "your-token-here",
"AIVEN_READ_ONLY": "false"
}
}
}
} -
Save the file and restart Claude Desktop.
-
In the
.vscodedirectory, create or edit themcp.jsonfile. -
Add the following configuration, replacing
your-token-herewith your Aiven API token:{
"servers": {
"aiven-mcp": {
"command": "npx",
"args": ["-y", "mcp-aiven"],
"env": {
"AIVEN_TOKEN": "your-token-here",
"AIVEN_READ_ONLY": "false"
}
}
}
} -
Save the file and reload VS Code.
-
Open your MCP client configuration.
-
Add the following configuration, replacing
your-token-herewith your Aiven API token:{
"mcpServers": {
"aiven-mcp": {
"command": "npx",
"args": ["-y", "mcp-aiven"],
"env": {
"AIVEN_TOKEN": "your-token-here"
}
}
}
} -
Save the file and restart your client.
What Aiven MCP can do
After you connect to Aiven MCP, you can work with Aiven resources in natural language. For example, you can do the following:
- View resources: List projects, services, and integrations, or check the status, plan, and cloud region of a service.
- Manage services: Create, update, and delete services such as PostgreSQL® and Apache Kafka®, and update service plans or configuration. To allow write operations, disable read-only mode.
- Inspect and troubleshoot services: View service metrics, logs, and configuration to investigate issues.
- Use Aiven documentation: Ask questions and get answers based on the Aiven documentation.
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 run operations from natural language prompts, which can be misinterpreted. Using the Aiven MCP server can result in damage to or loss of data.
Aiven secures the MCP server and data in transit. Your selected AI agent provider determines how the agent uses your data, including whether it uses that data for training. Review the provider's terms before you enable the integration.
Decide whether to enable MCP access in your organization after evaluating the risks.
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:
- Decide whether to enable MCP in your organization and evaluate the associated risks.
- Control access by scoping API tokens to the minimum permissions needed (principle of least privilege) and rotating them regularly.
- Review AI agent actions before they run, especially for write or delete operations on production resources.
- Configure MCP servers securely, including enabling read-only mode to restrict the server to non-destructive operations.