fojin — Buddhist Canon Tools
Server Details
Buddhist canon tools: search, passages, cross-canon parallels, dictionaries — all URN-cited.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- xr843/fojin
- GitHub Stars
- 327
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 8 tools
Each tool targets a distinct resource and action: corpus search, full-text reading, quote verification, dictionary lookup, entity lookup, URN resolution, commentaries, and parallels. Although lookup_dictionary, lookup_entity, and search_corpus all search, their objects are clearly different and the descriptions reinforce the boundaries.
Seven of the eight tools follow a clear verb_noun pattern (lookup_entity, read_passage, verify_quote, etc.) in snake_case. 'commentaries' is the one outlier: it is a noun only, while 'get_commentaries' would match the rest of the set.
Eight tools is well-scoped for a Buddhist canon research server. Each tool covers a meaningful capability without redundancy, and the count is neither thin nor bloated for the domain.
The tool surface covers the core scholarly workflow: discovering passages, reading full fascicles, verifying quotes, resolving citations, looking up terms and entities, and accessing commentary and parallel data. There are no obvious dead ends; the main limitation is a noted data-coverage caveat rather than a missing operational tool.
Available Tools
8 toolscommentariesAInspect
What the historical commentators said about a passage of Buddhist scripture.
Give a line of a sūtra and get back the classical commentaries that gloss
it — each with the commentator's own words, the work it comes from, a
quality tier, and a resolvable citation. This is the layer no other tool
exposes for the Chinese canon: CBETA marks up almost none of it, and the
alignment behind this was derived text by text.
Two things to read carefully rather than skim. `total` is how many
commentators the passage actually has — `truncated` says the list you got
is a sample. And coverage is partial: roughly half of what a commentator
wrote is not aligned, so an absent commentator means "not in the data",
never "he said nothing". When nothing matches, `available_sutras` tells
you which sūtras have data at all — do not read a miss as silence from the
tradition.
Inputs: quote (required), limit.
get_parallelsAInspect
Cross-canon parallel passages aligned to a fascicle.
fojin's alignment moat: given a Chinese fascicle, returns the aligned
Pali/Tibetan/Sanskrit parallels so you can compare how a passage is
rendered across traditions.
A fascicle returns parallels for the *whole* juan — often hundreds. To
narrow them to one passage, match the passage against `source_chunks[].text`
and keep the parallels whose `aligns_source_chunk` equals that chunk_index.
`urn` is filled for parallels that are fojin works; rows with
`source="mitra-parallel"` are inline Skt/Tib sentences with no fojin work to
cite, so they carry `original_preview` instead and stay `urn: null`.
Inputs: text_id (required), juan_num (required).
lookup_dictionaryBInspect
Look up a Buddhist term across fojin's dictionaries (748K+ entries).
Inputs: term (required), limit.
lookup_entityAInspect
Search fojin's knowledge graph for entities — people, places, works,
doctrinal terms — matching query.
Inputs: query (required), limit.
read_passageAInspect
Read the full content of one fascicle (卷) of a text, with its urn.
Use the `text_id`/`juan_num` from a search_corpus hit. Returns the actual
canonical text — quote from this, not from memory.
Inputs: text_id (required), juan_num (required).
resolve_urnAInspect
Resolve a fojin URN (e.g. fojin:cbeta/T0001.1) to a reader URL and confirm it exists in the corpus. Use to verify or dereference a citation.
Inputs: urn (required).
search_corpusAInspect
Semantic search across fojin's Buddhist corpus (10K+ texts, 30+ langs).
Returns the most relevant passages, each with a `urn`, title, snippet and
similarity score. `lang` optionally filters by language code
(lzh=Classical Chinese, pi=Pali, sa=Sanskrit, bo=Tibetan, en=English).
Inputs: query (required), lang, limit.
verify_quoteAInspect
Verify that a Buddhist-canon quote exists VERBATIM in the corpus.
Call this before presenting any quoted scripture to a reader: LLMs
routinely invent plausible-looking quotes. Returns `verbatim` (bool),
where it was found (`matches`, each with a resolvable `urn`), or the
closest near-miss window when it wasn't. `cite` optionally narrows the
search — a CBETA id ("T0374") or fojin URN ("fojin:cbeta/T0374.13") —
and `cite_matched` reports honestly whether the quote is where you
claimed (a hit in a different fascicle does NOT confirm your citation).
Quote must be ≥4 CJK chars after normalisation; Classical Chinese only.
Short quotes are answered but say less: a four-character phrase recurs
across the canon, so read `cite_matched` rather than `verbatim`, and check
`matches_capped` before treating the list as complete. Each match carries
an absolute `reader_url` — cite that, not a reconstructed third-party link.
Inputs: quote (required), cite, juan.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Search and read the Pāli Canon: Pāli root texts with Russian and English translations.
Search and read ~250k pages of Chinese Buddhist texts from Xianmi Library (xianmi.co).
CBETA MCP tools to search, browse and read Chinese Buddhist scripture, sutra, Tipitaka texts.
CBETA MCP tools to search, browse and read Chinese Buddhist scripture, sutra, Tipitaka texts.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for the full Pāli Tipiṭaka — ~444,000 segments at parity with SuttaCentral (Sutta + Vinaya + Abhidhamma). Hybrid search, full-sutta fetch with cross-references, segment-aligned translation comparison, and Pāli word lookup. Offered as Dhamma Dāna.1112MIT
- AlicenseAqualityBmaintenanceEnables searching and reading Tipitaka texts with Pali alongside translations, comparing translators, exploring parallels, looking up Pali words, and retrieving Access to Insight pages with source citations.321MIT
- AlicenseNot gradedqualityNot gradedmaintenanceProvides access to the Chinese Buddhist Electronic Text Association (CBETA) online library of over 100 million characters of Buddhist scripture. It enables users to search, browse catalogs, and retrieve content from major collections like the Taishō Tripiṭaka.-
- AlicenseNot gradedqualityCmaintenanceSemantic search and comparative retrieval over a multi-tradition corpus of sacred and foundational texts, exposed as an MCP server.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.