Ga naar inhoud
AstroWay/api v2.254.12 · nl
alle systemen normaal

AI-agenten en MCP

Bouw je een AI-agent die echte astrologische berekeningen moet doen in plaats van te hallucineren? AstroWay verbindt met Claude (Anthropic), ChatGPT-4 (OpenAI), Llama 3.3 (Groq), DeepSeek, Google Gemini, Mistral - via MCP, llms.txt of directe HTTP-calls. Drie integratiemethoden - kies op basis van het type agent:

  • llms.txt: discovery-bestanden voor agents die documentatie lezen (Cursor IDE, Windsurf, Claude in de browser, custom RAG-pipelines op LangChain/LlamaIndex).
  • MCP server: zero-code voor Claude Desktop, Cursor IDE, Windsurf, VS Code (llm CLI) en elke MCP-compatibele client (inclusief GPT met MCP via OpenAI Realtime API).
  • HTTP API: directe aanroep vanuit je eigen agent of framework (LangChain, LlamaIndex, AutoGen, CrewAI).

De site exposeert twee machineleesbare bestanden in het llms.txt-formaat:

  • /llms.txt: index van alle documentatiepagina’s gegroepeerd per sectie (API Reference, Use Cases, Examples, Products). Klein, past in elke context window.
  • /llms-full.txt: de volledige documentatie-inhoud als één plain-text bestand. Geschikt voor offline indexering in een vector database of een eenmalige dump in de context.
ScenarioBestand
Cursor/Windsurf “lees de astroway docs en help me met de integratie”/llms.txt (de agent haalt zelf de benodigde secties op)
Eigen RAG-pipeline / vector database voor een FAQ-bot/llms-full.txt (één fetch - het hele corpus)
Claude/ChatGPT in de browser: “hier is onze API, bouw een client”/llms-full.txt in de prompt plakken
Production-agent die calls uitvoertMCP server of HTTP API (zie hieronder)
const docs = await fetch('https://api.astroway.info/llms-full.txt').then(r => r.text());
const systemPrompt = `You are an integration assistant for AstroWay API.
Documentation:
${docs}
When the user asks how to do X, return a working code snippet using their API key.`;

MCP server (aanbevolen voor Claude Desktop)

Section titled “MCP server (aanbevolen voor Claude Desktop)”

Model Context Protocol (MCP) is een open standaard voor het verbinden van tools met AI-modellen. De MCP-server van AstroWay biedt 783 tools, één per API-operatie, plus 12 prompts en 14 resources.

Voeg toe aan claude_desktop_config.json:

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

Na een herstart ziet Claude Desktop alle 783 tools. Om de lijst in te korten, stel je ASTROWAY_TOOL_GROUPS in of verbind je een domeinserver, zie MCP-configuratie.

ToolWat het doet
astroway_western_chartBerekening van een natale chart
astroway_relational_synastrySynastrie van twee personen
astroway_horoscope_dailyDagelijkse horoscoop
astroway_ai_interpret_natalAI-interpretatie van een natale chart
astroway_hd_human_designVolledige HD-chart
astroway_prognostics_transitsHuidige transits

Volledige lijst: 783 tools, de hele API, elk met een getypeerd response-schema.

Gebruiker: Bouw een natale chart voor iemand geboren op 14 juli 1990 om 14:30 in Kyiv. Wat betekent Zon in Kreeft in het 10e huis?

Claude: Gebruikt astroway_western_chart voor de berekening, daarna astroway_ai_interpret_placement voor de interpretatie. Geeft planeetposities met echte data en een zinvolle interpretatie terug.

Voor AI-agents zonder MCP-ondersteuning - gebruik de HTTP API direct.

// The AI agent calls /interpret/natal for an interpretation
const r = 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 { data: result } = await r.json();
// result.interpretation - ready AI interpretation
// result.disclaimer - disclaimer to display
// 1. Get raw data from /chart (cheaper - 20 credits)
const chart = await fetch('https://api.astroway.info/v1/chart', { ... });
const { data } = await chart.json();
// 2. Pass the data to your own LLM
const prompt = `Interpret this natal chart: ${JSON.stringify(data.planets)}`;
const llmResponse = await myLLM.generate(prompt);

MCP server + Claude/ChatGPT. De gebruiker stelt een vraag - de agent berekent en interpreteert. Budget: Free-tarief voor persoonlijk gebruik.

Dagelijkse generatie van horoscopen voor 12 tekens via /horoscope/daily. 12 requests per dag = 240 credits. Free-tarief met ruime marge.

/interpret/natal + /interpret/transits voor elke klant. 100 klanten/dag = 10 000 credits/dag. Pro-tarief.

Nuttig?
Wijziging voorstellen

Laatst bewerkt: