rs-mcp-lunar

rs-mcp-lunar

Enables BaZi and Zi Wei Dou Shu calculations through a stateless MCP server deployed on Cloudflare Workers, providing tools like bazi_chart and ziwei_chart with Markdown-only results.

Category
Visit Server

README

rs-mcp-lunar

BaZi and Zi Wei Dou Shu MCP server for Cloudflare Workers, written in Rust and compiled to WebAssembly. It exposes a stateless Streamable HTTP endpoint at /lunar and returns Markdown-only tool results.

Tools

Domain Tools
BaZi bazi_chart, bazi_structure, bazi_timeline, bazi_period_detail, bazi_shensha
Zi Wei Dou Shu ziwei_chart, ziwei_palace_detail, ziwei_horoscope_overview, ziwei_scope_detail, ziwei_topic_context

Calendar calculations use tyme4rs and iztro; public input schemas are validated by jsonschema.

Local development

Install Rust 1.89+, Node.js 22+, the Wasm target, and the pinned Worker builder:

rustup target add wasm32-unknown-unknown
cargo install worker-build --version 0.8.5 --locked
npm ci
npm run dev

The local MCP URL is http://127.0.0.1:8787/lunar. npm run dev builds build/index.js and build/index_bg.wasm before starting Wrangler.

Deployment

Pushes to main run .github/workflows/deploy.yml. GitHub Actions compiles the complete Worker bundle first, then Wrangler uploads that prebuilt bundle without invoking any Cloudflare-side custom build.

Configure these GitHub Actions secrets in the production environment:

  • CLOUDFLARE_API_TOKEN: scoped to deploy Workers.
  • CLOUDFLARE_ACCOUNT_ID: the target Cloudflare account ID.

Manual deployment uses the same prebuilt-artifact boundary:

npm run build
npm run deploy:dry-run
npm run deploy

Browser clients that send an Origin header must be listed in the MCP_ALLOWED_ORIGINS Worker variable. See the deployment guide for setup and production notes.

Verify

cargo fmt --all -- --check
cargo clippy --all-targets --locked -- -D warnings
cargo clippy --target wasm32-unknown-unknown --lib --locked -- -D warnings
cargo test --all-targets --locked
npm run build
npm run deploy:dry-run

See architecture, contract notes, security notes, and third-party notices.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured