
ziwei mcp
基于Go语言开发的紫微斗数排盘微服务,支持阳历/农历排盘。
Repository Info
About This Server
基于Go语言开发的紫微斗数排盘微服务,支持阳历/农历排盘。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
紫微斗数排盘服务
项目简介
基于Go语言开发的紫微斗数排盘微服务,提供阳历/农历两种排盘方式。
功能特性
- 阳历排盘接口
/ziwei_yangli - 农历排盘接口
/ziwei_nongli - 支持时辰自动换算
- 返回标准JSON格式数据
快速开始
环境要求
- Go 1.23+
编译运行
go mod tidy
go run main.go
API文档
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| year | 数字 | 是 | 年份(如2024) |
| month | 数字 | 是 | 月份(1-12) |
| day | 数字 | 是 | 日期(1-31) |
| hour | 数字 | 是 | 小时(0-23) |
| minute | 数字 | 是 | 分钟(0-59) |
| sex | 字符串 | 是 | 性别(男/女) |
时辰对照表
服务自动将小时转换为传统时辰:
0: 子时 (23:00-01:00)
1: 丑时 (01:00-03:00)
...
11: 亥时 (21:00-23:00)
服务配置
通过命令行参数配置:
# 指定监听地址和端口
go run main.go --host 127.0.0.1 --port 3000
依赖库
- mcp-go v0.20.1
- goja JavaScript引擎
- iztro iztro.min.js 紫微斗数排盘核心逻辑文件 (位于项目根目录)
Quick Start
Clone the repository
git clone https://github.com/xavieryang007/ziwei-mcpInstall dependencies
cd ziwei-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.