Skip to main content

Vedic Astrology MCP Server (Kundli, Panchang) by DivineAPI

Vedic Astrology MCP Server by DivineAPI

The official DivineAPI MCP server for Vedic (Indian) astrology. It lets AI assistants such as Claude, ChatGPT and VS Code agents fetch Panchang, kundli, dasha, dosha and matchmaking data from DivineAPI. Use the hosted server at mcp.divineapi.com, or run this one locally with your DivineAPI API key. Vedic text is available in 8 Indian languages: English (en), Hindi (hi), Bengali (bn), Marathi (ma), Tamil (tm), Telugu (tl), Malayalam (ml) and Kannada (kn). Calculations use the Lahiri ayanamsa. 14-day free trial (credit card required to activate the trial): https://divineapi.com/start-trial

Tools also cover Lal Kitab, Jaimini and Hindu festival dates, returned as JSON (and SVG for charts). Product page: Vedic astrology API.

Docs Trial MCP PyPI Status License: MIT Ask DeepWiki

Hosted server URL:

https://mcp.divineapi.com/indian/mcp

One-click install (adds the hosted server with placeholder credentials):

Add to Cursor Install in VS Code

After installing, replace YOUR_API_KEY and YOUR_AUTH_TOKEN in the server's headers with your own values. In VS Code you can use the inputs version of the config below instead, so the values are stored securely.

Connect in 1 minute

1. Get your credentials. Start the 14-day free trial (credit card required to activate the trial), then copy your API key and auth token from the DivineAPI dashboard.

2. Add the server to your client. The hosted server accepts your credentials in one of two ways:

  • Request headers: X-Divine-Api-Key and X-Divine-Auth-Token (Cursor, VS Code, Claude Code).
  • Sign-in page (OAuth): the client opens a DivineAPI page where you paste the API key and auth token once (Claude.ai and Claude Desktop custom connectors).

Claude.ai and Claude Desktop (custom connector)

Custom connectors added in Claude.ai also appear in Claude Desktop.

  1. Open Customize > Connectors, click + Add, then Add custom connector.
  2. Name: DivineAPI Vedic Astrology. URL: https://mcp.divineapi.com/indian/mcp. Click Continue.
  3. Keep the detected sign-in settings and click Add. When you connect, a DivineAPI sign-in page opens: paste your API key and auth token and click Connect.

If your Claude plan offers request headers for custom connectors, you can instead choose no sign-in and add the two headers X-Divine-Api-Key and X-Divine-Auth-Token.

Team and Enterprise plans: an owner adds the connector under Organization settings > Connectors first. Steps from Claude's custom connector guide.

Cursor

~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "divineapi-indian-astrology": {
      "url": "https://mcp.divineapi.com/indian/mcp",
      "headers": {
        "X-Divine-Api-Key": "YOUR_API_KEY",
        "X-Divine-Auth-Token": "YOUR_AUTH_TOKEN"
      }
    }
  }
}

VS Code (GitHub Copilot agent mode)

.vscode/mcp.json. VS Code asks for both values on first start and stores them securely:

{
  "inputs": [
    { "type": "promptString", "id": "divine-api-key", "description": "DivineAPI API key", "password": true },
    { "type": "promptString", "id": "divine-auth-token", "description": "DivineAPI auth token", "password": true }
  ],
  "servers": {
    "divineapi-indian-astrology": {
      "type": "http",
      "url": "https://mcp.divineapi.com/indian/mcp",
      "headers": {
        "X-Divine-Api-Key": "${input:divine-api-key}",
        "X-Divine-Auth-Token": "${input:divine-auth-token}"
      }
    }
  }
}

Claude Code

claude mcp add --transport http divineapi-indian-astrology https://mcp.divineapi.com/indian/mcp \
  --header "X-Divine-Api-Key: YOUR_API_KEY" \
  --header "X-Divine-Auth-Token: YOUR_AUTH_TOKEN"

Run /mcp inside Claude Code to check the connection.

Clients that send only one credential field

If a client can send only a single bearer token and no custom headers, send Authorization: Bearer YOUR_API_KEY:YOUR_AUTH_TOKEN (API key, a colon, then the auth token). The server splits it into the two credentials.

Example prompts

  • "What is today's Panchang for New Delhi? Include tithi, nakshatra, yoga, karana and Rahu Kaal."
  • "I was born on 15 March 1990 at 14:30 in Mumbai. Show my D1 and D9 charts and my current Vimshottari dasha."
  • "Am I Manglik? Is Sadhe Sati active for me right now?"
  • "Match these two birth charts with Ashtakoot Milan and explain the guna score."
  • "List the Hindu festivals in Kartik month this year, with dates for Delhi."
  • "Give me my Lal Kitab planetary positions and the debts (rin) in my chart."

Tool groups

The table groups the tools defined in server.py. The hosted server is updated more often and can offer more tools; your MCP client always shows the live list.

