Local Vector Store MCP Server
Enables document search and retrieval using TF-IDF vector similarity across HTML and PDF files. Provides ingest, query, and vector store management capabilities through both HTTP API and MCP stdio interfaces.
README
Local Vector Store & MCP Server
Lightweight vector store with TF‑IDF search, a small FastAPI HTTP API, and an MCP stdio server. Ingests documents from input/html and input/PDF and stores artifacts under data/vector_store.
Usage (Local)
- Install:
pip install -r requirements.txt - Ingest data:
make ingest(readsinput/htmlandinput/PDF) - Query via CLI:
make query Q="security maturity" K=5 - HTTP API (after deployment below):
- Health:
curl localhost:8000/health - Ingest:
curl -X POST localhost:8000/ingest - Query:
curl -X POST localhost:8000/query -H 'Content-Type: application/json' -d '{"query":"security maturity","k":5}'
- Health:
- Vector Store Manager (interactive):
make manage- Examples:
status,docs --limit 10,chunks input/PDF/example.pdf --limit 5,search "zero trust" --k 5,ingest,purge,export assets/index_backup.jsonl,help,exit
- Examples:
Deployment
Docker (single container)
- Build:
docker build -t local/vector-mcp:latest . - Run:
docker run -p 8000:8000 -e AUTO_INGEST=1 -v "$PWD/input:/app/input" -v "$PWD/data:/app/data" local/vector-mcp:latest- Visit
http://localhost:8000/healthor use curl examples above.
- Visit
Docker Compose
- Build images:
make docker-build - Start services:
make docker-up(HTTP server on:8000) - View logs:
make docker-logs - Ingest inside container:
make docker-ingest - Query inside container:
make docker-query Q="your query" K=5 - Stop:
make docker-down
MCP Stdio Server
- Local:
make mcp-stdio(runspython -m src.mcp_server) - Compose service:
make mcp-stdio-up(optional background service);make mcp-stdio-downto remove.
Data Layout
- Input:
input/html/**/*.html,input/PDF/**/*.pdf - Artifacts:
data/vector_store/{vectorizer.json,index.jsonl,meta.json}
Notes
- Ensure
input/contains documents before running ingest. - Set
AUTO_INGEST=1to ingest on container start (Docker only).
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.