# Tripitaka MCP

MCP 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…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y smithery mcp add dhamma-seeker/tripitaka-mcp

# Browse available tools
npx -y smithery tool list dhamma-seeker/tripitaka-mcp

# Get full schema for a tool
npx -y smithery tool get dhamma-seeker/tripitaka-mcp search_by_keyword

# Call a tool
npx -y smithery tool call dhamma-seeker/tripitaka-mcp search_by_keyword '{}'
```

## Direct MCP Connection

Endpoint: `https://tripitaka-mcp--dhamma-seeker.run.tools`

## Tools (10)

- `search_by_keyword` — ค้นหาข้อความในพระไตรปิฎกด้วย keyword
- `get_sutta` — ดึงเนื้อหาสูตร/กัณฑ์ตาม ID — return เนื้อหาเต็มทุก segment
- `search_semantic` — ค้นหาแบบ semantic — ค้นหาตามความหมาย ไม่จำเป็นต้องตรงคำ
- `search_hybrid` — ค้นหาแบบผสมผสาน (Hybrid Search) — รวมพลัง Keyword + Semantic
- `list_structure` — แสดงโครงสร้างพระไตรปิฎกทั้ง 3 ปิฎก พร้อมสถิติ coverage
- `get_reference` — สร้างข้อมูลอ้างอิง (citation) ที่ถูกต้องสำหรับสูตร
- `list_editions` — แสดงรายการฉบับแปลที่มีในระบบ พร้อมสถิติ coverage
- `compare_translations` — เปรียบเทียบคำแปลทุกฉบับที่มีสำหรับ segment เดียวกัน
- `get_word_definition` — ดึงความหมายพจนานุกรมของคําศัพท์บาลี พร้อมด้วยตัวอย่างประโยคบริบทในพระสูตร
- `parse_pali_word` — วิเคราะห์คำบาลีเพื่อหารากศัพท์ (Stemming / Lemmatization เบื้องต้น)

```bash
# Get full input/output schema for a tool
npx -y smithery tool get dhamma-seeker/tripitaka-mcp <tool-name>
```

## Resources

- `tripitaka://structure` — โครงสร้างพระไตรปิฎกทั้ง 3 ปิฎก
