# Connecting Claude Code & Cursor to Vedic Astrology via Shreeng MCP

> How to wire Claude Code, Cursor, or OpenCode to Shreeng Hosted MCP (/v2/mcp) and /llms-full.txt so AI coding agents stop hallucinating planetary positions.

- Canonical HTML: https://shreeng.com/blog/mcp-vedic-astrology-claude-cursor
- Category: AI & MCP
- Last Verified: 2026-12-03
- API Docs: https://docs.shreeng.com

When building an AI astrologer or Kundli app inside **Claude Code**, **Cursor**, or **OpenCode**, feeding deterministic ephemeris calculations prevents hallucinated signs, wrong dashas, and invalid timezone offsets.

## 1. Point Your Coding Agent at `/llms-full.txt`

Before generating integration code, give your coding assistant Shreeng's OpenAPI-derived Markdown reference:

| Resource                 | URL                                      | Best For                                    |
| ------------------------ | ---------------------------------------- | ------------------------------------------- |
| **Compact Index**        | `https://docs.shreeng.com/llms.txt`      | Discovering endpoint families & tier limits |
| **Full Schema Markdown** | `https://docs.shreeng.com/llms-full.txt` | Writing DTO-accurate `fetch` clients        |
| **OpenAPI 3.0 JSON**     | `https://docs.shreeng.com/openapi.json`  | Typed SDK & codegen tools                   |

## 2. Configure Streamable HTTP MCP (`/v2/mcp`)

Add Shreeng's hosted MCP endpoint to your MCP client config using a server-side `sk_shreeng_` key:

```json
{
  "mcpServers": {
    "shreeng": {
      "type": "http",
      "url": "https://api.shreeng.com/v2/mcp",
      "headers": {
        "x-api-key": "sk_shreeng_your_key_here"
      }
    }
  }
}
```

## 3. Critical Agent Input Rules

- **Local ISO Datetime Only:** Always format birth times as `YYYY-MM-DDTHH:mm:ss` (`1993-03-12T05:30:00`) — never append `Z` or `+05:30`.
- **1-Indexed Houses:** Houses are `1..12` with canonical lowercase planet/sign/nakshatra keys.
- **No Exposed Keys:** Never embed `sk_shreeng_` inside React/Next.js client components; proxy all calls through backend routes or server actions.

## Frequently Asked Questions

### Why should AI coding agents use Shreeng MCP instead of prompting raw LLM astronomy?
General LLMs cannot compute exact sidereal planetary degrees, Lahiri ayanamsa, nakshatra padas, or historical pre-1947 timezones reliably. Shreeng supplies Swiss Ephemeris truth directly via MCP and structured JSON.

### Which tiers include Hosted MCP access?
Free and Hobby plans include basic MCP (chart_get_divisional for D1/D9), while Developer (₹799/mo) and higher plans unlock the full MCP toolset.
