Dhamma.Gift MCP server
2026년 11월 14일 커밋SQLite 기반 전체 텍스트 검색을 통해 러시아어 및 영어 번역본으로 Pāli Canon 텍스트를 검색하고 읽을 수 있습니다.
다른 이름 dhammagift/dg-node, dg-node
- 스타
- 1
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 1.0.0
- 마지막 커밋
- 2026년 11월 14일
- 라이선스
- —
Dhamma.Gift MCP란?
Dhamma.Gift은(는) MCP server입니다. SQLite 기반 전체 텍스트 검색을 통해 러시아어 및 영어 번역본으로 Pāli Canon 텍스트를 검색하고 읽을 수 있습니다.
프로젝트 README에서 생성된 요약
Dhamma.Gift MCP server 정보
이 서버의 주요 기능은 영어 및 러시아어 번역본을 통해 Pāli Canon 텍스트에 접근하고 검색하는 것입니다. SuttaCentral Bilara 및 DhammaGift 번역을 사용하여 성전을 읽을 수 있는 특화된 백엔드를 제공합니다. 개발자와 연구자는 SQLite 기반의 FTS5 엔진을 활용하여 경전 전체에 대한 전체 텍스트 검색을 수행할 수 있으며, /dn22 또는 /dn22:12.1과 같은 깔끔한 URL 구조를 통해 특정 세그먼트나 전체 sutta를 가져올 수 있습니다.
시스템은 디스크에서 데이터를 직접 읽어 로컬에서 작동하며, Bilara 데이터로부터 dg.db SQLite 데이터베이스를 생성하기 위한 빌드 단계가 필요합니다. 오프라인 미러를 위한 자동 경로 해석을 통해 Windows, Termux 및 로컬 서버를 포함한 다양한 환경을 지원합니다. 레거시 Express 기반 서비스가 포함되어 있으나, 현대적인 프로덕션 환경은 Fastify를 사용하여 검색 요청, 리더 라우트 및 정적 자산을 처리합니다.
사용자는 학습 목적에 맞춰 Pāli, 러시아어, 영어 콘텐츠 모드 간 전환이 가능합니다. 서버는 세그먼트를 인식하는 링크와 스크롤 대상을 관리하여, 리더 인터페이스 내에서 특정 구절이나 섹션에 쉽게 도달할 수 있도록 합니다.
활용 사례
- 1Pāli Canon 검색러시아어 또는 영어 번역본을 사용하여 경전 전체에서 특정 용어나 이름을 찾습니다.
- 2특정 sutta 세그먼트 읽기깔끔한 URL 라우팅을 사용하여 sutta 내의 특정 구절이나 세그먼트로 직접 이동합니다.
- 3번역 언어 전환원본 Pāli 텍스트와 러시아어 또는 영어 번역본 보기 사이를 전환합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Dhamma.Gift MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 Dhamma.Gift MCP 설치
$ claude mcp add --transport http dg-node https://api.dhamma.gift/mcpCursor에 Dhamma.Gift MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"dg-node": {
"url": "https://api.dhamma.gift/mcp"
}
}
}VS Code에 Dhamma.Gift MCP 설치
.vscode/mcp.json
{
"servers": {
"dg-node": {
"type": "http",
"url": "https://api.dhamma.gift/mcp"
}
}
}VS Code CLI에 Dhamma.Gift MCP 설치
$ code --add-mcp '{"name":"dg-node","type":"http","url":"https://api.dhamma.gift/mcp"}'Codex에 Dhamma.Gift MCP 설치
$ codex mcp add dg-node --url https://api.dhamma.gift/mcpCodex config.toml에 Dhamma.Gift MCP 설치
~/.codex/config.toml
[mcp_servers.dg-node] url = "https://api.dhamma.gift/mcp"
Gemini CLI에 Dhamma.Gift MCP 설치
$ gemini mcp add -s user --transport http dg-node https://api.dhamma.gift/mcpGemini settings.json에 Dhamma.Gift MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"dg-node": {
"url": "https://api.dhamma.gift/mcp",
"type": "http"
}
}
}자동 검사
2026년 11월 15일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능dhammagift/dg-node is public and reachablegithub.com/dhammagift/dg-node ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)No license결함 발견
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-13github.com/dhammagift/dg-node ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답initialize answered with protocol 2025-06-18 in 397 ms통과
README
GitHub에서 보기dg-node
Node.js backend for searching and reading Pāli Canon texts using SuttaCentral Bilara and DhammaGift translations.
This project powers the search index, reader endpoints, static assets, and compatibility layer for the legacy Dhamma.Gift stack. The production server runs on Fastify; the older Express-based implementation is kept only for legacy support.
Architecture and development rules: CLAUDE.md
Features
- Search across the Pāli Canon with SQLite/FTS5
- Reader routes for clean URLs such as
/dn22and/dn22:12.1 - Segment-aware links and scroll targets
- Support for offline mirror data and environment-based path resolution
- Legacy compatibility with older PHP/Apache frontends
Quick start
git pull
npm install
npm run build-search-db # build dg.db (SQLite/FTS5) from fresh Bilara data
npm start # run the production server (dg-fastify.js), port 3000
build-search-db should be rerun whenever source texts or translations change on disk. The server reads data directly from disk and rebuilds the search index as needed.
Data paths such as SC_BILARA, DG_OFFLINE, and offline mirrors are resolved automatically based on the runtime environment (Termux, Windows development, local server, etc.).
unused/dg-light.js and unused/dblight.js (npm run start:express) are legacy Express + grep services and are not used in production. See CLAUDE.md for details.
Deployment checks
curl "http://localhost:3000/search?q=kacchapa&scope=dhamma&langs=ru,en"
curl -I "http://localhost:3000/assets/js/datatables/datatables.min.js" # 200 from public/overrides/js/datatables, not from the legacy repo
curl -I "http://localhost:3000/dn22" # reader via clean URL
curl -I "http://localhost:3000/dn22:10.5" # segment link (scroll to 10.5)
Manual browser checks:
/nodejs/res/?q=kacchapa&scope=dhamma— search, DataTables, export/dn22— full-text reader- Pāli / Russian toggle (three modes: Pāli + translation → Pāli only → translation only) — should actually hide/show content correctly
/?q=dn22#12.1(legacy format) — should continue to work alongside/dn22:12.1
Deployment notes for Apache/PHP
If the public Dhamma.Gift site is currently hosted by Apache/PHP while Node runs as a separate backend proxied only to /search, note the following:
- search requests may route to the Node backend
- static files and reader routes may still be served by Apache/PHP
- root-domain routing can differ from the local development environment
dg-fastifyis the modern backend, while legacy PHP pages remain in parallel for compatibility
Project structure
dg-fastify.js — production server (Fastify + SQLite/FTS5, dg.db): /search, /api/text/:suttaId,
static files (search/, reader/, siteroot/assets/), offline mirrors,
clean URLs (/dn22, /dn22:12.1)
unused/dg-light.js — legacy Express + grep server, not used in production (see CLAUDE.md)
unused/dblight.js — build script for dg-light.js → dg_db_light.json (legacy, not needed with dg.db)
search/ — search page (DataTables); legacy URL remains /nodejs/res/... (see CLAUDE.md)
reader/ — reader frontend (reader-template.html + megareader.js)
configs/ — project JSON configs (openapi, reader/*, search/*), see CLAUDE.md
docs/ — project documentation and compatibility notes (SPA plans, backward compatibility)
siteroot/ — root-site publication: assets/ (legacy assets), 4nt/config/login/,
memo/read (legacy tools), see CLAUDE.md
License
See the repository license and project-specific notes in the root of the project.
Dhamma.Gift MCP 질문
Dhamma.Gift MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --transport http dg-node https://api.dhamma.gift/mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Dhamma.Gift MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
검색 데이터베이스는 어떻게 구축하나요?
'npm run build-search-db' 명령어를 실행하여 최신 Bilara 데이터로부터 SQLite/FTS5 검색 인덱스를 구축할 수 있습니다.
서버에서 특정 세그먼트 링크를 지원하나요?
네, 서버는 /dn22:12.1과 같이 특정 세그먼트를 위한 깔끔한 URL을 지원하여 특정 위치로 스크롤할 수 있습니다.