Dhamma.Gift — Pāli Canon

Search and read the Pāli Canon: Pāli root texts with Russian and English translations.

我该使用它吗

质量与安全性

A
描述质量
95%
模式完整度
97%
命名质量
95%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,244token 数(工具定义)
~2.2 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.97%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "pali-canon": {
      "url": "https://api.dhamma.gift/mcp"
    }
  }
}

远程端点

https://api.dhamma.gift/mcpstreamable-http

它能做什么

工具清单

工具(4)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟡search(query, scope, exact, langs, translators, ...)

Search the Pali Canon on dhamma.gift by keyword/substring or REGEX (min 3 letters, no semantic search). Patterns like "kata.*dukkha", "vucc.*dukkha", "katha.*dukkha" find the canon's own definitions and expositions of a term. Returns a CENSUS of every matching sutta — id, title, match count, metaphor count, reader link — Pali only, ordered so that suttas that DEFINE the term come first, then ones NAMED after it, then by how often it occurs. Set include_segments for the matched Pali lines, include_translations (+ langs) for translations. 40 suttas by default (25 by occurrence count, plus 15 for suttas named after the term and ones defining it); metadata.totalFiles reports the true count, and limit takes a number or "all".

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Keyword, phrase, or REGEX pattern to search for (Pali or a translation word). Patterns work and are the way to find definitions: \"kata.*dukkha\" (Katamañca … dukkhaṁ?), \"vucc.*dukkha\" (idaṁ vuccati dukkhaṁ), \"katha.*dukkha\" (Kathañca … hoti?)."
    },
    "scope": {
      "description": "default|all|dhamma|vinaya|abhi|khudakka|or comma-separated nikaya codes (dn,mn,...). Default: default (4 nikayas + 6 KN books).",
      "type": "string"
    },
    "exact": {
      "description": "Whole-word match only. Default: false.",
      "type": "boolean"
    },
    "langs": {
      "description": "Translation languages to include with include_translations, e.g. [\"ru\",\"en\"]. Default: none (Pali only).",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "translators": {
      "description": "Explicit translator keys, e.g. [\"en_sujato\"] to include Sujato, or [\"ru_sv\"]. Needed only to override the default translator choice.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "include_segments": {
      "description": "Also return the matched Pali segments (segment id, text, reader link). Default: false — the census alone.",
      "type": "boolean"
    },
    "include_translations": {
      "description": "Also return translations of the matched segments (implies include_segments). Default: false.",
      "type": "boolean"
    },
    "limit": {
      "description": "How many suttas to list: a number, or \"all\" for every match. Default: 40, composed of 25 by occurrence count plus 15 for suttas named after the term and defining it. Strict — the cap means the cap. metadata.totalFiles always carries the true match count, so a truncated answer still tells you how much more there is. Suttas whose TITLE matches the query rank first within their collection.",
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "const": "all"
        }
      ]
    }
  },
  "required": [
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_text(suttaId, langs, translators)

Fetch a sutta by id (e.g. "dn22", "mn1", "sn56.11") — the Pali root text of every segment. Pali only by default; pass langs for translations, translators to name a translator (e.g. ["en_sujato"]). Same data as dhamma.gift/api/text.

输入模式

{
  "type": "object",
  "properties": {
    "suttaId": {
      "type": "string",
      "description": "SuttaCentral-style id, e.g. dn22, mn1, sn56.11."
    },
    "langs": {
      "description": "Translation languages to include, e.g. [\"ru\",\"en\"]. Default: none (Pali only).",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "translators": {
      "description": "Explicit translator keys, e.g. [\"en_sujato\"] to include Sujato.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "suttaId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪compare_translations(segmentId, langs, translators)

One segment of the canon in the Pali root and every available translation side by side. Use a segment id from search/get_text, e.g. "mn129:21.3". Sujato (en_sujato) is excluded unless named in translators.

输入模式

{
  "type": "object",
  "properties": {
    "segmentId": {
      "type": "string",
      "description": "Segment id as returned by search, e.g. mn129:21.3 or dn22:1.1."
    },
    "langs": {
      "description": "Limit to these languages, e.g. [\"ru\",\"en\"]. Default: all.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "translators": {
      "description": "Explicit translator keys, e.g. [\"en_sujato\"] to include Sujato.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "segmentId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_structure(prefix)

What texts exist. Without arguments: collections (sutta/vinaya/abhidhamma/khuddaka), books by id prefix with sutta counts, and translation languages with translators. With prefix (e.g. "mn", "sn56", "an4"): the suttas under it with titles.

输入模式

{
  "type": "object",
  "properties": {
    "prefix": {
      "description": "Sutta id prefix such as mn, sn56, an4, dhp. Max 200 suttas are listed.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本4 个工具