senza-knowledge-mcp
Click on "Deploy 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., "@senza-knowledge-mcp What's our documented process for rotating API keys? Include citations."
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.
senza-knowledge-mcp
Team domain knowledge base — MCP-first service built on Senza.
Coding agents (Claude Code, oh-my-pi, any MCP client) query your team's domain documents through MCP; a built-in Senza agent searches and synthesizes grounded, citation-backed answers. A lightweight admin web handles document ingestion and browsing.
How it works
coding agent (MCP client) ──MCP stdio──► senza-knowledge-mcp
├─ kb_ask ask a question → grounded answer w/ citations
├─ kb_search semantic search → source + snippet
├─ kb_get fetch full document (fast, no LLM)
└─ kb_list list knowledge base contents
(kb_ask / kb_search run an internal Senza agent
with the base knowledge plugin)
admin web settings page ──► ~/.senza-knowledge-mcp/config.json (shared config)
browser ──► admin web (FastAPI) upload PDF/text → parse → raw storeData model: an immutable raw layer (documents / documents+images, parsed with Docling; pluggable backend — swap in a cloud MinerU service later) + derived layers. Images are understood on use by a multimodal model, not at ingest time.
Related MCP server: mcp-rag-bridge
Install
Requires Python 3.12+.
git clone https://github.com/oh-my-harness/senza-knowledge-mcp.git
cd senza-knowledge-mcp
uv sync --extra dev # or: pip install -e . (runtime deps only)No provider configuration ships with the source — the source binds to no provider. Configure once, in either of two ways:
Admin web (recommended): start the admin web → open Settings → pick Provider (
openaioranthropic) → fill in API key / Base URL / Model → Save. Persisted to~/.senza-knowledge-mcp/config.json.Environment variables:
SENZA_KB_PROVIDER(openai|anthropic),SENZA_KB_API_KEY,SENZA_KB_BASE_URL,SENZA_KB_MODEL(all four required; env takes precedence over the config file).
kb_ask / kb_search need the LLM; kb_get / kb_list are pure data tools and
work without any configuration.
Quick start
1. Start the admin web (configuration + document ingestion):
python -m senza_knowledge_mcp.admin_app
# open http://127.0.0.1:8081 → Settings: fill API key / Base URL / Model → Save2. Ingest documents: admin web → Upload → pick a PDF or UTF-8 text/markdown file. The document is parsed and stored in the raw layer, ready to be searched.
3. Wire the MCP server into your coding agent (see next section) and start asking.
Wire it into your coding agent
oh-my-pi (.omp/mcp.json, project level):
{
"mcpServers": {
"kb": {
"type": "stdio",
"command": "/abs/path/to/senza-knowledge-mcp/.venv/bin/python",
"args": ["-m", "senza_knowledge_mcp.mcp_server"],
"env": { "SENZA_KB_RAW_DIR": "/abs/path/to/kb/raw" }
}
}
}Any other MCP client works the same way — the server speaks standard MCP over stdio
with four tools: kb_ask, kb_search, kb_get, kb_list.
Tools
Tool | Kind | What it does |
| smart, ~10s | internal agent searches + synthesizes a cited answer |
| smart | semantic search → source identification + snippets |
| fast, ms | full markdown of a document by |
| fast, ms | all documents in the knowledge base |
Fast tools read the immutable raw layer directly — no LLM involved, no timeouts. Smart tools run the internal Senza agent through whichever provider you configure (Anthropic or OpenAI-compatible).
Configuration
Env var | Required | Meaning |
| yes |
|
| yes | provider API key |
| yes | provider endpoint |
| yes | model id (e.g. |
| no (default | raw layer directory |
| no | comma-separated domain tags |
Milestones
✅ M0 scaffold · M1 ingest pipeline (Docling → raw layer) · M3 MCP service · M4 admin web
Planned: M5 relation layer (heartbeat agent) · M6 distilled knowledge pages + llm-wiki write-back · M7 cloud MinerU parser (swap-in via the parser abstraction) · M8 phase-2 shared knowledge base (single cloud instance, MCP over HTTP, multi-user permissions via the base
KnowledgeAccessControl)
License
MIT
Available Tools
4 toolskb_askA
Answer a question grounded in the domain knowledge base (uses an internal agent to search and synthesize; may take ~10s).
Inputs: question (required). Returns: result
kb_getB
Fetch the full markdown of a knowledge document by source_id or file name (fast, no LLM involved).
Inputs: doc (required). Returns: result
kb_listA
List all documents in the knowledge base (source_id, name, size, dates).
Inputs: no named parameters. Returns: result
kb_searchA
Search the knowledge base (semantic, via internal agent); returns matching source identification + snippets. Use kb_get to fetch full text.
Inputs: query (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
kb_list, kb_search, kb_get, and kb_ask each target a distinct user intent: catalog browsing, source retrieval, full-text fetching, and synthesized answering. The only close pair, kb_ask vs kb_search, is clearly disambiguated by their outputs: an answer versus source snippets.
All tools follow a uniform kb_<verb> pattern with simple, clear verbs. There are no mixed conventions or vague names.
Four tools is appropriate for a focused read-only knowledge base server. Each tool covers one core operation and none feel redundant or missing.
The read-side lifecycle is complete: list, search, get, and ask cover discovery through consumption. Write/management operations are absent, but they appear outside the server's intended purpose.
Maintenance
Related MCP Connectors
Search and manage your team's knowledge from MCP clients.
Ask your own documents and get answers that cite the source passage. Workspace knowledge bases over MCP for Cursor, Claude and any MCP client.
Team docs served to AI agents over MCP - search, Markdown reads, version pinning, read audit.
Knowledge base MCP for AI agents on iknow.dev. Search, read, and maintain via OAuth.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables MCP-compatible agents to query beliefs, search documents, and explore reasoning chains from expert-service knowledge bases.10MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query and manage a document knowledge base via MCP, with RAG-powered search and grounded answers with citations.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query a persistent LightRAG knowledge base through any MCP client, offering both ready-made answers with source links and raw context retrieval for custom response generation.MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to query a structured knowledge library for search, explanations, related concepts, learning paths, examples, and cross-domain references via MCP.Apache 2.0