wisdom-mcp
Imports original-language texts from Sefaria into the searchable corpus, including works such as Ecclesiastes, so passages can be retrieved with references.
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., "@wisdom-mcpSearch the Tao Te Ching for passages about anger and quote them with references."
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.
wisdom-mcp
An MCP server for agentic hybrid search over philosophical and spiritual texts, built on Kevin Owocki's Wisdom Context Window. The server only retrieves: your own model searches, reads, quotes and translates. See the design write-up.
Motivation
Ask a model what the Stoics or the Tao Te Ching say about anger and it will often paraphrase, or invent a plausible line with a plausible reference. For texts like these, the exact words and where they come from matter.
wisdom-mcp gives the model tools instead of answers. It searches a curated corpus with keywords and embeddings, then returns the original text with a precise reference. The model does the reasoning and translation, and quotes what it actually read. The corpus can grow without retraining anything, and every quote can be checked against its source.
Related MCP server: sefaria-api-mcp
Requirements
Node 24
pnpm 10
Setup
pnpm install
cp .env.example .env
pnpm build
pnpm startThe database is created at DATABASE_PATH on first boot, and migrations in migrations/ are applied in order.
Variable | Default | Purpose |
|
| HTTP port, bound to |
|
| Public origin; its host is allowed on |
|
| SQLite file |
|
| Downloaded texts used by the corpus import |
Corpus
pnpm corpus:importThis imports the 8 pilot works from the Wisdom Context Window, with their original-language texts. Downloads are cached in CORPUS_CACHE, so later runs work offline, and each run replaces the works it imports.
Work | Translation | Reference | Original |
Tao Te Ching | James Legge | chapter.para | Chinese Wikisource (王弼本) |
Analects | James Legge | book.chapter | Chinese Wikisource |
Dhammapada | F. Max Müller | verse | SuttaCentral |
Bhagavad Gita | Edwin Arnold | chapter | gita/gita dataset |
Enchiridion | Thomas Wentworth Higginson | section | Perseus |
Meditations | Meric Casaubon | book.section | Perseus, by book |
Sermon on the Mount | King James Version | chapter:verse | Perseus |
Ecclesiastes | King James Version | chapter:verse | Sefaria |
Every quotable passage has a reference and an original. Front matter, translators' notes, indexes and headings are kept but flagged is_apparatus.
Endpoints
POST /mcp: MCP over Streamable HTTPGET /health: liveness checkGET /docs: Swagger UI
Scripts
Script | What it does |
| Compile to |
| Run the compiled server |
| Import the pilot corpus |
| Build, then run the tests |
| ESLint |
| Prettier check |
| TypeScript without emitting |
Credits
Kevin Owocki, for the Wisdom Context Window: the corpus of texts, summaries and concept graph this server searches.
Chinese Wikisource, Perseus Digital Library, SuttaCentral, Sefaria and the gita/gita dataset, for the original-language texts.
sqlite-vec by Alex Garcia, for vector search inside SQLite.
The Model Context Protocol TypeScript SDK.
License
GPL-3.0
Contact
Julien Béranger (GitHub)
Element: @julienbrg:matrix.org
Farcaster: julien-
Telegram: @julienbrg
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only semantic search over Vedic scripture verses, commentaries, and recorded lectures.
Search your knowledge bases from any AI assistant using hybrid RAG.
Cited, versioned knowledge for agents: retrieve sourced passages and propose owner-approved fixes.
Search 15K rare pre-modern texts translated to English: philosophy, religion, science, literature.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to access and query the Sefaria digital library of Jewish texts through natural language or direct tool calls.388 npmMIT
- AlicenseBqualityCmaintenanceEnables AI agents to access and interact with the Sefaria database of Jewish texts, including retrieval, search, and related content.281MIT
- AlicenseNot gradedqualityCmaintenanceEnables hybrid document search (BM25 and dense) over a configurable corpus via MCP tools, returning passages and sources for AI agents to cite in answers.MIT
- AlicenseAqualityCmaintenanceProvides AI agents structured access to the Gospel Library — scriptures, General Conference talks, handbooks, manuals, and magazines — with local semantic search.414 npm6MIT