local-knowledge-base
Allows reading data from a configured Google Sheets spreadsheet (read-only) for ingestion into the knowledge base.
Allows reading emails from a specified Zoho Mail folder using read-only scopes for ingestion into the knowledge base.
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., "@local-knowledge-baseWhat is our response process for customer complaints?"
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.
Local-first Knowledge Base
A private, local-first evidence search system for TXT, CSV, Google Sheets, Zoho Mail and MBOX sources. It normalizes source documents into SQLite FTS5 and exposes cited results through a local web UI, CLI and MCP server.
The runtime does not call a paid LLM API. It returns evidence with source links instead of generating unsupported answers.
Features
SQLite FTS5 index with rare-term scoring, character similarity, recency and reciprocal-rank fusion;
idempotent TXT, CSV and Google Sheets ingestion;
Google Sheets connector restricted to
spreadsheets.readonly, one configured spreadsheet and configured sheet IDs;GET-only Zoho Mail connector with exact account and folder matching;
local web UI bound to loopback only;
MCP tools for cited retrieval and source status;
no-answer gate for weak or unrelated matches;
no model API keys or token-based LLM costs.
Related MCP server: Paper Memory MCP Lite
Quick start
Requirements: Python 3.11+ and Node.js only for the JavaScript syntax check.
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
cp data/lukasz_knowledge_base/config.example.json \
data/lukasz_knowledge_base/config.json
cp data/lukasz_knowledge_base/internal_context.example.txt \
data/lukasz_knowledge_base/internal_context.txt
python execution/lukasz_knowledge_base.py init
python execution/lukasz_knowledge_base.py ingest-txt \
data/lukasz_knowledge_base/internal_context.txt
python execution/lukasz_knowledge_base.py serveOpen http://127.0.0.1:8765.
The server refuses to bind to a public interface because the MVP has no remote authentication.
Google Sheets
Create a dedicated Google service account.
Share only the required spreadsheet with that identity as Viewer.
Save its credential locally as
service_account.json. This filename is ignored by Git.Set the spreadsheet URL and allowed
sheet_gidsin the privateconfig.json.Run:
python execution/lukasz_knowledge_base.py sync-sheetThe connector constructs credentials with only:
https://www.googleapis.com/auth/spreadsheets.readonlyIt uses spreadsheet metadata and value reads; it contains no Sheets write operation.
Zoho Mail
Create a dedicated folder such as Knowledge Base and a dedicated OAuth grant with read scopes only:
ZohoMail.accounts.READ
ZohoMail.folders.READ
ZohoMail.messages.READProvide credentials through local LOCAL_KB_ZOHO_* environment variables or an ignored token file, then run:
python execution/lukasz_knowledge_base.py sync-zohoThe default configuration blocks Inbox. Email source text is marked as untrusted evidence.
Search
python execution/lukasz_knowledge_base.py status
python execution/lukasz_knowledge_base.py search "What is our response process?"
python execution/lukasz_knowledge_base.py search "What is the offer?" --source internal_txtEach result includes a snippet, source type, metadata, score and source URL. When the lexical evidence is too weak, the result list is empty.
MCP
Example MCP client entry:
{
"mcpServers": {
"local-knowledge-base": {
"command": "python",
"args": ["/absolute/path/execution/lukasz_knowledge_base_mcp.py"],
"env": {
"LOCAL_KB_CONFIG": "/absolute/path/data/lukasz_knowledge_base/config.json"
}
}
}
}Available tools:
search_knowledgelist_knowledge_sourcesknowledge_base_status
Architecture
TXT / CSV / Google Sheets / Zoho / MBOX
|
read-only source connectors
|
normalized documents + provenance
|
SQLite FTS5 + hybrid lexical ranking
|
cited evidence + no-answer gate
|
CLI / Web / MCPSecret safety
Never commit private config.json, .env, service-account JSON, OAuth tokens, MBOX exports, internal context or generated databases. The included .gitignore excludes these files, but secret scanning and credential rotation remain the operator's responsibility.
Run the same checks used before publication:
python -m pip install -r requirements-dev.txt
python -m pytest -q
node --check execution/lukasz_knowledge_base_web/app.js
gitleaks detect --no-git --source . --redactLicense
MIT
This 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.
Related MCP Servers
- Alicense-qualityAmaintenanceThe open retrieval layer for AI agents. Index your entire project — code, docs, legal, research, data — and serve surgical context via MCP. FTS5 full-text search, optional semantic search (FastEmbed/ONNX), 10 built-in parsers, incremental auto-sync.21MIT
- Alicense-qualityBmaintenanceLocal-first MCP server for indexing and searching research materials (papers, notes, logs, READMEs) using SQLite FTS, with tools for memory management and evidence retrieval.MIT
- Alicense-qualityBmaintenanceA local-first MCP server for building and querying PDF knowledge bases. It indexes PDFs into DuckDB and exposes evidence-grounded retrieval tools to separate corpus-backed answers from independent reasoning.72MIT
- AlicenseAqualityBmaintenanceProvides fast, token-efficient search over coding agent documentation (e.g., Claude Code, Cursor) using local SQLite FTS5 indexing, with tools for searching snippets, reading pages, and grepping markdown.5MIT
Related MCP Connectors
Real-time fact-check, citation verification, and source-freshness for AI agents.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Citable retrieval across papers, books, patents, Wikipedia, and live social sources.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/lukaszburyan/lukasz-knowledge-base'
If you have feedback or need assistance with the MCP directory API, please join our Discord server