
Asterwise
com.asterwisev1.0.1更新於 Sep 30, 2026
Vedic and Western astrology for AI agents: charts, dasha, matchmaking, panchanga, numerology, tarot.
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Asterwise,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"mcp": {
"type": "http",
"url": "https://mcp.asterwise.com/mcp"
}
}
}README
Asterwise MCP Server
[Listed on mcpservers.org] [Quality, license and maintenance score on Glama]
Astrology and divination calculations as MCP tools. 104 tools covering Vedic and Western astrology, numerology, tarot, crystals, dreams, natal charts, Dasha, matchmaking and Panchanga, with interpretations that follow classical Jyotish method. Every position is verified against an independent Swiss Ephemeris run (asterwise.com/proof) and checked against NASA JPL Horizons, median 0.046 arcseconds over 80 positions (asterwise.com/accuracy). How it compares with seven other astrology APIs, sourced and dated: asterwise.com/compare.
Quick Start (2 minutes)
See it first: 46-second demo of Claude Desktop casting a chart through this server, and the independent Swiss Ephemeris cross-check.
Get your API key
Sign up free at asterwise.com/dashboard: 500 calls/month on the Sandbox tier. No credit card. No time limit.
Connect to Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Connect to Cursor
Add to .cursor/mcp.json in your project:
Test the connection
Authentication
Three methods supported:
Method 1 — API Key (quick start)
Pass your Asterwise API key (starts with aw_) either as Authorization: Bearer <api-key> or as an X-API-Key: <api-key> header. Both are equivalent; use whichever your MCP client can set.
Method 2 — OAuth 2.1 (production)
Exchange your API key for a short-lived token:
Returns: {"access_token": "...", "expires_in": 3600, ...}
Use the token: Authorization: Bearer <access_token>
Access tokens are stateless HS256 JWTs. The API key is carried inside the token encrypted with a key derived from JWT_SECRET; only a SHA-256 hash of the key appears in the sub claim. Keep JWT_SECRET private.
Method 3 — OAuth 2.1 authorization code for MCP clients (Claude, Cursor, VS Code, Smithery)
MCP clients log a user in through the standard authorization-code flow with PKCE (S256). Discovery is at /.well-known/oauth-authorization-server. Two ways for a client to identify itself are supported:
- Client ID Metadata Documents (current MCP spec, preferred): use an HTTPS URL as
client_id. The URL must serve a JSON document whoseclient_idequals the URL, withclient_name,redirect_uris, andtoken_endpoint_auth_method: "none". These clients are public: no secret, PKCE only,authorization_codeandrefresh_tokengrants, refresh tokens rotate on every use. Redirect URIs must behttps, orhttponlocalhost/127.0.0.1/[::1](port ignored, per RFC 8252). A reference document you can copy: https://asterwise.com/public/oauth/example-client.json. - Dynamic Client Registration (
POST /oauth/register, deprecated in the MCP spec but still supported): returns aclient_idandclient_secret; the secret is required at/oauth/token.
The server fetches metadata documents with SSRF protections (public addresses only, no redirects, 64 KB, 10 s) and caches them for the document's Cache-Control: max-age (60 s to 24 h, default 1 h). The consent page shows the host that published the document.
Run over stdio
For hosts that speak stdio instead of HTTP (Glama hosted builds, a local Claude Desktop entry, quick tests):
Over stdio the key comes from ASTERWISE_API_KEY; the server starts and lists its tools without one, and tool calls need it. Logs go to stderr.
Configuration
Copy .env.example to .env and set at least:
Tools (104 total)
The MCP server exposes 104 tools organized by Python module. The categorization reflects code organization; tools may serve multiple traditions (e.g. matchmaking includes both Sanskrit Dashakoot and Tamil Porutham methods).
- western — 16 tools (chart, transits, returns, progressions)
- natal — 13 tools (chart, dasha trees, ascendant systems)
- numerology — 11 tools (profile, compatibility, life path)
- tarot — 9 tools (draws, spreads, suit references)
- vedic_reference — 8 tools (nakshatra, planet nature, ayanamsha, classical reference)
- numerology_gaps — 7 tools (expression, soul urge, personality, maturity, balance, karmic, personal cycles)
- panchanga — 6 tools (panchanga day with every limb and timing, monthly calendar, muhurta search, choghadiya, rahu kaal, hora)
- crystals — 5 tools (list, by planet, recommendations, individual)
- dasha — 5 tools (vimshottari, ashtottari, yogini, char, transits)
- matchmaking — 5 tools (dashakoot, porutham, thirumana, papasamyam, compatibility)
- horoscope — 4 tools (daily/weekly/monthly/yearly)
- yoga_dosha — 4 tools (yogas, doshas, sade sati, pitra dosha)
- angel_numbers — 3 tools (today, personal, lookup)
- varshaphal — 3 tools (annual chart, saham, harsha bala)
- dreams — 2 tools (symbols, individual)
- panchanga_ext — 3 tools (festival and vrat calendar, tamil panchanga, geocode a place name)
For the full tool list see docs.asterwise.com or the MCP server's tool listing endpoint.
Run locally
uvicorn server:app is the same entry point the production Dockerfile and railway.toml use, so the auth middleware, OAuth routes and /health are all present locally. Runtime dependencies are pinned in requirements.txt; requirements-dev.txt adds the test tooling.
Tests
Coverage is enforced at 78% for core modules (auth, client, errors, logging_config, models, runtime, server); tool modules are excluded from the gate (see .coveragerc).
Status
License
MIT. See LICENSE. Security reports: see SECURITY.md.
來源:README.md,提交 c13cd28
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026

