Skip to content
AstroWay/api v2.19.0 · docs
all systems operational
UA EN

AI Agents & MCP

Building an AI agent that needs real astrology calculations instead of hallucinations? AstroWay plugs into Claude (Anthropic), ChatGPT-4 (OpenAI), Llama 3.3 (Groq), DeepSeek, Google Gemini, Mistral — via MCP, llms.txt, or direct HTTP. Two integration paths: MCP server (zero-code for Claude Desktop, Cursor IDE, Windsurf, VS Code llm CLI, and any MCP-compatible client — including GPT with MCP via OpenAI Realtime API) or HTTP API (for any agent framework — LangChain, LlamaIndex, AutoGen, CrewAI).

Model Context Protocol (MCP) is an open standard for connecting tools to AI models. The AstroWay MCP server provides 25 tools for calculations and interpretations.

Add to claude_desktop_config.json:

{
"mcpServers": {
"astroway": {
"command": "npx",
"args": ["@astroway/mcp"],
"env": {
"ASTROWAY_API_KEY": "aw_live_your_key_here"
}
}
}
}

After restarting Claude Desktop, it will see 25 astrology tools.

ToolWhat it does
natal_chartCalculate natal chart
synastryTwo-person synastry
daily_horoscopeDaily horoscope
interpret_natalAI interpretation of natal chart
human_designFull HD chart
transitsCurrent transits

Full list — 25 tools covering core calculations and AI interpretations.

User: Build a natal chart for someone born July 14, 1990 at 14:30 in Kyiv. What does Sun in Cancer in the 10th house mean?

Claude: Uses natal_chart to calculate, then interpret_placement for interpretation. Returns planet positions with real data and a meaningful interpretation.

For AI agents without MCP support — use HTTP API directly.

// AI agent calls /interpret/natal for interpretation
const interpretation = await fetch('https://api.astroway.info/v1/interpret/natal', {
method: 'POST',
headers: {
'X-Api-Key': process.env.ASTROWAY_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
date: '1990-07-14',
time: '14:30:00',
timezoneOffset: 3,
latitude: 50.4501,
longitude: 30.5234,
}),
});
const result = await interpretation.json();
// result.text — ready AI interpretation
// result.disclaimer — disclaimer for display
// 1. Get raw data via /chart (cheaper — 20 credits)
const chart = await fetch('https://api.astroway.info/v1/chart', { ... });
const data = await chart.json();
// 2. Pass data to your LLM
const prompt = `Interpret this natal chart: ${JSON.stringify(data.planets)}`;
const llmResponse = await myLLM.generate(prompt);

MCP server + Claude/ChatGPT. User asks — agent calculates and interprets. Budget: Free tier for personal use.

Daily horoscope generation for 12 signs via /horoscope/daily. 12 requests per day = 240 credits. Free tier with plenty of headroom.

/interpret/natal + /interpret/transits per client. 100 clients/day = 10,000 credits/day. Pro plan.

Was this helpful?
Suggest an edit

Last updated: