AstrologyAPI

Use access token to call astrology api.

Learn More

AstrologyAPI MCP Server

Professional astrology for AI

The AstrologyAPI MCP Server enables AI assistants like Claude, ChatGPT, and Cursor to perform comprehensive astrological analysis through the Model Context Protocol. Access 109 specialized tools covering both Vedic (Jyotish) and Western astrology systems.

{ "mcpServers": { "astrology": { "url": "https://mcp.astrologyapi.com/mcp", "headers": { "x-astrologyapi-key": "ak-82f7******************************6998" } } } }

Examples

import requests import json MCP_URL = "https://mcp.astrologyapi.com/mcp" HEADERS = { "Content-Type": "application/json", "x-astrologyapi-key": "ak-82f7******************************6998" } def call_tool(tool_name, arguments): payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": tool_name, "arguments": arguments } } response = requests.post(MCP_URL, headers=HEADERS, json=payload) return response.json() # Example: Get birth details result = call_tool("birth_details", { "day": 1, "month": 11, "year": 1976, "hour": 19, "min": 45, "lat": 19.17, "lon": 73.7, "tzone": 5.5, "language": "en" }) print(json.dumps(result, indent=2))