Milvus MCP Server

Search, Query and interact with data in your Milvus Vector Database.

Local serverstdioPython

What is the Milvus MCP Server?

Milvus mcp server connects Milvus to AI assistants that speak the Model Context Protocol. Search, Query and interact with data in your Milvus Vector Database.

What Milvus does

This repository contains a MCP server that provides access to Milvus vector database functionality.

Requirements

Before using this MCP server, ensure you have: - Python 3.10 or higher - A running Milvus instance (local or remote) - uv installed (recommended for running the server)

Practical notes

  • Written in Python.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
milvus_text_searchSearch for documents using full text search
Parameters:collection_name: Name of collection
query_textText query for similarity search
limitThe maximum number of results to return (default: 10)
output_fieldsFields to include in results
drop_ratioProportion of low-frequency terms to ignore (0.0-1.0) (default: 0.2)
milvus_vector_searchPerform vector similarity search on a collection
vectorVector of the text query
vector_fieldField name for vector search
filter_exprFilter expression to select entities to delete
metric_typemetric type, default to "COSINE"; for quick setup and will be ignored if field_schema is provided
radiusOptional lower bound for range search (default: None)
range_filterOptional upper bound for range search (default: None)
milvus_hybrid_searchPerform hybrid search on a collection
text_fieldField name for text search
sparse_radiusOptional lower bound for sparse range search (default: None)
sparse_range_filterOptional upper bound for sparse range search (default: None)
dense_radiusOptional lower bound for dense range search (default: None)
dense_range_filterOptional upper bound for dense range search (default: None)
milvus_text_similarity_searchPerform text similarity search on a collection
anns_fieldField name for text search
milvus_queryQuery collection using filter expressions
milvus_list_collectionsList all collections in the database
milvus_create_collectionCreate a new collection with quick setup or customized schema
auto_idwhether to auto generate id, default to True
dimensionvector dimension, default to 768; for quick setup and will be ignored if field_schema is provided
primary_field_namename of the primary field, default to "id"; for quick setup and will be ignored if field_schema is provided
vector_field_namename of the vector field, default to "vector"; for quick setup and will be ignored if field_schema is provided
field_schemaList of field schema, each element is a dictionary with the following keys:
index_paramsOptional list of index parameters, each element is a dictionary with the following keys:
field_namename of the field to index
index_typeindex type
other_kwargsAdditional keyword arguments for the collection creation
milvus_load_collectionLoad a collection into memory for search and query
replica_numberNumber of replicas (default: 1)
milvus_release_collectionRelease a collection from memory
milvus_get_collection_infoLists detailed information like schema, properties, collection ID, and other metadata of a specific collection.
milvus_insert_dataInsert data into a collection
dataDictionary mapping field names to lists of values
milvus_delete_entitiesDelete entities from a collection based on filter expression

How to install the Milvus MCP Server

{
  "mcpServers": {
    "milvus-sse": {
      "url": "http://your_sse_host:port/sse",
      "disabled": false,
      "autoApprove": []
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

Before using this MCP server, ensure you have: - Python 3.10 or higher - A running Milvus instance (local or remote) - uv installed (recommended for running the server)

Frequently asked questions

Search, Query and interact with data in your Milvus Vector Database. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.