Milvus MCP Server
Provides tools for interacting with Milvus vector database, including collection lifecycle management, vector search with automatic embedding, data insertion/deletion, and hybrid search capabilities.
Integrates with OpenAI-compatible embedding services for automatic text-to-vector conversion, enabling semantic search capabilities without requiring external embedding services.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Milvus MCP Serversearch for articles about machine learning in my documents collection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Milvus MCP Server
This program is a Milvus vector database access service designed for large language models, following the Model Context Protocol (MCP) standard. It can serve as an external vector database interaction tool for large language models (such as Antigravity).
It supports Milvus 2.6 vector databases and includes a built-in OpenAI-compatible Embedding service (e.g., Tongyi Qianwen text-embedding-v4), allowing large models to perform semantic searches directly using natural language.
💡 Key Features
Vector Search: Supports semantic search for text input (automatic embedding) and raw vector search.
Built-in Embedding: Integrates an OpenAI-compatible endpoint; large models can pass text to be automatically converted into vectors, eliminating the need for external embedding services.
Collection Lifecycle Management: Create, view, and delete collections, with automatic indexing and loading upon creation.
Data Read/Write: Supports vector data insertion and conditional deletion.
Multi-connection Management: Define multiple named connections via a JSON configuration file; a single MCP Server instance can serve multiple Milvus instances.
Security Design:
drop_collectionanddelete_entitiesare independent tools that can be toggled separately in the MCP client;drop_collectionadditionally requires aconfirmDrop=trueparameter as a double-safety measure.Hybrid Search: Supports combined queries of vector similarity search + scalar filtering.
Related MCP server: Qdrant MCP Server
⚙️ Requirements
Node.js Environment: Requires Node.js version v18 or higher.
Milvus Instance: Requires an accessible Milvus 2.6 service instance.
Embedding API: Requires an OpenAI-compatible embedding service endpoint (e.g., Tongyi Qianwen Bailian platform).
Dependencies: Run
npm install --omit=devon the host machine to install dependencies.
🛠 Installation and Build
1. Build from Source
npm install
npm run buildBuild artifacts will be stored in the ./dist directory.
2. Global Local Installation
npm linkAfter execution, you can use the global command milvus-mcp-server to quickly invoke the service from anywhere in the system.
📝 Configuration File
Use a JSON file to configure Milvus connections and the embedding service.
Configuration Example
{
"connections": [
{
"name": "my-milvus",
"address": "localhost:19530",
"username": "root",
"password": "Milvus",
"database": "default",
"description": "本地开发 Milvus 实例,存储文档和图片的向量索引"
}
],
"embedding": {
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"apiKey": "sk-your-api-key",
"model": "text-embedding-v4",
"dimensions": 1024
}
}Connection Field Descriptions
Field | Type | Required | Description |
| string | ✅ | Unique identifier for the connection |
| string | ✅ | Milvus service address, format |
| string | ✅ | Username |
| string | ✅ | Password |
| string | ❌ | Database name, defaults to |
| string | ❌ | Business description of the connection |
Embedding Field Descriptions
Field | Type | Required | Description |
| string | ✅ | OpenAI-compatible API endpoint |
| string | ✅ | API Key |
| string | ✅ | Model name, e.g., |
| number | ✅ | Output vector dimensions. text-embedding-v4 supports: 2048, 1536, 1024, 768, 512, 256, 128, 64 |
🚀 Startup and Usage
milvus-mcp-server --config <path-to-config.json>Parameter List:
-c, --config <path>: Configuration file path (required).
🧠 MCP Client Configuration Example
Taking a standard MCP Client (like Antigravity) as an example:
{
"mcpServers": {
"MilvusMCP": {
"command": "node",
"args": [
"绝对路径/milvus_mcp_server/dist/index.js",
"--config", "绝对路径/milvus-config.json"
]
}
}
}🧰 Tools Available to the Model
1. list_milvus_connections
Description: Lists all configured Milvus connection information (sanitized, excluding passwords).
Parameters: None.
2. list_collections
Description: Lists all collections under a specified connection.
Parameters:
connectionName(String): Target connection name.
3. describe_collection
Description: Retrieves detailed schema information for a collection, including field definitions, indexes, and row counts.
Parameters:
connectionName(String): Target connection name.collectionName(String): Collection name.
4. create_collection
Description: Creates a new collection. Automatically creates an AUTOINDEX for the vector field and loads the collection, making it immediately searchable.
Parameters:
connectionName(String): Target connection name.collectionName(String): New collection name.description(String, optional): Collection description.fields(Array): Array of field definitions, each containingname,dataType,isPrimaryKey?,autoId?,dimension?,maxLength?,description?.
5. drop_collection
Description: Permanently deletes a collection and all its data. Irreversible operation.
Parameters:
connectionName(String): Target connection name.collectionName(String): Name of the collection to delete.confirmDrop(Boolean): Must be set totrueto execute the deletion. Safety double-confirmation mechanism.
Toggle Control: This tool can be enabled or disabled individually in the MCP client.
6. insert_vectors
Description: Inserts data into a collection. Each data item is a JSON object containing field values (including the vector field).
Parameters:
connectionName(String): Target connection name.collectionName(String): Target collection name.data(Array): Array of data.
7. delete_entities
Description: Deletes entities based on a filter expression.
Parameters:
connectionName(String): Target connection name.collectionName(String): Target collection name.filter(String): Milvus filter expression, e.g.,'id in [1, 2, 3]'.
Toggle Control: This tool can be enabled or disabled individually in the MCP client.
8. vector_search
Description: Vector similarity search. Supports passing text (automatically calls the embedding service to convert to a vector) or a raw vector.
Parameters:
connectionName(String): Target connection name.collectionName(String): Target collection name.text(String, optional): Search text, choose one betweentextandvector.vector(Number[], optional): Raw search vector, choose one betweentextandvector.topK(Number, optional): Number of results to return, defaults to 10.filter(String, optional): Scalar filter expression.outputFields(String[], optional): List of fields to return.
9. query_entities
Description: Queries entities based on scalar conditions, not involving vector search.
Parameters:
connectionName(String): Target connection name.collectionName(String): Target collection name.filter(String): Milvus filter expression.outputFields(String[], optional): List of fields to return.limit(Number, optional): Maximum number of results to return, defaults to 100.
10. hybrid_search
Description: Combined query of vector search + scalar filtering. The difference from
vector_searchis thatfilteris a required parameter.Parameters:
connectionName(String): Target connection name.collectionName(String): Target collection name.text(String, optional): Search text, choose one betweentextandvector.vector(Number[], optional): Raw search vector, choose one betweentextandvector.filter(String): Required, scalar filter expression.topK(Number, optional): Number of results to return, defaults to 10.outputFields(String[], optional): List of fields to return.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn integration server implementing the Model Context Protocol that enables LLM applications to interact with Milvus vector database functionality, allowing vector search, collection management, and data operations through natural language.240Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables 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.16436MIT
- AlicenseAqualityAmaintenanceEnables LLMs to interact with MySQL databases through standardized protocol, supporting database management, table operations, data queries, and modifications with configurable permission controls.15691MIT

Zilliz MCP Serverofficial
AlicenseAqualityCmaintenanceEnables AI agents to interact with Milvus vector databases and Zilliz Cloud through natural language, allowing users to create clusters, manage collections, insert vector data, and perform semantic searches directly from their AI assistants.1634Apache 2.0
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hcheng666/milvus_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server