A FastMCP server for file vectorization and similarity search
Project description
files-vector-mcp
Note: This project is entirely generated by coze
A FastMCP server for file vectorization and similarity search with automatic directory monitoring.
Features
- 🔍 Auto-monitor directories and process new/changed files
- 📄 Support multiple file types (Markdown, PDF, DOCX, PPTX, images)
- 🧩 Intelligent chunking with overlap for long documents
- 🚀 Fast vector search with PostgreSQL+pgvector
- ⚡ UVX-compatible entry point for quick startup
Installation
With pip
pip install files-vector-mcp-server
With uvx (recommended)
uvx files-vector-mcp-server
Configuration
Environment
# OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key
OPENAI_API_URL=https://api.openai.com/v1
EMBEDDING_MODEL=text-embedding-ada-002
EMBEDDING_DIM=1536
# Database Configuration
DB_CONNECTION_STRING=postgres://user:password@localhost:5432/vector_db
# Monitoring Configuration
WATCH_TOPICS={"docs": ["./docs"], "notes": ["./notes"]}
# Optional MinerU API (for advanced OCR and document processing)(Optional & Untested)
MINERU_API_KEY=your_mineru_key
MINERU_API_URL=https://mineru.net/api/v4
# Chunk Configuration
CHUNK_SIZE=4000
CHUNK_OVERLAP=200
Usage
Basic Usage
files-vector-mcp
With Custom Config
files-vector-mcp --config path/to/your/config.toml
File Type Support
| File Type | Handling Method | Requirements |
|---|---|---|
| Markdown (.md) | Direct text extraction | - |
| MinerU API or PyPDF2 | MinerU API or PyPDF2 | |
| DOCX | python-docx | python-docx |
| PPTX | python-pptx | python-pptx |
| Images | MinerU OCR | MinerU API |
| Text (.txt) | Direct text extraction | - |
Project Structure
src/files-vector-mcp-server/
├── __init__.py
├── __main__.py # Entry point
├── main.py # Main application
├── config/ # Configuration
├── services/ # Business logic
└── utils/ # Helper functions
Development
# Clone repository
git clone https://github.com/yourusername/files-vector-mcp.git
cd files-vector-mcp
# Install dependencies
uv venv
source .venv/bin/activate
pip install -e .[dev]
License
Apache 2.0 License - see LICENSE file for details.
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 files_vector_mcp_server-0.1.3.tar.gz.
File metadata
- Download URL: files_vector_mcp_server-0.1.3.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7dad54d43637cc7c3dab497d299d5d266b854bc6b94bf04e6a9f08b07b4bbc0
|
|
| MD5 |
9095096a6c22e4a502dbb8651c4970b4
|
|
| BLAKE2b-256 |
c9fc387ba972334567790806c54778e9651bff3be6eaa757ba1ab73026502735
|
File details
Details for the file files_vector_mcp_server-0.1.3-py3-none-any.whl.
File metadata
- Download URL: files_vector_mcp_server-0.1.3-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8fac4c66788f23a83846c1d923e332cb3b3f9441c99d6f3636f60287bc6311c
|
|
| MD5 |
b046dc601d96c041915506d8ee7507ac
|
|
| BLAKE2b-256 |
ffd93b16cb952ff7cf020c00911e868d3f2974fafcf44a9ec928c41c74ec9294
|