MCP Server for Milvus
Official Zilliz MCP server: the agent runs vector and text search and manages collections and data in Milvus
Install
git clone https://github.com/zilliztech/mcp-server-milvus.git
cd mcp-server-milvus
uv run src/mcp_server_milvus/server.py --milvus-uri http://localhost:19530Runs the server in stdio mode for a check.
This is third-party code. Review the repository files before installing.
What it does
The server connects the agent to the Milvus vector database. The agent runs full-text, vector and hybrid search and filter queries. It can create collections with a schema and indexes, load and release them from memory and inspect metadata. It also inserts records and deletes entities by filter.
Who it is for. For developers of RAG and search systems who keep embeddings in Milvus.
Good fit when
- You need to see which collections and data live in Milvus
- You want to check search quality on a collection from the agent
- You need a quick test collection for a prototype
Not a fit when
- The database is in production and the agent must not get delete rights
- You use a different vector database
Example request
Which collections are in my Milvus? Find documents about machine learning in text_collectionLimitations
Requires Python 3.10+, uv and a running Milvus instance. There is no registry package: you clone the repository and run it from source. Text similarity search needs Milvus 2.6 with an embedding function configured. Values from the .env file override command-line arguments.
How to disable. Remove the milvus block from the client's MCP configuration and restart it.
MCP
- Transport
- stdio, sse, http
- Authentication
- not required
| Environment variables | |
|---|---|
| MILVUS_URI | Milvus server URI, replaces --milvus-uri |
| MILVUS_TOKEN secret | Auth token if authentication is enabled |
| MILVUS_DB | Database name, default is default |
Security check
- Can insert data and delete entities in the database
- Connects to a Milvus server over the network
README in short
The README covers running the server with uv from a cloned repository and three modes: stdio, SSE and Streamable HTTP, including a stateless option. It gives configs for Claude Desktop and Cursor. Tools are grouped into search, collection management and data operations. A troubleshooting section covers connection and auth errors.
FAQ
Can I connect to Milvus with authentication?
Yes, pass the token via MILVUS_TOKEN and the database name via MILVUS_DB.
Which transports are available?
stdio by default, plus SSE and Streamable HTTP via the --sse and --streamable-http flags.
Related
166 skills for scientific work: bioinformatics, cheminformatics, clinical data, geospatial analysis and 100+ databases
Google's open-source MCP server for databases: ready tools for Postgres, MySQL, BigQuery, Spanner and more, plus custom tools in tools.yaml
Official Hugging Face skills: Hub operations via the hf CLI, datasets, model training, Spaces, evals and deployment
A token-lean MCP server for PostgreSQL, MySQL, MariaDB, SQL Server and SQLite with a read-only mode