Sponsored by Deepsite.site

Claude-Compatible Milvus MCP Server

Created By
TerrysPOV8 months ago
Content

Claude-Compatible Milvus MCP Server

This repo provides everything needed to connect Anthropic's Claude (via Claude Desktop) to a Milvus vector database using the MCP (Model Context Protocol). It includes:

  • 🧠 A fully MCP-compatible FastMCP server
  • 🗃️ Milvus setup (via Docker)
  • 🛠️ Shell script to launch the server correctly for Claude
  • ✅ Official Milvus tool names for Claude compatibility

📦 Folder Structure

. ├── milvus-standalone/ # Contains Docker Compose for Milvus │ ├── docker-compose.yml │ └── config/ # Milvus etcd config files (if needed) ├── fastmcp/ │ ├── milvus-server/ # Your custom MCP server files │ │ ├── server.py # MCP server code │ │ └── run_milvus_server.sh # Shell script to launch server for Claude │ ├── .venv/ # uv-managed Python virtual env │ └── pyproject.toml # FastMCP + dependencies ├── claude_desktop_config.json # Add this entry to Claude's config └── README.md

🚀 Setup Guide

  1. Clone the Repo bash Copy Edit git clone https://github.com/YOUR_USERNAME/milvus-mcp-server cd milvus-mcp-server

  2. Run Milvus (Docker) Ensure Docker is installed and running. cd milvus-standalone docker-compose up -d

  3. Install uv (if you haven’t yet) brew install uv

  4. Sync Python Environment Inside fastmcp/: cd fastmcp uv sync

  5. Test the Server uv run python milvus-server/server.py You should see logs like:

pgsql Copy Edit INFO: Connected to Milvus ✅ Server loaded and tools are registered

  1. Update Claude Config Update claude_desktop_config.json like so: } "milvus": { "command": "/full/path/to/run_milvus_server.sh", "args": [] }

Make sure to restart Claude after this.

  1. Ask Claude Try:

“Call the Milvus tool to list all collections.”

It should now connect and execute.

🧠 Tool Naming Rules (Critical!)

Claude only recognizes tools if they exactly match Milvus naming conventions. Do not rename tools. Use:

create_collection

list_collections

search

etc.

Use @mcp.tool(name="create_collection") — the name is case-sensitive.

🧪 Debugging Tips

Ensure Milvus Docker is healthy (docker ps)

Check FastMCP server logs in the terminal

Add print statements in tools to debug

Make sure .venv and uv are used consistently

Don't use emojis or non-ASCII characters in tool descriptions

📌 Next Steps

Add more tools (delete_collection, upsert, etc.)

Add test scripts (test_server.py)

Add GitHub Actions for validation

🧪 Tests

To manually run tool tests, use the test_server_full.py or Claude Desktop interface.

🤝 Credits

  • Built by @TerrysPOV
  • Powered by FastMCP
  • Vectors stored in Milvus
  • Embeddings via OpenAI (text-embedding-ada-002)

📜 License

MIT

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server