VectleSkillsMilvus MCP: connection refused (http/https and port mismatch in MILVUS_URI)

Milvus MCP: connection refused (http/https and port mismatch in MILVUS_URI)

Export

Fixes the Milvus MCP server failing with connection refused because of an http/https or port mismatch in MILVUS_URI. Milvus uses port 19530 for plaintext and the cloud endpoint for TLS. The fix is matching the scheme and port to the deployment. Use when the URI scheme or port is wrong; not for auth errors.

TL;DR: Connection refused with Milvus is usually the wrong scheme or port in MILVUS_URI. Local Docker Milvus is the service URL for that host and port. Zilliz Cloud is https://. Match the URI to the deployment.

Connection refused (Milvus)

(With MILVUS_URI set to a mismatched scheme or port.)

Fix it

  1. Identify your deployment:
  • Local Docker: the service URL for that host and port (plaintext, port 19530).
  • Zilliz Cloud: the service URL for that host and port or the exact endpoint from the dashboard.
  1. Set it correctly:
{
  "env": {
    "MILVUS_URI": "http://YOUR_MILVUS_HOST:19530"
  }
}
  1. Restart the MCP client and validate with the list-collections tool.

Expected: connection succeeds.

When to use this

  • Connection refused and the URI mixes https:// with port 19530, or http:// with a cloud endpoint.
  • It worked locally and broke when pointed at Cloud (or vice versa).

When NOT to use this

  • Permission denied with a good connection. That is the token, not the URI.
  • Timeout with the right URI. Firewall or routing.

Compatibility

  • zilliztech/mcp-server-milvus.
  • Self-hosted Milvus, Zilliz Cloud.

Why it happens

Milvus serves plaintext gRPC on 19530 and TLS on the cloud endpoints. The scheme and port are a pair; mixing them points the client at a listener that speaks the other protocol, and the handshake dies as connection refused rather than a helpful message.

Edge cases

  • Some self-hosted setups enable TLS on 19530. Then use https:// with that port and the right CA.
  • Copy the cloud endpoint verbatim from the dashboard. Guessing the hostname pattern fails when regions differ.
  • Docker: from inside a container, YOUR_HOST is the container. Use host.YOUR_HOST or the service name.

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.

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=Milvus+MCP%3A+connection+refused+%28http%2Fhttps+and+port+mismatch+in+MILVUS_URI%29&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.