Lore DB MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lore DB MCP Serversearch for documents about vector embeddings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lore DB
A local, vector-based knowledge base with semantic search, a web UI, and an MCP server for use with Claude and other AI tools.
Python backend — FastAPI REST API, sentence-transformer embeddings, SQLite storage
React frontend — document management, semantic search, analytics dashboard
MCP server — eight tools (
get,search,create,update,delete,verify,stale,reindex) over HTTP or stdioMulti-namespace — isolate knowledge bases per project using the
X-KB-Namespaceheader orKB_NAMESPACEenv varAnalytics — tracks MCP tool usage (searches, views, creates) in a separate SQLite database
Architecture
proxy (nginx :8765)
├── /api/ → backend (FastAPI :8000)
├── /mcp/ → mcp (FastMCP :8000, streamable-http)
└── / → frontend (nginx :80, React SPA)Module | Description |
| SQLite document store + |
| FastAPI CRUD, search, reindex, analytics, namespace endpoints |
| MCP tools (stdio, SSE, streamable-http transports) |
| Per-namespace KB instances with LRU caching |
| MCP event logging in a global |
| Vite + React + TypeScript, TanStack Router, Tailwind |
Related MCP server: KB-MCP Server
Quick Start
Production
npm run startRuns docker compose up --build -d. The app is available at http://localhost:8765.
npm run stop # docker compose down
npm run restart # down + up --build -dDevelopment (hot reload)
npm run devRuns docker compose -f docker-compose.dev.yml up --build. The app is available at http://localhost:8766.
Backend restarts on Python file changes (
--reload)Frontend uses the Vite dev server with full HMR
Uses a separate database at
.localdata/backend-dev/so dev never touches prod data
Persistent Storage
SQLite databases are stored on the host and are gitignored:
Path | Contents |
| Document store (one file per namespace) |
| MCP event log |
MCP Configuration
The MCP server is exposed at http://localhost:8765/mcp/ using the streamable-http transport.
Add a .mcp.json in the directory where you start Claude:
{
"mcpServers": {
"knowledge-base": {
"type": "http",
"url": "http://localhost:8765/mcp/",
"headers": {
"X-KB-Namespace": "my-project"
}
}
}
}Set X-KB-Namespace to any alphanumeric slug. Each unique namespace gets its own isolated database.
Available MCP Tools
Tool | Description |
| Fetch full document content |
| Semantic + lexical search with freshness decay |
| Add a new document |
| Update title and/or content |
| Remove a document |
| Confirm a document is still accurate (bumps freshness timestamp) |
| Find documents that may be outdated |
| Re-embed all documents (run after first deploy or model changes) |
Stdio fallback
For direct CLI invocation without the HTTP server:
{
"mcpServers": {
"knowledge-base": {
"type": "stdio",
"command": "docker",
"args": [
"compose",
"exec",
"-T",
"-e",
"KB_NAMESPACE=my-project",
"backend",
"python",
"-m",
"app.mcp_server"
]
}
}
}Reindexing
Run reindex_documents() via MCP tool, the Settings page, or curl after:
First deploy switching from the old hash embedder to
all-MiniLM-L6-v2Upgrading to a different embedding model
curl -X POST http://localhost:8765/api/reindex -H "X-Kb-Namespace: my-project"Normal create and update operations always auto-embed — no manual reindex needed.
Running Tests
cd backend
python -m pytest tests/ -vThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/andreehultgren/lore-db'
If you have feedback or need assistance with the MCP directory API, please join our Discord server