Group What they cover
Panchang divine_get_panchang, divine_get_tithi, divine_get_nakshatra, divine_get_karana, divine_get_surya_nakshatra, divine_get_yoga_panchang
Panchang extended Choghadiya, Nivas and Shool, Ritu and Anaya, Samvat, Chandrabalam and Tarabalam, other calendars and epoch, sun and moon rise/set
Timings Auspicious timings (muhurat), inauspicious timings, Gowri Panchangam
Event muhurats Marriage, business start, house entering, foundation laying, property purchase and vehicle purchase muhurats, Hora, Do Ghati, Jain Pachakkhan
Kundli basics Basic astro details, planetary positions, divisional charts (divine_get_horoscope_chart: D1, D9, D10 and others, north or south style, SVG), Bhava Kundli, planet analysis, Graha Drishti (Vedic aspects), ascendant report, Uday Lagna, Chandramasa, Chandrashtama
Doshas Manglik dosha, Kaal Sarpa yoga, Pitra dosha, Sadhe Sati
Dasha Vimshottari dasha, Maha / Antar / Pratyantar dasha analysis, Yogini dasha, Kaal Chakra dasha
Yogas and strengths Yogas, Nav Pancham yoga, Shadbala, composite friendship, Ghata Chakra, Sudarshana Chakra, Panchak Rahita, gemstone suggestion, Rudraksha suggestion
Ashtakvarga Bhinnashtakvarga, Prasthara Chakra, Sarvashtakavarga
Sub planets (Upagrahas) Sub-planet positions, sub-planet chart
Jaimini Chara dasha, Karakamsha Lagna, Swamsa chart, Padas (Arudha), Jaimini planetary positions and karakas
KP (Krishnamurti Paddhati) KP planetary positions, cuspal chart, cuspal sub lords and planetary sub lords (with KP conjunctions and aspects), planetary-cuspal significator table
Transits Kundli transit from ascendant and from Moon, Grah Gochar, planet combustion, nakshatra and retrograde transits
Matchmaking (Kundli Milan) Ashtakoot Milan, Dashakoot Milan, matching Manglik, basic astro, charts, Vimshottari dasha and planetary positions for both people
Festivals Festivals by date, by English month, by Hindu month, find a festival, Malayalam, Tamil and Sankranti festivals
Lal Kitab Planetary positions, chart, house positions, conjunctions, teva, planet analysis, dasha, planet types, mahadasha and antardasha content, debts, house signification, Varsha Pravesh, varshphal positions, Muntha and chart
Varshphal (Tajika annual chart) Varsha Pravesh, basic details, annual chart, planetary positions and strengths, Muntha, Panchadhikari, Sahams, Tajika aspects, yogas, Tri-Pataki Chakra, Mudda, Patyanini and Yogini dashas
Kundli analysis Vargottama planets, Bhava Bala, Ashtama Shani, bhava analysis, bhava group predictions, planet remedies
Monthly lists Chandramasa list, month nakshatra list, sunrise and sunset list, Surya nakshatra list, tithi list
Location Place search (divine_search_location): latitude, longitude and timezone for a place name, to fill the birth-chart inputs

All tools are read-only (readOnlyHint: true) and each tool call makes one request to the DivineAPI REST API on the astroapi-1, astroapi-2, astroapi-3 or astroapi-8 host.

Inputs the model needs to know

  • Dates are separate day, month, year fields (plus hour, min, sec for birth charts; send sec as 0 if unknown).
  • place is a plain lowercase city string; lat and lon are decimals.
  • tzone is a decimal UTC offset, for example 5.5 for India. Never +5:30.
  • Calculations are sidereal with the Lahiri ayanamsa.
  • lan sets the response language. Vedic responses support 8 Indian languages with DivineAPI's own codes:
Language Code Language Code
English en Tamil tm
Hindi hi Telugu tl
Bengali bn Malayalam ml
Marathi ma Kannada kn

Self-hosting

You only need this if you want to run the server yourself instead of using the hosted URL. The server reads your credentials from two environment variables: DIVINE_API_KEY and DIVINE_AUTH_TOKEN.

Local (stdio) with uv or pip

# uv (no install step)
uvx divineapi-indian-astrology-mcp

# or pip
pip install divineapi-indian-astrology-mcp
divineapi-indian-astrology-mcp

Claude Desktop local config (claude_desktop_config.json; on macOS ~/Library/Application Support/Claude/, on Windows %APPDATA%\Claude\):

{
  "mcpServers": {
    "divineapi-indian-astrology": {
      "command": "uvx",
      "args": ["divineapi-indian-astrology-mcp"],
      "env": {
        "DIVINE_API_KEY": "YOUR_API_KEY",
        "DIVINE_AUTH_TOKEN": "YOUR_AUTH_TOKEN"
      }
    }
  }
}

The PyPI package can be newer than the code in this repository. To run exactly this repository's code:

git clone https://github.com/DivineAPI/mcp-indian-astrology.git
cd mcp-indian-astrology
pip install .
DIVINE_API_KEY=YOUR_API_KEY DIVINE_AUTH_TOKEN=YOUR_AUTH_TOKEN divineapi-indian-astrology-mcp

Remote (streamable HTTP) with Docker

docker build -t divineapi-indian-mcp .
docker run -p 8000:8000 -e MCP_JWT_SECRET=a-long-random-string divineapi-indian-mcp

The MCP endpoint is then http://localhost:8000/mcp. Clients send their own X-Divine-Api-Key and X-Divine-Auth-Token headers. docker compose up maps the same server to port 8001.

Variable Used for
DIVINE_API_KEY, DIVINE_AUTH_TOKEN Your DivineAPI credentials. Required in stdio mode; in HTTP mode, per-request headers or the sign-in page override them
MCP_TRANSPORT stdio (default) or http (set by the Dockerfile)
MCP_HOST Public host name for the OAuth sign-in flow and allowed hosts (default mcp.divineapi.com)
MCP_JWT_SECRET Secret that signs session tokens. Set a fixed value so sign-ins survive restarts

The OAuth sign-in flow expects HTTPS on MCP_HOST behind a reverse proxy that serves the server under /indian/ (see nginx.conf). Header authentication works without it.

Which plan includes this

The tools call the Vedic endpoints, so they use your Vedic plan (Vedic Sampoorna, Vedic Ananta or Vedic Prakash); a tool works when your plan includes its endpoint. Compare plans at divineapi.com/pricing.

FAQ

Do I need a DivineAPI account to use the Vedic tools? Yes. Each panchang, kundli or matching tool sends your API key and auth token to the Vedic REST endpoints. Start with the 14-day free trial (credit card required to activate the trial); plans and prices are at divineapi.com/pricing.

Can Claude Desktop or Cursor ask for a kundli directly? Yes. Any client that supports remote MCP over streamable HTTP (Claude.ai, Claude Desktop, Claude Code, Cursor, VS Code) can call the kundli and panchang tools from a plain-language prompt. A client that only starts local servers can run divineapi-indian-astrology-mcp over stdio (see Self-hosting).

Why does my client show Vedic tools that are not in the table? The table follows this repository's server.py. The hosted server and the PyPI package can be newer than this code, and your client always shows the live list.

Which ayanamsa and zodiac does it use? Sidereal zodiac with the Lahiri ayanamsa, calculated with Swiss Ephemeris.

Can it draw charts? Yes. Chart tools (divine_get_horoscope_chart, divine_get_sub_planet_chart, the Lal Kitab and matching chart tools) return an SVG plus a base64 image.

I want the REST API, not MCP. Call the same Vedic endpoints over plain HTTP with the kundli-api and panchang-api quickstarts or the API reference. SDKs: pip install divineapi, npm install divineapi, composer require divineapi/divineapi.

Repo What it is
kundli-api Kundli REST API quickstart
kundli-matching-api Kundli matching (Ashtakoot, Dashakoot) REST API
lal-kitab-api Lal Kitab REST API
panchang-api Panchang REST API quickstart
hindu-festival-api Hindu festival dates REST API
astrology-api Overview of all DivineAPI domains
mcp-western-astrology Western astrology MCP server
mcp-horoscope-numerology Horoscope, tarot and numerology MCP server
divineapi-python Python SDK (pip install divineapi)
divineapi-node Node.js / TypeScript SDK (npm install divineapi)
divineapi-php PHP SDK (composer require divineapi/divineapi)

Support

License

MIT. See LICENSE.

Metadata

Release files for divineapi-indian-astrology-mcp 2.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for divineapi-indian-astrology-mcp 2.14.0
File Size Uploaded Provenance Actions
divineapi_indian_astrology_mcp-2.14.0.tar.gz 77.9 kB Without provenance Details for divineapi_indian_astrology_mcp-2.14.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for divineapi-indian-astrology-mcp 2.14.0
File Interpreter ABI Platform Actions
divineapi_indian_astrology_mcp-2.14.0-py3-none-any.whl Python 3 none any Details for divineapi_indian_astrology_mcp-2.14.0-py3-none-any.whl

Total release size: 116.2 kB

Release files / divineapi_indian_astrology_mcp-2.14.0.tar.gz

Download URL divineapi_indian_astrology_mcp-2.14.0.tar.gz
Size 77.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce0be67de9b934b30a532a23cd7beb53678b3036372e7fd8d93fa97946c4e349
BLAKE2b-256 checksum
How to use checksums
2083c31e4266400c6643218c474f87fb3eaeb398fdf9c872e97cfd826e641408
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release files / divineapi_indian_astrology_mcp-2.14.0-py3-none-any.whl

Download URL divineapi_indian_astrology_mcp-2.14.0-py3-none-any.whl
Size 38.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e68ae488b4c2e54dd7b7df35cfb2d5a70e8e8934c28e90f79cd09245944f814
BLAKE2b-256 checksum
How to use checksums
93c87cc4a721091bb6d5e9fbdc8822540096788ce4327bbfe40468c6a6ff9d20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Security for divineapi-indian-astrology-mcp 2.14.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page