MariaDB Vector MCP Server
Provides tools for creating, deleting, and listing vector stores in MariaDB, inserting documents with optional metadata, and performing semantic search over stored documents.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Note:
The MariaDB team took this Hackathon project and greatly improved on it, you can check it out at: https://github.com/MariaDB/mcp.
I leave this repo visible to showcase my work, link to a blog they wrote about it: https://mariadb.org/model-context-protocol-mcp-hackathon-integration-track-winner/
mcp-server-mariadb-vector
The MariaDB Vector MCP server provides tools that LLM agents can use to interact with a MariaDB database with vector support, providing users with a natural language interface to store and interact with their data. Thanks to the Model Context Protocol (MCP), this server is compatible with any MCP client, including those provided by applications like Claude Desktop and Cursor/Windsurf, as well as LLM Agent frameworks like LangGraph and PydanticAI.
Using the MariaDB Vector MCP server, users can for example:
Provide context from a knowledge-base to their conversations with LLM agents
Store and query their conversations with LLM agents
Features
Vector Store Management
Create and delete vector stores in a MariaDB database
List all vector stores in a MariaDB database
Document Management
Add documents with optional metadata to a vector store
Query a vector store using semantic search
Embedding Provider
Use OpenAI's embedding models to embed documents
Related MCP server: MCP MariaDB Server
MCP Tools
mariadb_create_vector_store: Create a vector store in a MariaDB databasemariadb_delete_vector_store: Delete a vector store in a MariaDB databasemariadb_list_vector_stores: List all vector stores in a MariaDB databasemariadb_insert_documents: Add documents with optional metadata to a vector storemariadb_search_vector_store: Query a vector store using semantic search
Setup
Note: From here on, it is assumed that you have a running MariaDB instance with vector support (version 11.7 or higher). If you don't have one, you can quickly spin up a MariaDB instance using Docker:
docker run -p 3306:3306 --name mariadb-instance -e MARIADB_ROOT_PASSWORD=password -e MARIADB_DATABASE=database_name mariadb:11.7
First clone the repository:
git clone https://github.com/DavidRamosSal/mcp-server-mariadb-vector.gitThere are two ways to run the MariaDB Vector MCP server: as a Python package using uv or as a Docker container built from the provided Dockerfile.
Requirements for running the server using uv
MariaDB Connector/C - installation instructions
Requirements for running the server as a Docker container
Docker - installation instructions
Configuration
The server needs to be configured with the following environment variables:
Name | Description | Default Value |
| host of the running MariaDB database |
|
| port of the running MariaDB database |
|
| user of the running MariaDB database | None |
| password of the running MariaDB database | None |
| name of the running MariaDB database | None |
| provider of the embedding models |
|
| model of the embedding provider |
|
| API key for OpenAI's platform | None |
Running the server using uv
Using uv, you can add a .env file to the root of the cloned repository with the environment variables and run the server with the following command:
uv run --dir path/to/mcp-server-mariadb-vector/ --env-file path/to/mcp-server-mariadb-vector/.env mcp_server_mariadb_vectorThe dependencies will be installed automatically. An optional --transport argument can be added to specify the transport protocol to use. The default value is stdio.
Running the server as a Docker container
Build the Docker container from the root directory of the cloned repository by running the following command:
docker build -t mcp-server-mariadb-vector .Then run the container (replace with your own configuration):
docker run -p 8000:8000 \
--add-host host.docker.internal:host-gateway \
-e MARIADB_HOST="host.docker.internal" \
-e MARIADB_PORT="port" \
-e MARIADB_USER="user" \
-e MARIADB_PASSWORD="password" \
-e MARIADB_DATABASE="database" \
-e EMBEDDING_PROVIDER="openai" \
-e EMBEDDING_MODEL="embedding-model" \
-e OPENAI_API_KEY="your-openai-api-key" \
mcp-server-mariadb-vectorThe server will be available at http://localhost:8000/sse, using the SSE transport protocol. Make sure to leave MARIADB_HOST set to host.docker.internal if you are running the MariaDB database as a Docker container on your host machine.
Integration with Claude Desktop | Cursor | Windsurf
Claude Desktop, Cursor and Windsurf can run and connect to the server automatically using stdio transport. To do so, add the following to your configuration file (claude_desktop_config.json for Claude Desktop, mcp.json for Cursor or mcp_config.json for Windsurf):
{
"mcpServers": {
"mariadb-vector": {
"command": "uv",
"args": [
"run",
"--directory",
"path/to/mcp-server-mariadb-vector/",
"--env-file",
"path/to/mcp-server-mariadb-vector/.env",
"mcp-server-mariadb-vector"
]
}
}
}Alternatively, Cursor and Windsurf can connect to an already running server on your host machine (e.g. if you are running the server as a Docker container) using SSE transport. To do so, add the following to the corresponding configuration file:
"mcpServers": {
"mariadb-vector": {
"url": "http://localhost:8000/sse"
}
}
}Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Store, query, and update structured data from any AI agent
Ingest, manage, and retrieve documents for RAG-powered AI applications
Universal persistent memory and knowledge retrieval layer for AI agents and LLMs.
Astra DB tools for agents: schema, find, vector search, guarded writes, and interactive views.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with MariaDB databases through standard SQL operations and advanced vector/embedding-based search. Supports database management, schema inspection, and semantic document storage and retrieval with multiple embedding providers.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with MariaDB databases through SQL operations and vector-based semantic search. Supports standard database queries, schema inspection, and optional embedding-powered document storage and retrieval.MIT
- AlicenseNot gradedqualityCmaintenanceEnables semantic search and document management using a local Qdrant vector database with OpenAI embeddings. Supports natural language queries, metadata filtering, and collection management for AI-powered document retrieval.107 npm36MIT

MCP MariaDB Serverofficial
AlicenseNot gradedqualityDmaintenanceAn interface for managing and querying MariaDB databases that supports standard SQL operations alongside advanced vector and embedding-based search capabilities. It enables AI assistants to seamlessly integrate relational and vector data workflows through a standardized protocol.218MIT