Skip to main content

Milvus

Milvus's official MCP server is mcp-server-milvus, which you run yourself. The Milvus card with the Official badge calls {base URL}/mcp over streamable HTTP. The server has no sign-in of its own. It connects to Milvus with the URI, token, and database you set on that process, and every Willow caller shares that connection.

The Milvus MCP overview shows the stdio setup used by desktop apps. Willow needs the streamable HTTP mode in the server README.

Run the server​

You need Python 3.10 or higher, a running Milvus instance (local or remote), and uv.

git clone https://github.com/zilliztech/mcp-server-milvus.git
cd mcp-server-milvus
uv run src/mcp_server_milvus/server.py --streamable-http --milvus-uri http://localhost:19530 --port 8000

--streamable-http serves /mcp. --port defaults to 8000. The process listens on localhost.

Set the Milvus connection with the flags or with environment variables:

SettingFlagEnvironment variableDefault
Milvus URI--milvus-uriMILVUS_URIhttp://localhost:19530
Token--milvus-tokenMILVUS_TOKENnone
Database--milvus-dbMILVUS_DBdefault

A .env file in src/mcp_server_milvus/ takes priority over the flags. MILVUS_TOKEN is optional and is the Milvus authentication token when the instance requires one.

Set up Willow​

  1. Go to MCP Servers → + Add MCP server, open the Milvus card with the Official badge, and click + Use.
  2. Set MCP server base URL to the scheme, host, and port, with no path. The default is http://localhost:8000. Willow calls {base URL}/mcp.
  3. There is no sign-in to configure. Click Check connection. Assign groups and Publish.

http://localhost:8000 works when Willow runs on the same machine as the MCP server. When Willow runs elsewhere, set the base URL to an address Willow can open. The server source sets the listen address to localhost, and the README does not document a flag to change it.

Leave the Milvus token on the MCP server.

Troubleshooting​

Willow cannot open the MCP URL​

Cause: The server is not running with --streamable-http, the base URL includes /mcp, or Willow cannot reach localhost.

Solution: Start the command above and keep it running. Set MCP server base URL to the scheme, host, and port only, such as http://localhost:8000. Use an address Willow can open when Willow is on another machine.

Failed to connect to Milvus​

Cause: The MCP process cannot reach the Milvus instance in MILVUS_URI or --milvus-uri.

Solution: Confirm the instance is running. Check the URI, and that no firewall blocks the MCP server from it. The README suggests 127.0.0.1 in place of localhost when name resolution fails. If a .env file sets MILVUS_URI, that value overrides the flag.

Authentication errors from Milvus​

Cause: The instance requires a token and MILVUS_TOKEN or --milvus-token is missing or wrong.

Solution: Set the token on the MCP server and restart it. The token is not entered in Willow.

Additional Resources​