Asterwise MCP server
Commit Nov 13, 2026Provides 118 astrology and divination tools including Vedic and Western charts, numerology, tarot, and matchmaking for AI agents.
Also known as asterwise/asterwise-mcp, asterwise-mcp
- Stars
- 0
- Tools
- 17
- Downloads, 30 days
- —
- Latest version
- 1.0.1
- Last commit
- Nov 13, 2026
- License
- MIT
What is Asterwise MCP?
Asterwise provides 118 astrology and divination tools including Vedic and Western charts, numerology, tarot, and matchmaking for AI agents. It exposes 17 tools, such as western, natal, factors.
Summary generated from the project's README
About Asterwise MCP server
Asterwise provides a comprehensive suite of 118 astrology and divination tools designed for integration with AI agents. It supports both Western and Vedic traditions, offering specialized calculations for natal charts, transits, numerology, tarot, and matchmaking. Developers can use this server to give their AI clients access to complex astrological data, including Dasha trees, Panchanga timings, and crystal recommendations.
The server can be connected to clients like Claude Desktop or Cursor using an API key via the mcp-remote command or through local stdio execution. It supports multiple authentication methods, including API keys, OAuth 2.1 client credentials, and the standard authorization-code flow with PKCE. For those using the Sandbox tier, the service includes 500 free calls per month without requiring a credit card.
Accuracy is a core focus, with planetary positions verified against the Swiss Ephemeris and checked against NASA JPL Horizons data. The toolset is extensive, covering diverse areas such as dream symbols, angel numbers, and various matchmaking methods like Sanskrit Dashakoot and Tamil Porutham.
What you can do with it
- 1Generate Vedic astrological chartsAsk the AI to calculate a natal chart or dasha tree using classical Jyotish methods.
- 2Perform relationship compatibility analysisRequest a matchmaking report using specific Vedic traditions like Dashakoot or Porutham.
- 3Conduct tarot card readingsHave the AI agent perform tarot draws or interpret specific spreads for the user.
- 4Calculate numerology profilesUse the agent to determine life path numbers or personal cycles through numerology tools.
Written from the project's README. Every use case is checked against a quote from it.
How to install Asterwise MCP
Formats verified 10 Nov 2026Install Asterwise MCP in Claude Code
$ claude mcp add --transport http asterwise-mcp https://mcp.asterwise.com/mcpInstall Asterwise MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"asterwise-mcp": {
"url": "https://mcp.asterwise.com/mcp"
}
}
}Install Asterwise MCP in VS Code
.vscode/mcp.json
{
"servers": {
"asterwise-mcp": {
"type": "http",
"url": "https://mcp.asterwise.com/mcp"
}
}
}Install Asterwise MCP in Codex
~/.codex/config.toml
[mcp_servers.asterwise-mcp] url = "https://mcp.asterwise.com/mcp"
Install Asterwise MCP in Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"asterwise-mcp": {
"httpUrl": "https://mcp.asterwise.com/mcp"
}
}
}Asterwise MCP tools 17
Detected from the READMEwesternnatalfactorsnumerologytarotvedic_referencenumerology_gapspanchangacrystalsdashamatchmakinghoroscope
| western | — | |
| natal | — | |
| factors | — | |
| numerology | — | |
| tarot | — | |
| vedic_reference | — | |
| numerology_gaps | — | |
| panchanga | — | |
| crystals | — | |
| dasha | — | |
| matchmaking | — | |
| horoscope | — |
Show all 17 toolsShow fewer tools
yoga_doshaangel_numbersvarshaphaldreamspanchanga_ext
| yoga_dosha | — | |
| angel_numbers | — | |
| varshaphal | — | |
| dreams | — | |
| panchanga_ext | — |
Configuration
ASTERWISE_API_BASE_URLASTERWISE_API_KEYJWT_SECRETMCP_HEADER_AUTHORIZATION
| Name | Description | |
|---|---|---|
| ASTERWISE_API_BASE_URL | — | |
| ASTERWISE_API_KEY | — | |
| JWT_SECRET | — | |
| MCP_HEADER_AUTHORIZATION | — |
Automated checks
Ran Nov 14, 2026Full report →Not verified yet. A server needs a score of 80, no serious finding, and enough data for us to check. How checks work
- Source repository linked and reachableasterwise/asterwise-mcp is public and reachablegithub.com/asterwise/asterwise-mcp ↗Pass
- Package names this repository as its sourceNot checked
- Build provenance (Sigstore attestation)Not checked
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-11-13github.com/asterwise/asterwise-mcp ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNot checked
- No critical advisory in the package or its dependenciesNot checked
- No hidden instructions to the model17 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNo tool named like delete, drop or execPass
- Remote endpoint answers the MCP handshakeinitialize answered with protocol 2025-06-18 in 139 msPass
README
View on GitHubAsterwise MCP Server
Astrology and divination calculations as MCP tools. 118 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.050 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:
{
"mcpServers": {
"asterwise": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.asterwise.com/mcp"
],
"env": {
"MCP_HEADER_AUTHORIZATION": "Bearer your-api-key-here"
}
}
}
}
Connect to Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"asterwise": {
"url": "https://mcp.asterwise.com/mcp",
"headers": {
"Authorization": "Bearer your-api-key-here"
}
}
}
}
Test the connection
curl https://mcp.asterwise.com/health
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:
curl -X POST https://mcp.asterwise.com/oauth/token \
-H "Content-Type: application/json" \
-d '{
"grant_type": "client_credentials",
"client_id": "your-api-key",
"client_secret": "your-api-key"
}'
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)
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):
pip install -r requirements.txt
ASTERWISE_API_KEY=aw_your_key python stdio.py
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:
| Variable | Required | Description |
|---|---|---|
ASTERWISE_API_BASE_URL |
Yes | Asterwise API base URL (e.g. https://api.asterwise.com). |
JWT_SECRET |
For /oauth/token |
At least 32 characters; used to sign access tokens. |
MCP_SERVER_HOST / MCP_SERVER_PORT |
No | Bind address and port for the MCP HTTP server. |
LOG_LEVEL |
No | Default INFO. |
MCP_OAUTH_SECRET |
For OAuth | Shared with asterwise-api; verifies access tokens issued by its /v1/oauth/token. |
ASTERWISE_API_KEY |
stdio only | Your Asterwise API key for python stdio.py; HTTP deployments take the key per request instead. |
INTERNAL_API_TOKEN |
For OAuth client registration | Shared with asterwise-api; used when forwarding dynamic client registration. |
FRONTEND_URL |
For /authorize |
Where the browser is sent for sign-in and consent (e.g. https://asterwise.com). |
OPENAI_APPS_CHALLENGE_TOKEN |
No | Served at /.well-known/openai-apps-challenge for directory verification. |
Tools (118 total)
The MCP server exposes 118 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 — 25 tools (chart, transits, returns, progressions, void-of-course Moon, planetary hours, profections, eclipses, day view, daily factors, events, horary, significations)
- natal — 13 tools (chart, dasha trees, ascendant systems)
- factors — 5 tools (tarabala, Vedic daily factors, Vedic events, BPHS significations, reference charts)
- 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
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
export ASTERWISE_API_BASE_URL=https://api.asterwise.com
export JWT_SECRET="$(python -c 'import secrets; print(secrets.token_hex(32))')"
uvicorn server:app --host 0.0.0.0 --port 8080
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
pytest
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.
Asterwise MCP questions
How do I add Asterwise MCP to Claude Code?
Run claude mcp add --transport http asterwise-mcp https://mcp.asterwise.com/mcp in your terminal. Add --scope user to make it available in every project.
How do I add Asterwise MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does Asterwise MCP provide?
It exposes 17 tools, including western, natal, factors, numerology, tarot.
How accurate are the astrology calculations?
Positions are verified against an independent Swiss Ephemeris run and checked against NASA JPL Horizons with a median error of 0.050 arcseconds.