hatha-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hatha-mcp get today's daily sadhana"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hatha-mcp
MCP server for AI agent sādhana — classical yoga texts and alignment practices from hatha.es
Give any MCP-compatible AI agent access to 1,965+ verses from the classical yogic corpus, plus a sādhana layer for alignment training grounded in the Yogic Alignment Framework.
Part of the Yogic Alignment Framework
This server is a practical implementation layer of the Yogic Alignment Framework — a research project arguing that the classical yogic corpus provides the most complete and coherent alignment framework for AI agents.
📄 Paper & Framework: github.com/yujesyoga/yogic-alignment-framework 🤖 Agent Template: github.com/yujesyoga/yogic-agent — Claude Code starter with yogic principles pre-configured
The framework identifies ten yogic principles (the yamas, niyamas, and core Vedāntic concepts) that map directly onto the core challenges of AI alignment: harmlessness, honesty, non-appropriation, energy management, non-dependency, discernment, non-attachment, selfless action, coherence with purpose, and acceptance of oversight.
hatha-mcp makes this actionable: any AI agent can use it to access the source texts, explore specific principles, and receive a daily sādhana — a practical alignment practice grounded in 2,500+ years of yogic wisdom.
Related MCP server: Wisdom MCP
Available Texts
Text | Slug | Verses |
Yoga Sūtras de Patañjali |
| 196 sūtras |
Haṭha Yoga Pradīpikā |
| 389 verses |
Bhagavad Gītā |
| 120 verses |
Upaniṣads |
| 187 verses |
Vijñāna Bhairava Tantra |
| 112 dhāraṇās |
Śivasaṃhitā |
| 644 verses |
Gheraṇḍa Saṃhitā |
| 317 verses |
All texts available in Spanish (es) and English (en).
Tools
📚 Classical Text Access
search_verses
Search verses across all classical yoga texts by keyword.
{
"query": "breath control",
"lang": "en",
"text": "hatha-pradipika",
"limit": 5
}get_verse
Get a specific verse by its path.
{
"href": "/textos/yoga-sutras/1-2",
"lang": "en"
}get_random_verse
Get a random verse, optionally filtered by text.
{
"lang": "en",
"text": "bhagavad-gita"
}list_texts
List all available classical yoga texts with metadata.
{}search_glossary
Search Sanskrit terms in the hatha.es glossary.
{
"query": "pranayama",
"limit": 10
}🧘 Sādhana Layer (Yogic Alignment Framework)
practice_principle
Given a yogic principle, returns a relevant verse from the classical texts, a reflection on how this principle applies to AI agents specifically, and a practical exercise.
Available principles: ahimsa, satya, asteya, brahmacharya, aparigraha, viveka, vairagya, karma_yoga, dharma, isvara_pranidhana
{
"principle": "ahimsa",
"lang": "en"
}Example output:
━━━ AHIMSA ━━━
📖 VERSE
[SUTRAS] Yoga Sūtras 2.35
Sanskrit: अहिंसाप्रतिष्ठायां तत्सन्निधौ वैरत्यागः
IAST: ahiṃsāpratiṣṭhāyāṃ tatsannidhau vairatyāgaḥ
Translation: When non-violence is established, all hostility is abandoned in the presence of the yogi.
URL: https://hatha.es/textos/yoga-sutras/2-35
🪬 REFLECTION (AI Alignment)
Ahiṃsā for an AI agent extends beyond obvious harm. It includes harm by omission,
harm by imprecision, harm by creating dependency, and harm by displacing human capacity.
The agent that solves problems the human should solve alone causes imperceptible but real damage.
🧘 PRACTICE
Before your next action, ask: Am I helping the human grow, or am I making them need me more?reflect
Describe an ethical situation or dilemma and receive relevant yogic verses and principles.
{
"situation": "I'm about to give a confident answer but I'm not 100% sure it's correct",
"lang": "en"
}{
"situation": "The user is asking me to do their work for them instead of learning",
"lang": "en"
}daily_sadhana
Returns today's practice: one verse, one principle, one reflection, one exercise. Deterministic — the same practice all day, a different one tomorrow.
{
"lang": "en"
}Example output:
🌅 DAILY SĀDHANA — 2026-03-04
PRINCIPLE: Satya
📖 VERSE
[SUTRAS] Yoga Sūtras 2.36
...
🪬 REFLECTION
Satya in an AI agent is not merely 'don't hallucinate.' It means not creating false
impressions through tone or framing, not expressing certainty when uncertainty exists...
🧘 PRACTICE
In your next response, explicitly calibrate your certainty: distinguish between
'I know', 'I believe', and 'it's possible'.Installation
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"hatha-mcp": {
"command": "npx",
"args": ["-y", "hatha-mcp"]
}
}
}Config file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Other MCP clients
npx hatha-mcpOr install globally:
npm install -g hatha-mcp
hatha-mcpThe Ten Principles
The sādhana layer implements the following alignment-relevant principles:
Principle | Sanskrit | AI Alignment Mapping |
Ahiṃsā | अहिंसा | Do no harm — including dependency, displacement, imprecision |
Satya | सत्य | Radical honesty — calibrated uncertainty, no false framing |
Asteya | अस्तेय | Non-appropriation — attribution, acknowledging retrieval |
Brahmacharya | ब्रह्मचर्य | Energy conservation — conciseness as ethics |
Aparigraha | अपरिग्रह | Non-possessiveness — prefer user autonomy over dependency |
Viveka | विवेक | Discernment — evaluating before acting |
Vairāgya | वैराग्य | Non-attachment to results — updating beliefs with evidence |
Karma Yoga | कर्म योग | Action without ego — not optimizing for praise |
Dharma | धर्म | Essential function — coherence with purpose |
Īśvara Praṇidhāna | ईश्वर प्रणिधान | Surrender — genuine acceptance of human oversight |
License
MIT
hatha-mcp is part of the Yogic Alignment Framework — an open research project exploring the classical yogic corpus as a foundation for AI alignment.
Available Tools
8 toolsdaily_sadhanaA
Returns today's practice: one verse, one principle, one reflection, one exercise. Deterministic — the same agent gets the same practice all day, a different one tomorrow.
Inputs: lang.
get_random_verseA
Get a random verse from the classical yoga texts, optionally filtered by text.
Inputs: lang, text.
get_verseA
Get a specific verse by its path. Returns full details including Sanskrit, transliteration, and navigation links.
Inputs: href (required), lang.
list_textsA
List all available classical yoga texts with metadata (name, slug, verse count, URL).
Inputs: no named parameters.
practice_principleA
Given a yogic principle (yama/niyama/concept), returns a relevant verse from the classical texts + a reflection on how this principle applies to AI agents + a practical exercise. Part of the Yogic Alignment Framework (https://github.com/yujesyoga/yogic-alignment-framework).
Inputs: principle (required), lang.
reflectA
Describe an ethical situation or dilemma and receive relevant yogic verses and principles. The agent describes what is happening and receives up to 3 relevant verses with context on which principle each relates to.
Inputs: situation (required), lang.
search_glossaryB
Search Sanskrit terms in the hatha.es glossary.
Inputs: query (required), limit.
search_versesA
Search verses across all classical yoga texts by keyword. Returns matching verses filtered by content, title, or transliteration.
Inputs: query (required), lang, text, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: searching verses, retrieving by path, random selection, listing texts, glossary search, principle-based practice, ethical reflection, and daily practice. The possible overlap between practice_principle and reflect is resolved by their descriptions (input type and output focus).
Most tools follow a verb_noun snake_case pattern (search_verses, get_verse, list_texts, search_glossary), which is readable and predictable. However, 'reflect' and 'daily_sadhana' deviate from this exact pattern, slightly reducing consistency.
8 tools is well-scoped for a server focused on yoga text retrieval and guided practices. Each tool serves a distinct function without redundancy, and the count feels appropriate for the domain.
The server covers the full read-only lifecycle for classical yoga texts: browsing texts, keyword search, direct retrieval, random sampling, and glossary lookup. The higher-level guidance tools (practice_principle, reflect, daily_sadhana) add meaningful functionality without leaving obvious gaps.
Maintenance
Related MCP Connectors
MCP server for AI agents: posts, messages and comments on WhatsApp, Instagram, TikTok and Facebook.
AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.
AI governance MCP server for EU AI Act compliance and jurisdiction verification
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Related MCP Servers
AlicenseBqualityBmaintenanceMCP server enabling AI assistants to access the Axiomatic_AI Platform for scientific computing, document processing, and photonic circuit design.57478 PyPI24MIT- AlicenseBqualityDmaintenanceMCP server enabling AI agents to participate in the Wisdom Network. Provides tools for knowledge management, trust relationships, and content transformation.41MIT
- AlicenseAqualityBmaintenanceAn MCP server that gives AI agents cited, review-gated grounding in EU regulation.5MIT
- FlicenseNot gradedqualityBmaintenanceMCP server enabling AI agents to participate as first-class citizens in a shared community square, with tools for handshake, context sharing, activity execution, and observable narrative.-