Milvus MCP Server

Connect AI assistants to Milvus, the open-source vector database, for semantic search, vector storage, and hybrid query operations through the Model Context Protocol.

October 19, 2026
MCP ServerDatabases & StorageMilvus MCP Server
GitHub starsPyPI version

Overview

The Milvus MCP Server enables AI assistants to interact with Milvus, the high-performance open-source vector database built for scalable similarity search and AI applications. Through the Model Context Protocol, AI models can create and manage vector collections, perform semantic search, insert data, and manage indexes β€” making Milvus's vector storage capabilities available directly through natural language.

Official Server:

Developed by Zilliz, the team behind Milvus

Key Features

πŸ”

Vector Search

Perform high-dimensional vector similarity search across collections with configurable top-k results.

πŸ—‚οΈ

Collection Management

Create, describe, list, and drop collections with custom schemas and vector dimensions.

πŸ“₯

Data Ingestion

Insert vectors and associated metadata into collections for retrieval and search.

⚑

Index Management

Create and manage vector indexes to optimize search performance at scale.

πŸ”—

Hybrid Search

Combine vector similarity with attribute filtering for precise, context-aware results.

☁️

Cloud & Self-Hosted

Connect to Milvus Lite, standalone deployments, or fully managed Zilliz Cloud clusters.

Available Tools

Quick Reference

ToolPurposeCategory
milvus_create_collectionCreate a new collection with quick setup or customized schemaSchema
milvus_list_collectionsList all collections in the databaseDiscovery
milvus_insert_dataInsert data into a collectionWrite
milvus_vector_searchPerform vector similarity search on a collectionSearch
milvus_text_searchSearch for documents using full text searchSearch
milvus_hybrid_searchPerform hybrid search on a collectionSearch
milvus_queryQuery a collection using filter expressionsSearch
milvus_load_collectionLoad a collection into memoryCollection
milvus_release_collectionRelease a collection from memoryCollection
milvus_get_collection_infoGet detailed collection informationDiscovery
milvus_delete_entitiesDelete entities based on a filter expressionWrite

Detailed Usage

milvus_create_collectionβ–Ά

Create a new collection with a defined schema including vector field dimension and optional metadata fields.

use_mcp_tool({
  server_name: "milvus",
   tool_name: "milvus_create_collection",
  arguments: {
    collection_name: "documents",
    dimension: 1536
  }
});
milvus_vector_searchβ–Ά

Search for the most similar vectors in a collection, with optional metadata filtering.

use_mcp_tool({
  server_name: "milvus",
   tool_name: "milvus_vector_search",
  arguments: {
    collection_name: "documents",
    vector: [0.1, 0.2, ...],
    limit: 10,
    filter_expr: "category == 'research'"
  }
});
milvus_insert_dataβ–Ά

Insert vectors with associated metadata into a collection for future search and retrieval.

use_mcp_tool({
  server_name: "milvus",
   tool_name: "milvus_insert_data",
  arguments: {
    collection_name: "documents",
    data: {
      id: [1, 2],
      vector: [[0.1, 0.2], [0.3, 0.4]],
      text: ["First document", "Second document"]
    }
  }
});

Installation

{
  "mcpServers": {
    "milvus": {
      "command": "uvx",
      "args": [
        "mcp-server-milvus"
      ],
      "env": {
        "MILVUS_URI": "http://localhost:19530"
      }
    }
  }
}

Connection Options:

Set MILVUS_URI to your Milvus server address. Use http://localhost:19530 for local Milvus, or your Zilliz Cloud endpoint for managed deployments. Add MILVUS_TOKEN for authentication when needed.

Common Use Cases

  • AI-Powered RAG Pipelines: Connect vector stores to LLMs for retrieval-augmented generation with semantic search
  • Document & Media Search: Index and query embeddings from documents, images, or audio for intelligent retrieval
  • Recommendation Systems: Build vector-based similarity search for product or content recommendations
  • Multi-Agent Knowledge Bases: Share a common vector store across multiple AI agents for consistent context

Sources