Skip to main content

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

Add to Cursor

Alternatively, add it manually:

  1. In your project root, create or edit .cursor/mcp.json.

  2. Add the following configuration:

    {
    "mcpServers": {
    "aiven": {
    "type": "http",
    "url": "https://aiven.io/mcp"
    }
    }
    }
  3. Save the file.

  4. Restart Cursor.

  5. Open Settings > Tools & MCP.

  6. Select aiven and click Connect.

Verify the connection

  1. Open Cursor Chat with Cmd+L on macOS or Ctrl+L on Windows/Linux.

  2. Try a prompt such as:

    List my Aiven projects.

  3. If prompted to allow tool execution, click Allow.

  4. To confirm the server is registered, go to Settings > Tools & MCP and check that aiven appears with a connected status.

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.