Content
# MCP Server with Qdrant
This project integrates the Qdrant vector database with an MCP (Model Control Protocol) server to create a system for storing and retrieving code snippets.
## Features
- Store and manage code snippets
- Natural language-based code search
- Retrieve related code through semantic search
- Support for SSE (Server-Sent Events) transmission method
## System Configuration
- **Qdrant**: Vector database server (Port: 6333, 6334)
- **MCP Server**: Code snippet management server (Port: 8000)
- **Embedding Model**: (default) sentence-transformers/all-MiniLM-L6-v2
## MCP Tools
[QDRANT MCP Server](https://github.com/qdrant/mcp-server-qdrant) provides the following tools:
### 1. qdrant-store
- **Function**: Store information in the Qdrant database
- **Input**:
- `information` (string): Information to be stored
- `metadata` (JSON): Optional metadata
- **Returns**: Confirmation message of storage
### 2. qdrant-find
- **Function**: Search for relevant information in the Qdrant database
- **Input**:
- `query` (string): Query to be used for searching
- **Returns**: Returns stored information in the Qdrant database as individual messages
## Getting Started
### Prerequisites
- Docker
- Docker Compose
### Installation and Running
#### 1. Clone the Repository
```bash
git clone <repository-url>
cd <repository-name>
```
#### 2. Start the Service
```bash
docker-compose up -d
```
#### 3. Check Service Status
```bash
docker-compose ps
```
### Accessing the Service
- Qdrant UI: http://localhost:6333/dashboard
- MCP Server: http://localhost:8000
- When configuring in AI IDE like cursor, you can add in the following JSON format:
```json
"qdrant": {
"url": "http://localhost:8000/sse"
},
```
## Environment Variables
### Qdrant
- `RUST_LOG`: Logging level (default: info)
### MCP Server
- `QDRANT_URL`: Qdrant server address
- `COLLECTION_NAME`: Collection name
- `EMBEDDING_MODEL`: Embedding model
- `TOOL_STORE_DESCRIPTION`: Description for the store tool
- `TOOL_FIND_DESCRIPTION`: Description for the find tool
## Data Storage
Data is permanently stored in the `./qdrant_storage` directory.
## Service Management
### Check Logs
```bash
docker-compose logs -f
```
### Stop the Service
```bash
docker-compose down
```
## Notes
- Periodically back up the `qdrant_storage` directory for data backup.
- Add appropriate security settings in production environments.
Connection Info
You Might Also Like
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
markitdown
Python tool for converting files and office documents to Markdown.
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.
Sequential Thinking
A structured MCP server for dynamic problem-solving and reflective thinking.
Fetch
Retrieve and process content from web pages by converting HTML into markdown format.
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.