loading…
Search for a command to run...
loading…
Enables seamless integration with Weaviate vector databases, providing tools for semantic, keyword, and hybrid search across local or cloud instances. It suppor
Enables seamless integration with Weaviate vector databases, providing tools for semantic, keyword, and hybrid search across local or cloud instances. It supports schema management, collection retrieval, and multi-tenancy configurations through the Model Context Protocol.
A Model Context Protocol (MCP) server that provides seamless integration with Weaviate vector databases. This server focuses on powerful search capabilities including semantic, keyword, and hybrid search, with plans to expand functionality in future releases.
The Weaviate MCP Server currently provides 11 essential tools for interacting with your Weaviate instance:
get_config - View current Weaviate configuration (with sensitive values masked)check_connection - Test connection to your Weaviate instancelist_collections - List all available collections in your databaseget_schema - Get detailed schema information for specific collections or all collectionsget_collection_objects - Retrieve objects from collections with pagination supportsearch - Simplified search interface using hybrid search by defaultsemantic_search - Vector similarity search using embeddings for semantic matchingkeyword_search - BM25-based keyword search for exact term matchinghybrid_search - Combined semantic and keyword search with configurable weightingis_multi_tenancy_enabled - Check if a collection supports multi-tenancyget_tenant_list - List all tenants for a multi-tenant collectionThe MCP server is designed to be used with MCP clients like Claude Desktop. It uses uvx for automatic installation and execution - no manual installation required.
Test the server directly:
uvx mcp-weaviate --help
Add the Weaviate MCP server to your MCP settings file (typically claude_desktop_config.json or similar):
{
"mcpServers": {
"mcp-weaviate": {
"command": "/path/to/uvx",
"args": [
"mcp-weaviate",
"--connection-type", "local",
"--host", "localhost",
"--port", "8080",
"--grpc-port", "50051",
"--openai-api-key", "YOUR_OPENAI_API_KEY"
]
}
}
}
{
"mcpServers": {
"mcp-weaviate": {
"command": "/path/to/uvx",
"args": [
"mcp-weaviate",
"--connection-type", "cloud",
"--cluster-url", "https://your-cluster.weaviate.network",
"--api-key", "YOUR_WEAVIATE_API_KEY",
"--openai-api-key", "YOUR_OPENAI_API_KEY"
]
}
}
}
| Option | Description | Default | Environment Variable |
|---|---|---|---|
--transport |
Transport protocol: "stdio" or "streamable-http" | stdio | - |
--http-host |
Host for HTTP transport | 0.0.0.0 | - |
--http-port |
Port for HTTP transport | 8000 | - |
--connection-type |
Connection type: "local" or "cloud" | required | - |
--host |
Host for local Weaviate connection | required for local | - |
--port |
HTTP port for local Weaviate connection | required for local | - |
--grpc-port |
gRPC port for local Weaviate connection | required for local | - |
--cluster-url |
Weaviate Cloud Services URL | required for cloud | WEAVIATE_CLUSTER_URL |
--api-key |
API key for authentication | required for cloud | WEAVIATE_API_KEY |
--openai-api-key |
OpenAI API key for embeddings | - | OPENAI_API_KEY |
--cohere-api-key |
Cohere API key for embeddings | - | COHERE_API_KEY |
--timeout-init |
Initialization timeout (seconds) | 30 | - |
--timeout-query |
Query timeout (seconds) | 60 | - |
--timeout-insert |
Insert timeout (seconds) | 120 | - |
For deploying the MCP server remotely (e.g., on TrueFoundry, Kubernetes, etc.), use the streamable-http transport:
mcp-weaviate --transport streamable-http --http-port 8000 --connection-type cloud
This exposes the server on HTTP port 8000 with a /health endpoint for health checks.
searchSimplified search interface using hybrid search with balanced defaults (alpha=0.3).
semantic_searchVector similarity search using embeddings. Best for finding conceptually similar content.
keyword_searchBM25 keyword search for exact term matching. Best for finding specific terms or phrases.
hybrid_searchCombines semantic and keyword search using Reciprocal Rank Fusion (RRF).
alpha parameter controls the balance:get_collection_objectsRetrieve objects from a collection with pagination support:
limit: Maximum number of objects to returnoffset: Number of objects to skip (for pagination)All search and retrieval tools support an optional tenant_id parameter for multi-tenant collections.
The Weaviate MCP Server currently focuses on comprehensive search capabilities. Future releases will include:
Data Management
Advanced Query Features
Collection Management
Enhanced Search
Distribution & Deployment
# Clone the repository
git clone https://github.com/yourusername/mcp-weaviate.git
cd mcp-weaviate
# Install dependencies with uv
uv sync
# Install development dependencies
uv sync --dev
# Run tests
uv run pytest
# Run linting
uv run ruff check .
# Run type checking
uv run mypy .
Example:
uv run python -m src.main \
--connection-type cloud \
--cluster-url https://your-cluster.weaviate.network \
--api-key YOUR_API_KEY \
--openai-api-key YOUR_OPENAI_KEY
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.
For issues, questions, or suggestions, please open an issue on the GitHub repository.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"weaviate-mcp-server": {
"command": "npx",
"args": []
}
}
}