AstrologyAPI MCP Server
Professional astrology for AIThe 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))Related guides
For the architecture behind MCP — why the language model does the words and the API does the math — read Ground an LLM on computed charts. You don't need a subscription to mint an MCP token: a wallet access token works as the source credential — see Access tokens vs. User ID and API key.