mystilink-mcp
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Mystilink MCP
Languages: English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Français | Español
Overview
Local integration that exposes Mystilink calculator CLIs as MCP tools (stdio) for Agent hosts such as Cursor. Optionally serves the same orchestration over loopback FastAPI on 127.0.0.1 for local debugging.
This package does not compute charts. It spawns installed short CLIs (bazi, ziwei, horoscope, lunar, tarot, liuyao) and returns JSON. Default tool responses use mystilink.envelope/0.1 when the calculator supports --envelope.
There is no remote HTTP/HTTPS service to deploy. The FastAPI entry is localhost-only.
Related MCP server: 命盘 Mingpan
Endpoints
Agent: https://www.mystilink.com
Theory Wiki: https://wiki.mystilink.com (API
/api/v1)
Delivery type
This repository is an MCP / local integration package. It does not implement the C / C++ / C# / Java / JavaScript / Python language matrix used by calculator libraries.
Requirements
Python 3.10+
Calculator CLIs on
PATH(install the corresponding packages), or setMYSTILINK_*_CLIenv vars
System | Short CLI | Env override |
lunar |
|
|
bazi |
|
|
ziwei |
|
|
horoscope |
|
|
tarot |
|
|
liuyao |
|
|
Install
cd mystilink-mcp
python3 -m pip install -e .
# optional local FastAPI extras
python3 -m pip install -e '.[local-api]'Probe CLIs:
mystilink-mcp status
mystilink-mcp versionMCP (stdio)
Default entry starts the MCP server on stdio:
mystilink-mcp
# same as:
mystilink-mcp stdioCursor MCP config example
See examples/cursor-mcp.json. Typical shape:
{
"mcpServers": {
"mystilink": {
"command": "mystilink-mcp",
"args": ["stdio"]
}
}
}Ensure calculator CLIs are on the same PATH as the process Cursor launches.
Tools
Tool | Calculator |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| PATH probe |
| package version |
Most chart tools accept envelope (default true) and optional locale.
Local FastAPI (127.0.0.1 only)
mystilink-mcp local-api
# listens on http://127.0.0.1:8765
# override port: MYSTILINK_MCP_LOCAL_PORT=8765Method | Path |
GET |
|
GET |
|
POST |
|
POST |
|
POST |
|
POST |
|
POST |
|
POST |
|
POST |
|
POST |
|
Example:
curl -s http://127.0.0.1:8765/health
curl -s -X POST http://127.0.0.1:8765/v1/tarot/draw \
-H 'content-type: application/json' \
-d '{"seed":123}'Python API
from mystilink_mcp.tools import bazi_calculate, tarot_draw
chart = bazi_calculate(date="1990-05-15", hour=12, timezone="Asia/Shanghai")
draw = tarot_draw(seed=123)Limits
Requires separately installed calculator packages / CLIs
Does not interpret charts or call remote Mystilink product APIs
Local FastAPI host is hardcoded to
127.0.0.1
License
MIT. See LICENSE.
Feedback
Report issues with: tool name, CLI version (bazi version, …), and a minimal fictional payload.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
MCP server exposing the Backtest360 engine API as tools for AI agents.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceRemote MCP server for Zi Wei Dou Shu / Tu Vi Dau So astrology tools, exposing read-only tools like get_astrolabe, get_horoscope_decades, etc., designed for Railway deployment and OpenAI ChatGPT developer mode.-
- AlicenseAqualityAmaintenanceProvides traditional Chinese astrology (Bazi, Ziwei) and divination (Liuyao, Meihua, Qimen, etc.) calculations as MCP tools for AI assistants.18357 npm129Apache 2.0
- AlicenseBqualityFmaintenanceWindows-local stdio MCP server for Chinese calendar and Four Pillars (BaZi) calculations, providing deterministic tools for day pillars, four pillars, calendar context, and natural calendar context.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents and local programs to perform North-school Zi Wei, BaZi, palace overlay, and bidirectional cross calculations via a local stdio MCP, returning structured numerical and structural data.MIT