Integrate RAG into AI Agents via MCP Server. Supports multiple Vector database technologies.
Project description
Vector Database MCP Server
Version: 0.1.9
This is an MCP Server implementation which allows for a standardized collection management system across vector database technologies.
This was heavily inspired by the RAG implementation of Microsoft's Autogen V1 framework, however, this was changed to an MCP server model instead.
AI Agents can:
- Create collections with documents stored on the local filesystem or URLs
- Add documents to a collection
- Utilize collection for retrieval augmented generation (RAG)
- Delete collection
Supports:
- ChromaDB
- PGVector - 90% Tested
- Couchbase - 80% Tested
- Qdrant - 80% Tested
- MongoDB - 80% Tested
This repository is actively maintained - Contributions and bug reports are welcome!
Automated tests are planned
Usage:
Using as an MCP Server:
Creating Collection
AI Prompt:
Create a collection called zapdos with the documents in this directory:
/home/user/Documents/Chroma
AI Response:
The collection named "zapdos" has been successfully created or retrieved from the vector database
using the documents in the directory /home/user/Documents/Chroma.
Let me know if you'd like to perform any further actions, such as querying the collection or adding more documents!
Retrieving from Collection
AI Prompt:
Create a collection called zapdos with the documents in this directory:
/home/user/Documents/Chroma
AI Response:
The collection named "zapdos" has been successfully created or retrieved from the vector database
using the documents in the directory /home/user/Documents/Chroma.
Let me know if you'd like to perform any further actions, such as querying the collection or adding more documents!
Deleting Collection
AI Prompt:
Delete the collection called memory
AI Response:
The collection named "memory" has been successfully deleted.
Let me know if you'd like to create a new collection or perform any other actions!
Example:
Use in CLI
| Short Flag | Long Flag | Description |
|---|---|---|
| -h | --help | See Usage |
| -h | --host | Host of Vector Database |
| -p | --port | Port of Vector Database |
| -d | --path | Path of local Vector Database |
| -t | --transport | Transport Type (https/stdio) |
vector-mcp
Use with AI
Deploy MCP Server as a Service
docker pull knucklessg1/vector-mcp:latest
Modify the compose.yml
services:
vector-mcp-mcp:
image: knucklessg1/vector-mcp:latest
volumes:
- development:/root/Development
environment:
- HOST=0.0.0.0
- PORT=8001
ports:
- 8001:8001
Configure mcp.json
{
"mcpServers": {
"vector_mcp": {
"command": "uv",
"args": [
"run",
"--with",
"vector-mcp",
"vector-mcp"
],
"env": {
"DATABASE_TYPE": "chromadb", // Optional
"COLLECTION_NAME": "memory", // Optional
"DOCUMENT_DIRECTORY": "/home/user/Documents/" // Optional
},
"timeout": 300000
}
}
}
Installation Instructions:
Install Python Package
python -m pip install vector-mcp
PGVector dependencies
python -m pip install vector-mcp[pgvector]
All
python -m pip install vector-mcp[all]
Repository Owners:
Special shoutouts to Microsoft Autogen V1 ♥️
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vector_mcp-0.1.9.tar.gz.
File metadata
- Download URL: vector_mcp-0.1.9.tar.gz
- Upload date:
- Size: 48.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88e805f5ef4bd11054f96de4c9aaa0186316368ef168d894e9385617181183e1
|
|
| MD5 |
c589033a3a5ec41c4d61288a6563c7c9
|
|
| BLAKE2b-256 |
d7432aef4c64080b5f082b2a401183a165bad6679ab1089268f006ce6a6afdb9
|
File details
Details for the file vector_mcp-0.1.9-py3-none-any.whl.
File metadata
- Download URL: vector_mcp-0.1.9-py3-none-any.whl
- Upload date:
- Size: 67.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef38abfc50b0d063f8f365818d1905b88993fc691c00fc319ee4c0b1c1122dd0
|
|
| MD5 |
f62b761d7aeb18edab5018b59c039d67
|
|
| BLAKE2b-256 |
9f188430f635d24721bb4b90263c0329d393b740d86f8ecd8d4f5cb7bd5b8209
|