astromock-mcp
Exposes Vedic astrology tools for birth chart, dasha, transit calculations, and question context analysis.
README
astromock-mcp
A standalone MCP server that exposes Vedic astrology calculations as reusable tools. Any MCP client — Claude Desktop, a chatbot, the ASTRO-MOCK web app, or future projects — can consume these tools.
Calculations use the sidereal zodiac with Lahiri ayanamsha,
Whole Sign houses and mean lunar nodes, powered by the Swiss Ephemeris
(pyswisseph, built-in Moshier ephemeris — no extra data files needed).
Available tools
calculate_kundali
Calculates the D-1 (Rashi) birth chart. Returns the ascendant (lagna) and all nine grahas (Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu, Ketu) with sign, degree, nakshatra, pada, Whole Sign house and retrograde status.
calculate_navamsa
Calculates the D-9 (Navamsa) divisional chart. Returns each planet's navamsa sign and house from the navamsa lagna.
calculate_dasha
Vimshottari Dasha timeline: Mahadashas covering 120 years from birth with
calendar dates, the birth-time balance, and the current Mahadasha's full
Antardasha breakdown (active one included). Optional as_of (YYYY-MM-DD)
overrides "today". Use for any timing question.
get_current_transits
Gochar: sidereal transit signs of all 9 grahas for today (or optional
target_date). Pass the optional moon_sign (the rashi.sign from
calculate_kundali) to also get each planet's house counted from the Moon
and the sade_sati_status flag (Saturn in 12th/1st/2nd from the Moon).
get_question_context
One-shot context for a life-area question (English or Hinglish): routes the
question to its Vedic houses (career/naukri → 10, marriage/shaadi → 7,
wealth/paisa → 2+11, health/sehat → 1+6, education/padhai → 4+5,
children/santan → 5, family/parivar → 4+9, personality/swabhav → 1),
analyzes each house in the native's chart (sign, occupant planets, house
lord, lord's placement) and retrieves the most relevant BPHS passages (with
page numbers) from the bundled index (data/book_index.json). Takes the
birth-data fields plus question.
generate_horoscope
Everything needed to write a transit-based horoscope for a natal Moon sign,
for one of three timeframes: today (Moon + Sun aspect, ~100 words),
2weeks (Sun/Mercury/Venus with upcoming sign changes, ~200 words),
6months (Jupiter/Saturn/Rahu/Ketu with Sade Sati, ~300 words). Returns
the filtered transit facts, relevant BPHS passages, and a ready-to-use
system_prompt + suggested_prompt. The server does not call an LLM —
the client writes the horoscope text: Claude Desktop's model follows the
returned prompts directly; the ASTRO-MOCK Flask app passes them to its own
llm_provider. Only moon_sign and timeframe are required; transit_data
and sade_sati_status are computed automatically when omitted.
Prompt
vedic-interpretation
The interpretation ruleset (never invent placements, cite reasoning, non-deterministic language, structured Summary/Factors/Interpretation/ References/Confidence format). Attach it in the client, then answer questions using the tool outputs.
Typical flow for "kya mera career acha hoga":
calculate_kundali→ lagna, rashi, placementsget_question_context(same birth data + question) → houses, analysis, BPHS refscalculate_dasha→ current Mahadasha/Antardashaget_current_transitswithmoon_sign→ Gochar + Sade Sati- Interpret per the
vedic-interpretationprompt.
Inputs (both tools):
| Parameter | Type | Example |
|---|---|---|
date_of_birth |
string | "1995-08-21" |
time_of_birth |
string | "14:35" |
latitude |
number | 28.6139 |
longitude |
number | 77.2090 |
timezone_str |
string | "Asia/Kolkata" |
unknown_time |
boolean (optional, default false) |
true if birth time is uncertain — ascendant and houses are then omitted |
Setup
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt
Running the server
The server speaks MCP over stdio (an HTTP transport is planned later):
.venv\Scripts\python server.py
It will sit waiting for an MCP client on stdin/stdout — that's normal; it is not meant to be used directly from the terminal.
Use with Claude Desktop
Add to your claude_desktop_config.json
(%APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"astromock": {
"command": "C:\\Users\\anshi\\Downloads\\astromock-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\Users\\anshi\\Downloads\\astromock-mcp\\server.py"]
}
}
}
Restart Claude Desktop; the calculate_kundali and calculate_navamsa
tools will appear.
Verify with the MCP Inspector
npx @modelcontextprotocol/inspector .venv\Scripts\python.exe server.py
This opens a web UI where you can list the tools and invoke them with test inputs.
Verify with the bundled test client
.venv\Scripts\python test_client.py
Spawns the server over stdio, lists registered tools, and calls
calculate_kundali with sample birth data.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。