by Aiven-Open
Provides access to Aiven PostgreSQL, Kafka, ClickHouse, Valkey, and OpenSearch services via Model Context Protocol, enabling LLMs to interact with Aiven resources for full‑stack solutions.
Aiven MCP Server exposes Aiven‑hosted services—PostgreSQL, Kafka, ClickHouse, Valkey, and OpenSearch—as reusable tools that can be invoked through the Model Context Protocol. It allows large language models to retrieve project listings, service inventories, and detailed service metadata without writing custom integration code.
uv sync
(or follow the provided installation steps).AIVEN_BASE_URL
and AIVEN_TOKEN
) either in a .env
file or via the MCP client configuration.uv --directory $REPOSITORY_DIRECTORY run --with-editable $REPOSITORY_DIRECTORY --python 3.13 mcp-aiven
).list_projects
, list_services
, and get_service_details
from any MCP‑compatible client (Claude Desktop, Cursor, etc.).list_projects
: Returns all projects associated with the provided Aiven account.list_services
: Retrieves every service inside a specified project.get_service_details
: Fetches comprehensive metadata for a single service.Q: Which programming language is required?
A: The server runs on Python 3.13 and uses the uv
package manager.
Q: Do I need to host the MCP server myself? A: Yes. The server is self‑managed; you are responsible for deployment, security, and maintenance.
Q: How are credentials secured?
A: Authentication is performed with an Aiven API token supplied via AIVEN_TOKEN
. Follow the principle of least privilege and rotate tokens regularly.
Q: Can I add custom tools? A: Absolutely. New MCP tools can be implemented in Python and registered alongside the existing ones.
Q: What if I want to run the server on a different port? A: Adjust the launch command or underlying server configuration in the codebase to bind to your desired port.
A Model Context Protocol (MCP) server for Aiven.
This provides access to the Aiven for PostgreSQL, Kafka, ClickHouse, Valkey and OpenSearch services running in Aiven and the wider Aiven ecosystem of native connectors. Enabling LLMs to build full stack solutions for all use-cases.
list_projects
list_services
get_service_details
Open the Claude Desktop configuration file located at:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Add the following:
{
"mcpServers": {
"mcp-aiven": {
"command": "uv",
"args": [
"--directory",
"$REPOSITORY_DIRECTORY",
"run",
"--with-editable",
"$REPOSITORY_DIRECTORY",
"--python",
"3.13",
"mcp-aiven"
],
"env": {
"AIVEN_BASE_URL": "https://api.aiven.io",
"AIVEN_TOKEN": "$AIVEN_TOKEN"
}
}
}
}
Update the environment variables:
$REPOSITORY_DIRECTORY
to point to the folder cointaining the repositoryAIVEN_TOKEN
to the Aiven login token.Locate the command entry for uv
and replace it with the absolute path to the uv
executable. This ensures that the correct version of uv
is used when starting the server. On a mac, you can find this path using which uv
.
Restart Claude Desktop to apply the changes.
Navigate to Cursor -> Settings -> Cursor Settings
Select "MCP Servers"
Add a new server with
mcp-aiven
command
uv --directory $REPOSITORY_DIRECTORY run --with-editable $REPOSITORY_DIRECTORY --python 3.13 mcp-aiven
Where $REPOSITORY_DIRECTORY
is the path to the repository. You might need to add the AIVEN_BASE_URL
, AIVEN_PROJECT_NAME
and AIVEN_TOKEN
as variables
.env
file in the root of the repository.AIVEN_BASE_URL=https://api.aiven.io
AIVEN_TOKEN=$AIVEN_TOKEN
Run uv sync
to install the dependencies. To install uv
follow the instructions here. Then do source .venv/bin/activate
.
For easy testing, you can run mcp dev mcp_aiven/mcp_server.py
to start the MCP server.
The following environment variables are used to configure the Aiven connection:
AIVEN_BASE_URL
: The Aiven API urlAIVEN_TOKEN
: The authentication tokenThis section outlines key developer responsibilities and security considerations when working with Model Context Protocols (MCPs) and AI Agents within this system. Self-Managed MCPs:
AI Agent Security:
API Token Best Practices:
Key Takeaways:
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "aiven-mcp": { "command": "uv", "args": [ "--directory", "$REPOSITORY_DIRECTORY", "run", "--with-editable", "$REPOSITORY_DIRECTORY", "--python", "3.13", "mcp-aiven" ], "env": { "AIVEN_BASE_URL": "https://api.aiven.io", "AIVEN_TOKEN": "<YOUR_AIVEN_TOKEN>" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by awslabs
Provides specialized servers that expose AWS capabilities through the Model Context Protocol, enabling AI assistants to retrieve up-to-date documentation, execute API calls, and automate infrastructure workflows directly within development environments.
by cloudflare
Provides a collection of Model Context Protocol servers that enable MCP‑compatible clients to interact with Cloudflare services such as Workers, Observability, Radar, and more, allowing natural‑language driven management of configurations, data, and operations.
by Flux159
Connects to a Kubernetes cluster and offers a unified MCP interface for kubectl, Helm, port‑forwarding, diagnostics, and non‑destructive read‑only mode.
by TencentEdgeOne
Deploy HTML, folders, or zip archives to EdgeOne Pages and instantly obtain a public URL for fast edge delivery.
by rishikavikondala
Provides Model Context Protocol tools for performing AWS S3 and DynamoDB operations, with automatic logging and audit access via the `audit://aws-operations` endpoint.
by confluentinc
Enables AI assistants to manage Confluent Cloud resources such as Kafka topics, connectors, and Flink SQL statements through natural‑language interactions.
by aliyun
Enables AI assistants to operate Alibaba Cloud resources such as ECS, Cloud Monitor, OOS and other services through seamless integration with Alibaba Cloud APIs via the Model Context Protocol.
by aws-samples
Retrieve PDF documents and other S3 objects through Model Context Protocol resources, enabling LLMs to pull data directly from AWS S3 buckets.
by kocierik
Connects to HashiCorp Nomad and exposes Model Context Protocol endpoints for job, deployment, node, allocation, variable, volume, ACL, Sentinel, and cluster management via a Go‑based server.