Local Vector Store MCP Server

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.

Category
Visit Server

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 (reads input/html and input/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}'
  • 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

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/health or use curl examples above.

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 (runs python -m src.mcp_server)
  • Compose service: make mcp-stdio-up (optional background service); make mcp-stdio-down to 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=1 to ingest on container start (Docker only).

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured