AstroNest — Vedic Astrology & Ephemeris
RemoteAbout AstroNest — Vedic Astrology & Ephemeris
AstroNest provides deterministic Vedic astrology readings and ephemeris data through an API for apps and AI agents. Its interpretations include supporting reasons and classical sources.
Key features
- 01Birth charts and daśā timelines
- 02Life, relationship, and venture readings
- 03Compatibility and gemstone assessments
- 04Auspicious date and time windows
- 05JPL DE440 ephemeris data
Use cases
- 01Explore career or marriage timing
- 02Assess compatibility between two charts
- 03Review a venture launch period
- 04Find auspicious windows for an event
MCP support
Exposes AstroNest astrology and ephemeris tools to AI agents through a Streamable HTTP MCP endpoint.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://www.astronest.ai/api/developer/mcpclaude mcp add --transport http onedotlinks-astronest https://www.astronest.ai/api/developer/mcp{"mcpServers":{"onedotlinks-astronest":{"type":"http","url":"https://www.astronest.ai/api/developer/mcp"}}}Open in Cursor{"servers":{"onedotlinks-astronest":{"type":"http","url":"https://www.astronest.ai/api/developer/mcp"}}}Open in VS Code{"mcpServers":{"onedotlinks-astronest":{"type":"http","url":"https://www.astronest.ai/api/developer/mcp"}}}{"mcpServers":{"onedotlinks-astronest":{"serverUrl":"https://www.astronest.ai/api/developer/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://www.astronest.ai/api/developer/mcpAuth requiredTools
21| Parameter | Type | Required | Description |
|---|---|---|---|
| western | boolean | No | Set false to omit the modern Western block. |
| location | object | No | Both coordinates or neither: a half-filled location is refused, never defaulted. |
| location.latitude | number | Yes | |
| location.longitude | number | Yes | |
| location.orbDegrees | number | No | |
| birthData | object | Yes | The person's birth data: date, local time (omit if unknown), IANA timezone, latitude and longitude. |
| birthData.date | string | Yes | YYYY-MM-DD |
| birthData.time | string | No | 24-hour HH:MM or HH:MM:SS, local to `timezone`. Omit if unknown: house-dependent detail is then reduced. |
| birthData.latitude | number | Yes | |
| birthData.timezone | string | Yes | IANA timezone of the birthplace, e.g. Asia/Kolkata. |
| birthData.longitude | number | Yes | |
| divisionals | array | No | Divisional charts (vargas) to include: any of the sixteen ṣoḍaśavarga. Default d9 (navāṁśa) and d10 (daśāṁśa); send [] for none. Each returns its ascendant and every graha's sign, degree and house within the varga, by the Parāśari formulas. |
| includeDasha | boolean | No | Include the Vimśottarī daśā periods in the chart response. Default true. |
Details
From the project READMEAstroNest: Vedic astrology for apps and AI agents
AstroNest is a Vedic astrology (Jyotiṣa) engine you can call as a REST API or connect to an AI agent over MCP. It computes on its own JPL DE440 ephemeris, and the readings are deterministic: the same birth data always gives the same answer, with the reasons and the classical books each reading rests on.
This repository has two things: how to connect AstroNest to an AI agent, and a Next.js quickstart on the REST API.
- Docs: https://www.astronest.ai/developers
- OpenAPI 3.1 spec: https://www.astronest.ai/openapi/astronest-v1.json
- Postman: AstroNest Developer API workspace
- Keys: https://www.astronest.ai/developer. Sandbox keys are free and return fixed samples.
Connect it to an AI agent (MCP)
Endpoint (Streamable HTTP): https://www.astronest.ai/api/developer/mcp
Claude Code
claude mcp add --transport http astronest https://www.astronest.ai/api/developer/mcp \
--header "Authorization: Bearer YOUR_ASTRONEST_KEY"
mcp.json (Cursor, VS Code and other clients that read this format)
{
"mcpServers": {
"astronest": {
"url": "https://www.astronest.ai/api/developer/mcp",
"headers": { "Authorization": "Bearer YOUR_ASTRONEST_KEY" }
}
}
}
Also on Smithery and the
MCP Registry as io.github.onedotlinks/astronest.
What an agent can ask it
Each tool answers one question. The interpretive ones read the chart the way a practitioner does and return the reasons, not just positions:
| Tool | The question it answers |
|---|---|
get_life_reading | What does my life look like as a whole — which areas (marriage, children, career, money, property…) come into focus when, past and future? |
get_domain_timeline | When is marriage, career or another area in focus, or what do the next few years hold for it? |
get_relationship_reading | How do two people get on as business partners, siblings, parent and child, or friends? |
get_venture_timing | When should I launch, sign or borrow — and which line of business does my chart support? |
assess_gemstone | Should I wear this stone (blue sapphire, pukhraj, emerald…), and why or why not? |
get_compatibility, get_guna_milan | Kundli matching: the 36-point Aṣṭakūṭa score, Manglik from the lagna, Moon and Venus, and the full pair reading |
interpret_domain, get_guidance | What does my chart say about one area of life, and what do the running periods ask of me now? |
find_muhurta | Which days and windows in a date range suit an event? |
get_chart, get_dasha, ephemeris tools | The chart (with the sixteen divisional charts), Vimśottarī daśā to pratyantar, and raw JPL DE440 positions |
The readings describe what the chart shows and why. They are symbolic interpretation, not predictions, and not medical, legal, financial or psychological advice; every response carries that disclaimer.
The Next.js quickstart
A small Next.js app on the AstroNest Developer API. Enter a birth date, time and place and get:
- the chart: lagna, the nine grahas with sign, house, nakṣatra and dignity, and the running daśā (1 credit)
- guidance now: plain-language cards for the running mahādaśā / antardaśā / pratyantardaśā (3 credits)
- a domain reading: career, marriage, finance and twelve more, with supporting factors, cautions, timing windows and how many methods agree (5 credits)
- optionally, "explain in plain words" with your own LLM (0 AstroNest credits)
None of the three AstroNest calls uses a language model. They are deterministic, so they return in seconds and the same input always gives the same answer.
Run it in five minutes
- Get a key. Sign in at https://www.astronest.ai/developer and create a key. Every account gets
100 free live credits once, valid for 60 days from your first live key (they do not renew): enough for
about 20 domain readings or 100 charts.
Sandbox keys are free with no time limit and return fixed sample responses. When the free credits are used,
or after 60 days, live calls return
402 credits_exhausteduntil you buy a credit pack; sandbox keys keep working. - Install and configure.
npm install cp .env.example .env.local # put your key in ASTRONEST_API_KEY - Run.
Open http://localhost:3000.npm run dev
How it fits together
browser ──► /api/astronest/{chart|guidance|interpret} ──► AstroNest API (your key, server-side)
└─► /api/explain ──────────────────────────────► your LLM (optional)
lib/astronest.tsis a typed client. It is the file to copy into your own app.app/api/astronest/[op]/route.tsforwards only those three operations, so the route can't be used to call every endpoint your key allows.app/api/explain/route.tssends the reading AstroNest computed to any OpenAI-compatible chat-completions endpoint (OpenAI, Vercel AI Gateway, OpenRouter, a local Ollama) and tells the model to use only the facts it was given. Your model writes the words; AstroNest does the astrology.
Before you deploy
- Your key is a secret. It lives in server environment variables only. Never prefix it with
NEXT_PUBLIC_, and never call the API from the browser. The API sends no CORS headers, so browser calls fail anyway. - The demo routes spend your credits for anyone who calls them. By default they answer only on
localhost. Put your own sign-in (and ideally a rate limit) in front of them before you setALLOW_PUBLIC_DEMO=true. The localhost check reads the request host, so don't rely on it behind a proxy that rewritesHost. - Birth data is personal data. This app stores nothing, and the API stores nothing either. If you add storage, you take on the data-protection duties that come with it.
- Show the disclaimer that comes with every response: symbolic interpretation, not medical, legal, financial or psychological advice.
Going further
| Endpoint | Credits | Notes |
|---|---|---|
POST /v1/chart | 1 | add location for astrocartography and a relocated frame |
POST /v1/dasha | 1 | full Vimśottarī timeline |
POST /v1/guidance | 3 | referenceDate for any other moment |
POST /v1/interpret | 5 | 15 domains |
POST /v1/timing/resolve | 7 | narrated by a language model; allow 90 s |
POST /v1/forecast | 8 | narrated by a language model; allow 90 s |
POST /v1/muhurta | 10 | auspicious windows in a date range |
POST /v1/compatibility | 12 | two charts read together |
POST /v1/guna-milan | 2 | the 36-point Aṣṭakūṭa match + Manglik (lagna, Moon, Venus) for a pair |
POST /v1/life-reading | 10 | the whole-life reading: chapters and 11 life areas, past and future (areas narrows it) |
POST /v1/domain-timeline | 3 | one life area across the life: every period that governs it, optionally within a date window |
POST /v1/relationship | 8 | business partners, siblings, parent & child, friends: bond houses, cross-chart contacts, the bond meter |
POST /v1/venture-timing | 10 | when to commit, build, guard or hold; the businesses you describe ranked on the chart |
POST /v1/gem-assessment | 5 | should this chart wear this stone: the verdict, every ground for and against, how long the reason lasts |
POST /v1/ephemeris/positions | 0.1 | raw positions at a moment (JPL DE440); no birth data needed |
POST /v1/ephemeris/angles | 0.1 | ascendant, MC and house cusps for a moment and place |
POST /v1/ephemeris/ayanamsa | 0.1 | Lahiri, Raman, Krishnamurti, Fagan–Bradley |
POST /v1/ephemeris/sunrise | 0.1 | sunrise, sunset and next sunrise for a local date |
POST /v1/ephemeris/series | 1 | per started 100 points, up to 1,000 |
The four single-moment Ephemeris calls cost 0.1 credit each: 1 credit per started block of 10, counted
across them per account (the call that opens a block reports units_charged: 1, the next nine report 0).
Only successful (2xx) calls are charged. When credits run out, the API returns
402 credits_exhausted; buy a pack in the developer portal. Paid credits do not expire.
- OpenAPI 3.1 spec: https://www.astronest.ai/openapi/astronest-v1.json (import it into Postman, or generate a client in any language)
- Reference: the developer portal at https://www.astronest.ai/developer
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.