Koskamo

Qimena MCP

A free, public MCP server that provides Qi Men Dun Jia chart casting, BaZi Four Pillars calculation, auspicious time ranking, and solar term listing for AI assistants. It uses the same engine as the Qimena website, requires no authentication or API key, and performs calculations only without storing user data.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

Qimena MCP logo, by QimenaCommunity listingStreamable HTTPNo sign-inEndpoint checked 2026-11-01Published by Qimena
MCP endpoint (Streamable HTTP)
https://qimena.com/mcp
Vendor documentation

What you can do with it

  • Casting Qi Men Dun Jia charts for specific moments and locations
  • Computing BaZi Four Pillars with true solar time conversion
  • Ranking the best upcoming double-hours for specific goals
  • Listing 24 solar term instants for any year from 1900 to 2100

Source and maintenance

Community listingRegistry 1.0.0
Maintenance checked

Protocol and capabilities

Server
qimena 1.0.0
MCP protocol
2025-06-18
Tools
4 advertised
Resources
Not advertised
Resource templates
Not advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": false
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

Deterministic Chinese metaphysics calculations. Use qimen_chart for a Qi Men Dun Jia chart of a moment (now by default), bazi_pillars for Four Pillars from a birth time, best_times to rank the coming double-hours for a goal, and solar_terms for the 24 solar-term instants of a year. Times are wall-clock times in an IANA time zone. Results are for cultural and reference use, not professional advice.

Tools

4 advertised

qimen_chart — Qi Men Dun Jia chart
Advertised by the server during the last successful anonymous check.
Advertised read-only

Cast an hour-based Qi Men Dun Jia (奇门遁甲) chart for a moment and place: four pillars, ju, Chief Star and Door, and for each of the nine palaces the deity, star, door, heaven/earth/hidden stems, void, horse star, punishment and door pressure, plus detected patterns, palace scores for the chosen focus and the lucky directions.

qimen_chart input schema
{
  "type": "object",
  "properties": {
    "focus": {
      "enum": [
        "general",
        "career",
        "wealth",
        "love"
      ],
      "type": "string",
      "description": "What the question is about; changes palace scores and lucky directions. Default general."
    },
    "datetime": {
      "type": "string",
      "description": "Local wall-clock time \"YYYY-MM-DDTHH:mm\" in `timezone`. Omit for now."
    },
    "timezone": {
      "type": "string",
      "description": "IANA time zone, e.g. \"Asia/Shanghai\", \"America/New_York\". Default Asia/Shanghai."
    },
    "longitude": {
      "type": "number",
      "description": "Longitude of the place in degrees, east positive, west negative. Default: the standard meridian of the time zone."
    }
  }
}
qimen_chart annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}
bazi_pillars — BaZi Four Pillars
Advertised by the server during the last successful anonymous check.
Advertised read-only

Four Pillars (八字) for a birth moment: converts the clock time with the zone rules for that date (daylight saving included) and the longitude to true solar time; the year follows Li Chun and the day changes at 23:00 true solar time. Returns the pillars, Day Master, five-element counts and the time conversion details.

bazi_pillars input schema
{
  "type": "object",
  "required": [
    "birth_datetime",
    "timezone"
  ],
  "properties": {
    "timezone": {
      "type": "string",
      "description": "IANA time zone of the birthplace, e.g. \"Asia/Shanghai\"."
    },
    "longitude": {
      "type": "number",
      "description": "Birthplace longitude, east positive. Default: the standard meridian of the time zone."
    },
    "birth_datetime": {
      "type": "string",
      "description": "Birth wall-clock time \"YYYY-MM-DDTHH:mm\", as on the birth certificate."
    }
  }
}
bazi_pillars annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}
best_times — Best upcoming double-hours
Advertised by the server during the last successful anonymous check.
Advertised read-only

Cast a Qi Men chart for every double-hour of the next few days and rank them for a goal, using the person's Day Master from the birth date. Returns the top windows with date, hour branch, true-solar-time range, score and the lucky direction at that time.

best_times input schema
{
  "type": "object",
  "required": [
    "birth_date"
  ],
  "properties": {
    "top": {
      "type": "integer",
      "maximum": 10,
      "minimum": 1,
      "description": "How many windows to return, 1-10. Default 5."
    },
    "days": {
      "type": "integer",
      "maximum": 7,
      "minimum": 1,
      "description": "How many days ahead to scan, 1-7. Default 7."
    },
    "focus": {
      "enum": [
        "general",
        "career",
        "wealth",
        "love"
      ],
      "type": "string",
      "description": "Goal to rank for. Default general."
    },
    "longitude": {
      "type": "number",
      "description": "Longitude of where the person is now, east positive. Default 120 (Beijing meridian)."
    },
    "birth_date": {
      "type": "string",
      "description": "Birth date \"YYYY-MM-DD\" (sets the Day Master)."
    }
  }
}
best_times annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": false
}
solar_terms — Solar terms of a year
Advertised by the server during the last successful anonymous check.
Advertised read-only

The 24 solar terms (节气) of a calendar year, 1900-2100, with UTC and Beijing-time instants from the same table the charts use (within about a minute of the Hong Kong Observatory).

solar_terms input schema
{
  "type": "object",
  "required": [
    "year"
  ],
  "properties": {
    "year": {
      "type": "integer",
      "maximum": 2100,
      "minimum": 1900,
      "description": "Calendar year."
    }
  }
}
solar_terms annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}

Prompts

Not advertised

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
1 of 1 (100%)
Average latency
470 ms
95th percentile latency
470 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 470 ms · metadata changed · 4 tool(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http qimena-mcp https://qimena.com/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add qimena-mcp --url https://qimena.com/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable qimena-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "qimena-mcp": {
      "url": "https://qimena.com/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "qimena-mcp": {
      "type": "streamableHttp",
      "url": "https://qimena.com/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start qimena-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "qimena-mcp": {
      "type": "http",
      "url": "https://qimena.com/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http qimena-mcp https://qimena.com/mcp

Claude Desktop

Merge this into claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), then restart Claude Desktop.
Claude Desktop configuration
{
  "mcpServers": {
    "qimena-mcp": {
      "url": "https://qimena.com/mcp"
    }
  }
}

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "qimena-mcp": {
      "serverUrl": "https://qimena.com/mcp"
    }
  }
}

Let your agent find its tools

Find servers like Qimena MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.