Skip to content

Menu

Milvus MCP Server logo

Milvus MCP Server

Published

At a glance

Category
Databases
Watch out for
There is no hosted endpoint or packaged install in the README; you run the server yourself from a clone with uv and point it at your own Milvus.

The MCP Server for Milvus is published by Zilliz, the company behind the Milvus vector database, in the zilliztech/mcp-server-milvus repository under the Apache 2.0 licence. It gives an MCP client direct access to a Milvus instance you already run, local or remote, so an assistant can search vectors, manage collections and insert or delete data in conversation. The Milvus documentation also has its own MCP + Milvus tutorial that walks through the same setup.

It is a Python server, needing Python 3.10 or newer, and the README recommends running it with uv straight from a clone of the repository rather than installing a package. It runs over stdio by default, and it can also serve SSE or Streamable HTTP on a port you choose. The README calls Streamable HTTP the recommended transport for production, with an optional stateless mode.

Connection details come from a --milvus-uri flag or from environment variables, and an .env file in the server directory takes priority over command line arguments, which is worth knowing when a flag seems to be ignored.

How it connects

Your AI app

An assistant or agent that supports MCP

Milvus MCP Server

Runs as

  • Python (uv / pip)
  • Remote (HTTP)

Gives the agent

  • Vector and hybrid search
  • Full text and text similarity
  • Filtered queries
  • Collection management
  • Writing data

Milvus

Signs in with

  • Token
Your AI app talks to Milvus MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Vector and hybrid search
milvus_vector_search runs similarity search with filters and a COSINE, L2 or IP metric, and milvus_hybrid_search combines a text query with a vector query on one collection.
Full text and text similarity
milvus_text_search does full text search with a drop_ratio for low-frequency terms, and milvus_text_similarity_search searches by text using an embedding function configured on the Milvus server.
Filtered queries
milvus_query fetches records with a filter expression such as age > 20 and returns the fields you ask for.
Collection management
milvus_list_collections, milvus_create_collection (quick setup or a custom schema and index parameters), milvus_load_collection, milvus_release_collection and milvus_get_collection_info.
Writing data
milvus_insert_data adds records from a map of field names to values, and milvus_delete_entities removes entities that match a filter expression.

Setting it up

You need Python 3.10 or higher, uv and a running Milvus instance. Clone the repository with git clone https://github.com/zilliztech/mcp-server-milvus.git and cd into it. For stdio in Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json and add a server named milvus whose command is the path to uv and whose args are --directory, /path/to/mcp-server-milvus/src/mcp_server_milvus, run, server.py, --milvus-uri, http://localhost:19530, then restart Claude Desktop. Cursor takes the same block: open Cursor Settings, MCP, Add new global MCP server, and paste it into mcp.json. For a shared HTTP server, start it with uv run src/mcp_server_milvus/server.py --streamable-http --milvus-uri http://localhost:19530 --port 8000 and point the client at http://your_host:port/mcp (or use --sse and the /sse URL). MILVUS_URI, MILVUS_TOKEN and MILVUS_DB can replace the flags, with MILVUS_DB defaulting to default. In Cursor, check that tools such as milvus_list_collections appear in the MCP settings.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • List the collections in a Milvus database and inspect one collection's schema and metadata before writing application code.
  • Create a test collection with a chosen dimension and metric, insert sample records and load it for search.
  • Run a filtered vector search or hybrid search while tuning a RAG pipeline, comparing results across metrics.
  • Query records by a filter expression to check what data an ingestion job actually wrote.
  • Clean up bad test data by deleting entities that match a filter.

Limitations and things to watch

  • There is no hosted endpoint or packaged install in the README; you run the server yourself from a clone with uv and point it at your own Milvus.
  • milvus_text_similarity_search only works on Milvus 2.6.0 and above with an embedding function set up on the Milvus server.
  • milvus_delete_entities and milvus_insert_data change data directly, so give the server a token or database scoped to what the agent should touch.
  • The .env file overrides command line arguments, which can quietly point the server at a different Milvus than the flag you passed.
  • The README gives step-by-step client setup only for Claude Desktop and Cursor; for other MCP clients you write the standard config yourself.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…