# fojin — Buddhist Canon Tools

> Buddhist canon tools: search, passages, cross-canon parallels, dictionaries — all URN-cited.

- name: app.fojin/fojin-mcp
- version: 0.4.0
- connection class: R0 (autonomous)
- trust: 92/100
- quality: 83/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/app.fojin%2Ffojin-mcp
- tools: https://api.protogrid.dev/v1/servers/app.fojin%2Ffojin-mcp/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "fojin-mcp": {
      "type": "http",
      "url": "https://mcp.fojin.ai/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 98
- freshness: 85
- provenance: 85
- drivers: +repository +dns-namespace +website +reachable +uptime-95% ~updated-71d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 83/100 (good)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list declares ttlMs 0, so clients re-fetch it on every use

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 71 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: get_parallels (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); verify_quote (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); lookup_entity (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 1,290 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 8, about 1,290 tokens to load them all
- tool set hash: ac3ed42ec17567510942561435f3f704
- badge: [![protogrid quality](https://protogrid.dev/badge/app.fojin/fojin-mcp.svg)](https://protogrid.dev/servers/app.fojin/fojin-mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://mcp.fojin.ai/mcp (streamable-http, auth none, reachable true, uptime30d 0.94736844)

## Packages

_none_

## Tools (8)

- `commentaries`: 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.
    
- `get_parallels`: 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`.
    
- `lookup_dictionary`: Look up a Buddhist term across fojin's dictionaries (748K+ entries).
- `lookup_entity`: Search fojin's knowledge graph for entities — people, places, works,
    doctrinal terms — matching `query`.
- `read_passage`: 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.
    
- `resolve_urn`: 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.
- `search_corpus`: 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).
    
- `verify_quote`: 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.
    
