Skip to content

Conversation

@YixinZ-NUS
Copy link

Implements a Rust-based Model Context Protocol (MCP) server for SeekDB vector database, located at examples/mcp/seekdb/ . Built with rmcp 0.14.0 and features client-side embeddings via fastembed (all-MiniLM-L6-v2 model) to reduce the need for api keys and ensure consistency with pyseekdb.

MCP Tools Provided:
create_collection: Create tables with 384-dim HNSW vector index
add_documents: Insert documents with auto-generated embeddings
search_collection: Perform vector similarity search
list_collections: List all tables with vector indexes
collection_info: Get schema, row count, and embedding info

Includes usage guide under examples/mcp/seekdb/README.md and unit testing for validation.

Closes #34

Implements Issue second-state#34: SeekDB Rust MCP Server with:
- rmcp 0.14.0 from crates.io for MCP server
- fastembed for client-side embeddings (all-MiniLM-L6-v2, 384 dims)
- mysql_async for SeekDB connectivity
- Three tools: search_collection, list_collections, collection_info
- Local .gitignore for build artifacts
- README.md: concise usage guide, test instructions (--test-threads=1)
- config.toml: example EchoKit MCP integration
- .env.template: environment variable reference
- Cargo.toml: add repository URL, rust-version, updated description
- Documents alternative AI_EMBED() for DB-side embeddings
- Add Docker lifecycle commands (start, status, logs, stop)
- Document MCP session management with notifications/initialized
- Add step-by-step curl examples with actual responses
- Clarify EchoKit config.toml location
- Explain --test-threads=1 requirement for unit tests
- Update all example outputs from live testing
Environment variables are already documented in README.md.
The .env.template file is redundant since this implementation
uses client-side embeddings without requiring API keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Implement SeekDB Search MCP Server

1 participant