Aiven

आधिकारिक

Navigate your Aiven projects and interact with the PostgreSQL®, Apache Kafka®, ClickHouse® and OpenSearch® services

Aiven MCP Server

A Model Context Protocol (MCP) server for the Aiven cloud data platform.

Manage PostgreSQL, Apache Kafka, applications, and other Aiven services directly from AI assistants like Claude, Cursor, and VS Code Copilot.

[!WARNING] Use with care. This MCP server can create, modify, and delete Aiven services and data on your behalf. AI agents may execute destructive actions (dropping databases, deleting services, producing messages) based on their interpretation of your prompts. You are fully responsible for the actions taken through this tool.

Permissions: Access is governed by the Aiven user permissions associated with the authenticated account. The MCP server can only perform actions that your Aiven user is allowed to do.

AI Agent Security: AI agents may need access credentials (database connection strings, streaming tokens) to act on your behalf. Review what your agent is doing, especially in production environments. Follow your organization's security policies and do a risk assessment before giving AI agents access to sensitive resources.

Quick Start

Option 1: Remote (hosted by Aiven)

The MCP server is hosted at https://mcp.aiven.live/mcp. Your MCP client will prompt you to authorize on Aiven.

Claude Code

claude mcp add --scope user --transport http aiven-mcp "https://mcp.aiven.live/mcp"

Cursor

Install MCP Server

Or manually add to Cursor MCP settings:

{
  "mcpServers": {
    "aiven-mcp": {
      "url": "https://mcp.aiven.live/mcp"
    }
  }
}

VS Code / Copilot

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "aiven-mcp": {
      "type": "http",
      "url": "https://mcp.aiven.live/mcp"
    }
  }
}

Read-Only Mode (Remote)

Enable read-only mode by adding ?read_only=true to the URL. All write operations will be excluded from the MCP:

{
  "mcpServers": {
    "aiven-mcp": {
      "url": "https://mcp.aiven.live/mcp?read_only=true"
    }
  }
}

Option 2: stdio (local)

Run the server locally as a child process of your MCP client. Requires Node.js 18+.

You must provide your Aiven API token via the AIVEN_TOKEN environment variable. Create a token here.

Claude Code

claude mcp add --scope user aiven-mcp -e AIVEN_TOKEN=your-token-here -- npx -y mcp-aiven

Cursor, VS Code -- add to your MCP client config:

{
  "mcpServers": {
    "aiven-mcp": {
      "command": "npx",
      "args": ["-y", "mcp-aiven"],
      "env": {
        "AIVEN_TOKEN": "your-token-here"
      }
    }
  }
}

Config file locations:

  • Cursor: Cursor Settings > MCP Servers
  • VS Code: .vscode/mcp.json in your workspace

Environment Variables

VariableRequiredDefaultDescription
AIVEN_TOKENstdio only--Aiven API token (create one here)
AIVEN_READ_ONLYNofalseSet to true to expose only read-only tools

In remote (HTTP) mode, AIVEN_TOKEN is not needed. Your MCP client sends your token as a Bearer token with each request.

Tools

Core

ToolDescription
aiven_project_listList projects
aiven_project_getGet project details
aiven_list_project_cloudsList cloud platforms for a project
aiven_project_vpc_listList VPCs for a project
aiven_service_listList services
aiven_service_type_plansList plans with cloud availability
aiven_service_plan_pricingGet pricing for a plan in a specific cloud
aiven_service_createCreate a service
aiven_service_getGet service information
aiven_service_updateUpdate a service (plan, config, power state)
aiven_service_metrics_fetchFetch metrics for managed data services
aiven_service_application_metrics_getFetch metrics for application services
aiven_project_get_service_logsGet service log entries
aiven_service_query_activityFetch current queries for a service
aiven_project_get_event_logsGet project event log entries

Kafka

ToolDescription
aiven_kafka_topic_listList Kafka topics
aiven_kafka_topic_createCreate a Kafka topic
aiven_kafka_topic_getGet Kafka topic info
aiven_kafka_topic_updateUpdate a Kafka topic
aiven_kafka_topic_deleteDelete a Kafka topic
aiven_kafka_topic_message_listRead messages from a Kafka topic
aiven_kafka_topic_message_produceProduce messages into a Kafka topic
aiven_kafka_connect_available_connectorsList available connector types
aiven_kafka_connect_listList running connectors
aiven_kafka_connect_create_connectorCreate a connector
aiven_kafka_connect_edit_connectorEdit a connector
aiven_kafka_connect_get_connector_statusGet connector status
aiven_kafka_connect_pause_connectorPause a connector
aiven_kafka_connect_resume_connectorResume a connector
aiven_kafka_connect_restart_connectorRestart a connector
aiven_kafka_connect_delete_connectorDelete a connector
aiven_kafka_schema_registry_subjectsList Schema Registry subjects
aiven_kafka_schema_registry_subject_version_getGet Schema Registry subject version

PostgreSQL

ToolDescription
aiven_pg_service_available_extensionsList available extensions
aiven_pg_service_query_statisticsFetch query statistics
aiven_pg_bouncer_createCreate a PgBouncer connection pool
aiven_pg_bouncer_updateUpdate a PgBouncer connection pool
aiven_pg_bouncer_deleteDelete a PgBouncer connection pool
aiven_pg_readRun a read-only SQL query
aiven_pg_writeRun a write SQL statement (INSERT, UPDATE, DELETE, CREATE TABLE, etc.)
aiven_pg_optimize_queryAI-powered query optimization (EverSQL)

Applications

ToolDescription
aiven_application_deployDeploy a Dockerized application to Aiven
aiven_application_redeployRebuild and redeploy an existing application
aiven_vcs_integration_listList connected VCS (GitHub) accounts
aiven_vcs_integration_repository_listList repositories for a VCS integration

Contributing

See CONTRIBUTING.md for development setup, running locally, and adding new tools.

License

Apache-2.0

संबंधित सर्वर

NotebookLM Web Importer

एक क्लिक में वेब पेज और YouTube वीडियो NotebookLM में आयात करें। 200,000+ उपयोगकर्ताओं द्वारा विश्वसनीय।

Chrome एक्सटेंशन इंस्टॉल करें