# 世运引擎 · shiyun-engine

> 世运引擎 · shiyun-engine is an open-source MCP server for astrology. Deterministic BaZi era-luck overlay engine for developers, with a values layer. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, Self-hosted
- **Repository:** https://github.com/mingjing-me/shiyun-engine
- **MCP Registry name:** io.github.mingjing-me/shiyun-engine
- **Categories:** [astrology](https://ai-powered.com/categories/astrology)
- **Listing updated:** 2026-11-27

## About

This MCP server packages a rule-based overlay model that scores how a BaZi chart relates to the Three Yuan Nine Periods era cycle. It judges whether a chart needs earth in the 8th period or fire and metal-water in the 9th, based on useful gods rather than raw element counts. Output is a set of structured verdict keys, so integrators can map results into their own wording.

The engine also includes a meaning-oriented layer that adds dual-axis judgment for the 9th period, alongside a "stagnant" state for charts whose energy flows but has no clear direction. A companion values document explains how the keys are meant to be used. The package is a base edition; the full commercial rule set is not included.

It suits developers building fortune-telling or chart-reading products who want a transparent, reusable calculation core rather than a finished reading. It runs with zero dependencies on Node 18+ or in browser ESM, and is installed from npm.

## Features

- **Era cycle lookup:** Returns the era, its element, phase label and supply characteristics for a given year.
- **Useful-god overlay scoring:** Classifies a chart against the 8th and 9th periods using needed elements and flow signals.
- **Structured verdict keys:** Outputs machine-readable keys such as buried, propped or stagnant for integrators to localise.
- **Da yun segment overlay:** Maps decade-long pillars onto era spans and flags sweet-spot segments.
- **Year marker flags:** Identifies summary years and transition windows that overlap era changes.
- **Zero-dependency package:** Runs on Node 18+ and in browser ES modules with no external dependencies.

## Good for

- Adding era-based overlays to an existing BaZi chart calculator
- Generating structured verdicts that a fortune-telling app can translate into its own text
- Checking whether a chart's needs align with the current or upcoming era
- Prototyping chart analysis logic before building a full commercial reading engine

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add shiyun-engine -- npx -y shiyun-engine
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add shiyun-engine -- npx -y shiyun-engine
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.shiyun-engine]
command = "npx"
args = ["-y", "shiyun-engine"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user shiyun-engine npx -- -y shiyun-engine

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "shiyun-engine": {
      "command": "npx",
      "args": [
        "-y",
        "shiyun-engine"
      ]
    }
  }
}
```

## FAQ

### How do I install 世运引擎 · shiyun-engine?

Install from npm with npm install shiyun-engine, or import the source directly. It has no dependencies and works on Node 18 or later and in browser ES modules.

### Does 世运引擎 · shiyun-engine produce written readings?

No. It outputs verdict keys and values yardsticks, and the integrating application maps them into its own language.

### Is the full commercial rule set included?

No. This package is the base edition, and the complete judgment version of the author's platform is not part of it or for sale.

### Where can I report bugs or discuss calibration?

Use the GitHub Issues page of the repository for bug reports and rule calibration discussion.

### Is 世运引擎 · shiyun-engine free?

Yes. 世运引擎 · shiyun-engine is open source, so you can use and self-host it for free.

### How do I add 世运引擎 · shiyun-engine to Claude Code?

Run this command in your terminal: claude mcp add shiyun-engine -- npx -y shiyun-engine

### What are the best alternatives to 世运引擎 · shiyun-engine?

The closest alternatives to 世运引擎 · shiyun-engine are Yuanzi Zhiyi Bazi Agent Kit, BaziChart, Freebazi, Qimen Dunjia & BaZi Charts and OpenFate Bazi MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Yuanzi Zhiyi Bazi Agent Kit](https://ai-powered.com/mcp/yuanzi-zhiyi-bazi-agent-kit): Yuanzi Zhiyi Bazi Agent Kit is an open-source MCP server for astrology.
- [BaziChart](https://ai-powered.com/mcp/bazichart-2): BaziChart is a free MCP server for astrology.
- [Freebazi](https://ai-powered.com/mcp/freebazi): Freebazi is an open-source MCP server for astrology.
- [Qimen Dunjia & BaZi Charts](https://ai-powered.com/mcp/qimen-dunjia-and-bazi-charts): Qimen Dunjia & BaZi Charts is a free MCP server for astrology.
- [OpenFate Bazi MCP](https://ai-powered.com/mcp/openfate-bazi-mcp): OpenFate Bazi MCP is an open-source MCP server for astrology.
- [Ancient Echoes](https://ai-powered.com/mcp/ancient-echoes): Ancient Echoes is a freemium MCP server for astrology.
- [知己排盘 BaZi](https://ai-powered.com/mcp/bazi): 知己排盘 BaZi is an open-source MCP server for astrology.
- [Ba-Zi.ai Chinese Astrology](https://ai-powered.com/mcp/ba-zi-ai-chinese-astrology): Ba-Zi.ai Chinese Astrology is a free MCP server for astrology.

---
Source: https://ai-powered.com/mcp/shiyun-engine
