lore-mcp
Indexes local Markdown/text files into a SQLite database with vector embeddings and provides MCP tools for semantic search without cloud dependencies.
README
lore-mcp
LORE — Local Offline Retrieval Engine for MCP
An MCP server for semantic search over your local technical documents. No cloud, no external database — just a single .db file on your workstation.
What it does
- Indexes a directory of Markdown/text files into a portable SQLite database using vector embeddings
- Exposes two MCP tools (
search_docs,list_sources) for any MCP client (Claude Code, Claude Desktop, Cursor, etc.) - Runs locally with automatic GPU/API/CPU fallback for embedding generation
Status
Early development. See the backlog for planned features.
Quickstart
Prerequisites
- Python ≥ 3.10
- (Optional) NVIDIA GPU with CUDA for faster embeddings
Installation
pip install lore-mcp
Note: not yet published on PyPI. For now, install from source:
git clone https://github.com/romainsc/lore-mcp.git cd lore-mcp pip install -e .
Configure your MCP client
Add to your MCP client configuration (e.g. .claude/settings.json):
{
"mcpServers": {
"lore": {
"command": "lore-mcp",
"args": []
}
}
}
Index your documents
lore-mcp index /path/to/your/docs/
Search
Once configured, your MCP client can use:
search_docs("your query", top_k=5)— semantic search over indexed documentslist_sources()— list all indexed files with chunk counts
Environment variables
| Variable | Role | Default |
|---|---|---|
LORE_DB_PATH |
SQLite database file path | ./lore.db |
LORE_MODEL |
Embedding model name | BAAI/bge-m3 |
LORE_EMBED_MODE |
Mode: auto, gpu, api, cpu |
auto |
LORE_API_URL |
Remote /v1/embeddings URL |
(required if mode=api) |
LORE_API_MODEL |
Model name for remote API | same as LORE_MODEL |
Architecture
lore-mcp uses BAAI/bge-m3 for embeddings (1024 dimensions, multilingual) and sqlite-vec for vector storage in a single .db file.
Embedding generation falls back automatically: local GPU (CUDA) → remote API (OpenAI-compatible) → local CPU.
See docs/ for detailed documentation (coming with MVP).
Roadmap
MVP (v0.1.0)
- [ ] SQLite + sqlite-vec storage backend
- [ ] Embedding with GPU/API/CPU fallback
- [ ] MCP server (
search_docs,list_sources) - [ ] CLI ingestion tool
- [ ] Tests (TDD)
Post-MVP
- [ ] Example corpus and sample database
- [ ] Incremental re-indexing
- [ ] Metadata filtering
- [ ] Hybrid search (vector + keyword)
- [ ] Image captioning during ingestion
- [ ] Docker image
AI-assisted development
This project is developed with AI assistance (Claude, Anthropic). All AI-assisted content is marked with Co-Authored-By trailers in commits. Every contribution — human or AI-assisted — is reviewed, tested, and validated by a human before being committed.
See docs/ai-guidelines.md for the full guidelines.
License
GPL-3.0-or-later — see docs/adr/001-license-gpl-v3.md for the rationale.
Copyright (C) 2026 Romain Chantereau
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.