xavieryang007
MCP Serverxavieryang007public

ziwei mcp

基于Go语言开发的紫微斗数排盘微服务,支持阳历/农历排盘。

Repository Info

1
Stars
3
Forks
1
Watchers
0
Issues
Go
Language
-
License

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

1

Clone the repository

git clone https://github.com/xavieryang007/ziwei-mcp
2

Install dependencies

cd ziwei-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerxavieryang007
Repoziwei-mcp
LanguageGo
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation