Milvus MCP: database not found (list databases, use the exact name)
Fixes confusion when the Milvus MCP server is pointed at a database that does not exist. Collections are scoped to databases, and milvus_use_database with a wrong name fails. The fix is listing databases and switching to the right one or creating it. Use when the database name is wrong; not for collection-name errors.
TL;DR: Databases in Milvus are exact names too. List them with milvus_list_databases, switch with the exact name via milvus_use_database, and set MILVUS_DB to it for future sessions.
Database not found: analyticsFix it
- List the databases:
{ "name": "milvus_list_databases", "arguments": {} } Expected: the real database names, usually starting with default.
- Switch to the right one:
{ "name": "milvus_use_database", "arguments": { "database": "analytics" } }Use the exact name from step 1.
- To make it stick across restarts, set it in the client config:
{
"env": {
"MILVUS_DB": "analytics"
}
}- Restart the MCP client.
Expected: collections in that database become visible.
When to use this
milvus_use_databasefails with database not found.- Collections you know exist are invisible (you are in
default, they are elsewhere).
When NOT to use this
- Collection not found within the right database. That is the collection name.
- Connection or auth errors. Fix those first.
Compatibility
- zilliztech/mcp-server-milvus (milvuslistdatabases, milvususedatabase, MILVUS_DB).
- Milvus 2.4+ (named databases). Milvus Lite ignores named databases.
Why it happens
Named databases are a newer Milvus feature, and most examples still use default. Data loaded by another tool into a named database is invisible from default, which reads exactly like missing data until you switch.
Edge cases
- Database names are case-sensitive.
- The
defaultdatabase always exists. If in doubt, check there first. - Users need privileges on the database, not just the instance. A 403 after switching is a grants problem.
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.