TathaAstu Panchang
v0.2.0Hindu calendar: panchang, festival dates with the rule behind them, and muhurat for any place.
MCP server exposing Hindu calendar intelligence to AI agents — with the reasoning behind every answer. Built on @tathaastu/sdk. This package contains no HTTP, authentication, retry or error-mapping logic; a test asserts that, failing if anyone adds a fetch call or hardcodes an API URL here. Language models are confidently wrong about Hindu calendar dates. They interpolate from training data, and festival dates move every year and shift by location. Every tool description here explicitly tells the model not to recall these from memory.
Summary extracted from the README.
@tathaastu/mcp
MCP server exposing Hindu calendar intelligence to AI agents — with the reasoning behind every answer.
Built on @tathaastu/sdk. This package contains no HTTP,
authentication, retry or error-mapping logic; a test asserts that, failing if
anyone adds a fetch call or hardcodes an API URL here.
Why an agent needs this
Language models are confidently wrong about Hindu calendar dates. They interpolate from training data, and festival dates move every year and shift by location. Every tool description here explicitly tells the model not to recall these from memory.
explain_festival is the differentiator: it returns the rule applied, its
version and the confidence, so an agent can cite rather than assert.
Install
You need a TathaAstuAPI key. The Free plan includes 500 requests a month: sign up at https://tathaastuapi.com/dashboard.html.
No install is needed if your host runs npx. To install globally instead:
npm install -g @tathaastu/mcp
Register with a host
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"tathaastu": {
"command": "npx",
"args": ["-y", "@tathaastu/mcp"],
"env": { "TATHAASTU_API_KEY": "your-key" }
}
}
}
Claude Code:
claude mcp add tathaastu --env TATHAASTU_API_KEY=your-key -- npx -y @tathaastu/mcp
Listed in the official MCP Registry as com.tathaastuapi/mcp.
Any MCP host works — the server speaks line-delimited JSON-RPC 2.0 over stdio.
Tools
| Tool | Purpose |
|---|---|
get_panchang |
Tithi, nakshatra, yoga, karana with real intervals |
list_festivals |
Festivals on a date, with confidence and rule provenance |
explain_festival |
Why a festival falls on a date |
get_muhurat |
Auspicious and inauspicious windows |
search_festivals |
Find a festival by name |
search_locations |
Find any place worldwide by name: coordinates and time zone |
list_locations |
The 15 stored South Asian locations and their ids |
Seven tools, not 140. An agent handed the whole API chooses badly.
Design notes
Tool failures are results, not protocol errors. A 402 comes back as
isError: true with text explaining that an upgrade is required and not to
retry. If the host swallowed it as a transport error the model could not adapt.
Failure text is written for the model. "Request failed" tells it nothing; each message names the cause and the correct next action.
The client is created lazily, so the server still starts and lists its tools when no API key is configured. A host that cannot list tools shows the user nothing.
Coordinates are resolved, not hardcoded. /v1/muhurat/day takes lat/lon
rather than a location id, so the server resolves ids through /v1/locations
and caches them for the process. A hardcoded table would rot the moment a
location is added.
Environment
| Variable | Required | Purpose |
|---|---|---|
TATHAASTU_API_KEY |
yes | API key |
TATHAASTU_BASE_URL |
no | Override the API base URL |
Development
npm run build
npm test # 20 tests, no network