콘텐츠로 이동
AstroWay/api v2.256.4 · ko
모든 시스템 정상 작동 중

AI 에이전트 및 MCP

환각 대신 실제 점성술 계산을 수행하는 AI 에이전트를 만들고 있나요? AstroWay는 Claude (Anthropic), ChatGPT-4 (OpenAI), Llama 3.3 (Groq), DeepSeek, Google Gemini, Mistral에 연결됩니다 - MCP, llms.txt 또는 직접 HTTP 호출을 통해요. 세 가지 통합 방법 - 에이전트 유형에 따라 선택하세요:

  • llms.txt: 문서를 읽는 에이전트를 위한 discovery 파일 (Cursor IDE, Windsurf, 브라우저의 Claude, LangChain/LlamaIndex 기반 커스텀 RAG 파이프라인).
  • MCP 서버: Claude Desktop, Cursor IDE, Windsurf, VS Code (llm CLI) 및 모든 MCP 호환 클라이언트 (OpenAI Realtime API를 통한 MCP 지원 GPT 포함)를 위한 zero-code.
  • HTTP API: 자체 에이전트 또는 프레임워크에서 직접 호출 (LangChain, LlamaIndex, AutoGen, CrewAI).

llms.txt: AI 에이전트를 위한 discovery

섹션 제목: “llms.txt: AI 에이전트를 위한 discovery”

사이트는 llms.txt 형식의 두 가지 기계 판독 가능 파일을 제공합니다:

  • /llms.txt: 섹션별로 그룹화된 모든 문서 페이지의 인덱스 (API Reference, Use Cases, Examples, Products). 작은 크기라 어떤 context window에도 들어갑니다.
  • /llms-full.txt: 전체 문서 내용을 하나의 plain-text 파일로. 벡터 DB에 오프라인 인덱싱하거나 context에 한 번에 주입하기에 적합합니다.
시나리오파일
Cursor/Windsurf “astroway 문서 읽고 통합 도와줘”/llms.txt (에이전트가 필요한 섹션을 직접 가져옴)
FAQ 봇용 자체 RAG 파이프라인 / 벡터 DB/llms-full.txt (한 번의 fetch로 전체 코퍼스)
브라우저의 Claude/ChatGPT: “우리 API야, 클라이언트 만들어줘”/llms-full.txt를 프롬프트에 붙여넣기
호출을 실행하는 프로덕션 에이전트MCP 서버 또는 HTTP API (아래 참조)
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.`;

Model Context Protocol (MCP)은 AI 모델에 도구를 연결하기 위한 개방형 표준입니다. AstroWay MCP 서버는 각 API 작업당 하나씩 783개의 도구와 12개의 프롬프트, 14개의 리소스를 제공합니다.

claude_desktop_config.json에 추가하세요:

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

재시작 후 Claude Desktop이 783개의 도구를 모두 인식합니다. 목록을 줄이려면 ASTROWAY_TOOL_GROUPS를 설정하거나 도메인 서버를 연결하세요. MCP 설정을 참조하세요.

도구기능
astroway_western_chart네이탈 차트 계산
astroway_relational_synastry두 사람의 시나스트리
astroway_horoscope_daily데일리 운세
astroway_ai_interpret_natal네이탈 차트 AI 해석
astroway_hd_human_design전체 HD 차트
astroway_prognostics_transits현재 트랜짓

전체 목록: 783개 도구, 전체 API, 각각 타입이 지정된 응답 schema 포함.

사용자: 1990년 7월 14일 14:30 키이우 출생자의 네이탈 차트를 만들어줘. 10하우스 게자리 태양은 무슨 의미야?

Claude: astroway_western_chart로 계산한 후 astroway_ai_interpret_placement로 해석합니다. 실제 데이터 기반의 행성 위치와 의미 있는 해석을 반환합니다.

MCP를 지원하지 않는 AI 에이전트의 경우 - HTTP API를 직접 사용하세요.

// 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 서버 + Claude/ChatGPT. 사용자가 질문하면 - 에이전트가 계산하고 해석합니다. 예산: 개인 사용은 Free 요금제.

/horoscope/daily를 통해 12개 별자리의 데일리 운세 생성. 하루 12회 요청 = 240 크레딧. Free 요금제로도 충분한 여유.

각 클라이언트에 /interpret/natal + /interpret/transits. 하루 100명의 클라이언트 = 하루 10,000 크레딧. Pro 요금제.

도움이 되었나요?
수정 제안하기

마지막 업데이트: