MCP for AI agents
Let your AI assistant compute charts, or write and check code for your app.
- Built-in server:
https://api.bestastroapi.in/mcp - Model Context Protocol, version
2025-06-18 - Streamable HTTP, JSON-RPC 2.0
Authentication
- Use the same API key as for
/v1, inx-api-keyorAuthorization: Bearer. - Each tool call counts as one API call.
- The muhurta finder counts by the days it searches.
- Create a separate key for agents, so you can revoke it without touching your app.
- Usage is counted per account, across all keys.
Client setup
- Replace
YOUR_KEYwith a key from the dashboard. - The dashboard's MCP page fills it in for you.
Claude Desktop
Settings → Developer → Edit config (claude_desktop_config.json). Uses the mcp-remote bridge for HTTP servers; needs Node.js.
claude_desktop_config.json
{
"mcpServers": {
"bestastroapi": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.bestastroapi.in/mcp",
"--header",
"x-api-key:${BESTASTRO_KEY}"
],
"env": {
"BESTASTRO_KEY": "YOUR_API_KEY"
}
}
}
}Cursor, Windsurf and other clients with remote MCP support
Cursor: ~/.cursor/mcp.json or .cursor/mcp.json in your project.
mcp.json
{
"mcpServers": {
"bestastroapi": {
"url": "https://api.bestastroapi.in/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"bestastroapi": {
"type": "http",
"url": "https://api.bestastroapi.in/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}Claude Code
terminal
claude mcp add --transport http bestastroapi https://api.bestastroapi.in/mcp \
--header "x-api-key: YOUR_API_KEY"Check it works
terminal
curl -X POST https://api.bestastroapi.in/mcp \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Tools
One tool per calculation endpoint, plus three integration helpers:
list_endpoints: every REST endpoint with method, path and purposeintegration_snippet: ready-to-paste code for an endpoint (curl, JavaScript, Python)migration_guide: rollout steps to switch from AstrologyAPI.com, VedicAstroAPI or Prokerala
chart_planetschart_houseschart_divisionalchart_vargaschart_imagekundlidasha_vimshottaridasha_currentpanchangpanchang_timingsmatch_ashtakootdoshatransits_nowashtakavargajaiminikpupagrahatarabalamuhurta_findhoroscope_dailyyogasshadbalaremedies_gemplace_searchplace_nearesttimezonelist_endpointsintegration_snippetmigration_guideExample prompts
- “Make the kundli for 18 May 2004, 10:30, New Delhi and summarise the current dasha.”
- “Find griha pravesh muhurtas in Pune for December 2026.”
- “Add a daily horoscope endpoint to my Express app using BestAstroAPI.”