By Aiven-OpenCreated 16 days ago
starstarstarstarstar

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

Visit Project
Share this MCP:
X (Formerly Twitter)RedditblueskyThreads by Instagram

Category

Official MCP Server

Tags

AivenMcpPostgresqlKafkaClickhouseOpensearch

What is the Aiven MCP Server?

The Aiven MCP Server is a Model Context Protocol (MCP) server that allows interaction with Aiven's PostgreSQL®, Apache Kafka®, ClickHouse®, Valkey, and OpenSearch® services. It enables LLMs to build full-stack solutions for various use-cases within the Aiven ecosystem and its native connectors.

How to use the Aiven MCP Server?

For Claude Desktop:

  1. Open the configuration file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%/Claude/claude_desktop_config.json).
  2. Add the server configuration with AIVEN_BASE_URL and AIVEN_TOKEN.
  3. Update the uv command path and restart Claude Desktop.

For Cursor:

  1. Go to Cursor -> Settings -> Cursor Settings -> MCP Servers.
  2. Add a new server named mcp-aiven with the specified command and environment variables.

For Development:

  1. Set up environment variables in a .env file.
  2. Run uv sync to install dependencies and activate the virtual environment.
  3. Start the MCP server with mcp dev mcp_aiven/mcp_server.py.

Key Features of the Aiven MCP Server

  • list_projects: List all projects on your Aiven account.
  • list_services: List all services in a specific Aiven project.
  • get_service_details: Retrieve service details for a specific project.
  • Supports PostgreSQL, Kafka, ClickHouse, Valkey, and OpenSearch services.

Use Cases of the Aiven MCP Server

  1. Infrastructure Management: Monitor and manage Aiven projects and services programmatically.
  2. AI Integration: Enable LLMs to interact with Aiven services for automated workflows.
  3. Developer Tooling: Provide CLI and API access for developers to script interactions with Aiven services.

FAQ from the Aiven MCP Server

  • What dependencies are required?

The project requires Python 3.13 and dependencies managed via uv. Use uv sync to install them.

  • How to secure my API token?

Always use the principle of least privilege, rotate tokens regularly, and never hardcode them in scripts.