How It Works

PanchangaAPI exposes all 26 endpoints as MCP tools via Streamable HTTP transport.

The Model Context Protocol (MCP) allows AI agents to discover and use tools natively. PanchangaAPI implements the MCP Streamable HTTP transport at POST /mcp, supporting JSON-RPC 2.0 with session management. Agents can call tools/list to discover all available endpoints, then invoke them with tools/call.

POST https://api.moon-bot.cc/mcp Content-Type: application/json X-API-Key: your_api_key { "jsonrpc": "2.0", "method": "tools/list", "id": 1 }

Client Configuration

Copy-paste configs for popular MCP clients.

Claude Desktop

// ~/.claude/claude_desktop_config.json { "mcpServers": { "panchanga": { "command": "npx", "args": [ "-y", "@anthropic/mcp-remote", "https://api.moon-bot.cc/mcp" ] } } }

Cursor

// .cursor/mcp.json { "mcpServers": { "panchanga": { "command": "npx", "args": [ "-y", "@anthropic/mcp-remote", "https://api.moon-bot.cc/mcp" ] } } }

Direct HTTP (any client)

# Initialize session curl -X POST https://api.moon-bot.cc/mcp \ -H "Content-Type: application/json" \ -H "X-API-Key: your_api_key" \ -d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"my-agent","version":"1.0"}},"id":1}' # List all tools curl -X POST https://api.moon-bot.cc/mcp \ -H "Content-Type: application/json" \ -H "X-API-Key: your_api_key" \ -H "Mcp-Session-Id: SESSION_ID_FROM_INIT" \ -d '{"jsonrpc":"2.0","method":"tools/list","id":2}' # Call a tool curl -X POST https://api.moon-bot.cc/mcp \ -H "Content-Type: application/json" \ -H "X-API-Key: your_api_key" \ -H "Mcp-Session-Id: SESSION_ID_FROM_INIT" \ -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"chart.panchanga","arguments":{"datetime":"2026-03-16T00:00:00+05:30","latitude":28.6139,"longitude":77.209}},"id":3}'

Authentication & Billing

MCP uses the same API key as REST. Top up with NOWPayments or Telegram Stars when you need more credits.

01 Register Create API key
02 Initialize Start MCP session
03 Call Tools Send X-API-Key
04 Top Up NOWPayments / Stars
05 Continue Same key, more credits

Use NOWPayments for crypto checkout and @womanspirit_en_bot for Telegram Stars purchases.

register + initialize

Use this flow with any MCP client:

# 1. Register for an API key curl -X POST https://api.moon-bot.cc/register \ -H "Content-Type: application/json" \ -d '{"email":"[email protected]"}' # 2. Initialize MCP with X-API-Key curl -i -X POST https://api.moon-bot.cc/mcp \ -H "Content-Type: application/json" \ -H "X-API-Key: your_api_key" \ -d '{"jsonrpc":"2.0","method":"initialize","params":{},"id":1}' # 3. Buy more credits when needed NOWPayments: GET /checkout/{api_key}/{credits} Telegram Stars: https://t.me/womanspirit_en_bot?start=pay_{api_key}_{stars}

AI Agent Compatibility

Works with every major AI framework. Zero configuration.

Claude ChatGPT Gemini Cursor Coinbase AgentKit Smithery OpenClaw Any MCP Client