Skip to main content
Glama
@getbirthchart/mcp

@getbirthchart/mcp

Official

@getbirthchart/mcp

Official MCP server 0.2.0 for GetBirthChart astrology calculations. It gives MCP-compatible AI clients access to structured calculations through the public GetBirthChart API; it does not contain or reimplement the astrology engine.

Requirements

  • Node.js 20 or newer

  • A GetBirthChart developer API key

Create a key at getbirthchart.com/developers. Keep it private and do not commit MCP host configuration containing the real key.

Related MCP server: auseklis

Quick start

The package runs over MCP stdio and can be launched with npx:

{
  "mcpServers": {
    "getbirthchart": {
      "command": "npx",
      "args": ["-y", "@getbirthchart/mcp@0.2.0"],
      "env": {
        "GETBIRTHCHART_API_KEY": "gbc_live_your_key_here"
      }
    }
  }
}

This is the standard command-based configuration for hosts that support MCP stdio servers. Use your client’s current documentation for the exact configuration file or UI location; this repository has been protocol-tested with the official MCP TypeScript client, not vendor-specific clients.

Environment variables

Variable

Required

Description

GETBIRTHCHART_API_KEY

Yes

Server-side developer API key.

GETBIRTHCHART_API_BASE_URL

No

HTTPS API base URL override for development/testing. HTTP is accepted only for localhost.

The key is read at startup, never accepted as a tool argument, and never written to stdout, logs, resources, or tool results.

Available tools

All tools are read-only and return structured calculation facts. Inputs use strict fields: date, optional time and place, required latitude, longitude, and timezone, plus optional unknown_time and calculation settings documented below.

Tool

Input

Output

Exact time required?

Unknown-time behavior

calculate_birth_chart

birthData

Mapped natal chart

No

Omits Ascendant and houses; preserves uncertainty.

get_planet_positions

birthData

Planet placements

No

Preserves chart uncertainty.

get_big_three

birthData

Sun, Moon, and optional Rising

No

Does not guess the Ascendant.

get_moon_sign

birthData

Moon sign and uncertainty

No

Returns ambiguity when the backend cannot establish one sign.

get_rising_sign

birthData

Rising sign

Yes

Returns birth_time_required.

calculate_aspects

birthData

Natal aspects

No

Returns backend-owned facts only.

calculate_synastry

person_a, person_b, relationship fields

Synastry aspects and summaries

Per person

Preserves each person's unknown-time limits.

The current public API does not geocode place; provide latitude, longitude, and an IANA timezone even when a place label is included. The MCP server never invents a birth time. The backend may use local midnight as the labeled calculation anchor for an unknown-time assessment, but it never presents that anchor as the person's birth time and never guesses houses, the Ascendant, or an ambiguous Moon sign.

Example input:

{
  "date": "1990-01-15",
  "time": "12:00",
  "place": "New York, NY",
  "latitude": 40.7128,
  "longitude": -74.006,
  "timezone": "America/New_York"
}

Unknown time:

{
  "date": "1990-01-15",
  "unknown_time": true,
  "latitude": 40.7128,
  "longitude": -74.006,
  "timezone": "America/New_York"
}

Calculation options

The natal tools accept the exposed core gbc-astro 1.13.0 options house_system, node_type, aspect_preset, custom_aspect_rules, additional_points, fold, zodiac, and ayanamsa. Omit them for the legacy-compatible defaults: Tropical, Placidus, True Node, Standard aspects, Chiron on, and Lilith off. Sidereal calculations require a named ayanamsa; Lahiri is the recommended product choice. Custom aspects require custom_aspect_rules and each rule uses type, exact_angle, and orb.

The implementation exposes the core's product-relevant house systems (placidus, whole_sign, equal) plus the registered engine systems, Mean Node, Standard/Extended/Custom natal aspects, Mean/True Lilith, Vertex and Part of Fortune requests, and named sidereal ayanamsas. The MCP contract does not add calculation logic or interpretation. Composite and Davison are core/SDK operations but are not MCP tools in this release.

Synastry accepts a relationship-level node_type so both charts use one node convention, plus optional relationship_type, topic, and target_instant. The server preserves response metadata and additive schema 1.x fields. A natal HTTP response may omit calculationHash; that is valid and is never required. The server preserves a returned v2: calculation hash without changing or truncating it. Core compatibility is natal schema 1.9.0 and synastry schema 1.5.0.

Resources

  • getbirthchart://methodology — calculation conventions and unknown-time boundaries.

  • getbirthchart://data-sources — ephemeris, timezone, and location-input provenance.

  • getbirthchart://engine-info — provider and public API metadata.

Authoritative web references: Methodology and Data Sources.

Errors

Tool failures use structured error data with a safe machine-readable code, message, retryable, and optional retry_after. Common codes include validation_error, authentication_required, birth_time_required, location_not_found, ambiguous_location, rate_limit_exceeded, timeout, and internal_error.

Troubleshooting

  • Missing API key: set GETBIRTHCHART_API_KEY in the MCP host's server environment; it is never a tool argument.

  • Authentication or rate-limit errors: use the structured error code and retry_after when present. Do not put the key in a tool call or client log.

  • Unknown-time validation: omit time when unknown_time is true; the server will not substitute noon or invent a Rising sign.

  • Location validation: include numeric WGS84 latitude, longitude, and an IANA timezone; place is only a label and is not geocoded here.

  • Local development: use GETBIRTHCHART_API_BASE_URL only with HTTPS, or HTTP on localhost. Never send a production key to an untrusted host.

Privacy and security

Birth data is passed only to the configured public API for the requested calculation. This package does not persist, cache, or log birth inputs, and it has no analytics or telemetry. The optional base URL override changes the trust boundary; do not send a production key to an untrusted host.

Report security issues privately through the process in SECURITY.md. Do not include API keys in bug reports.

Development

npm install
npm run lint
npm run typecheck
npm test
npm run build

Tests use mocked clients and do not call the production API. To run the built server locally, set GETBIRTHCHART_API_KEY and execute node dist/cli.js; normal protocol traffic stays on stdout, while startup failures are written to stderr.

MCP Registry metadata

Registry metadata is prepared in server.json with server name io.github.getbirthchart-com/getbirthchart-mcp. Publish the npm package first, then authenticate with the official mcp-publisher tool and publish the metadata. Registry submission is intentionally not part of the package build or CI workflow.

Available Tools

7 tools
calculate_aspectsA
Read-onlyIdempotent

Calculate structured natal aspects between chart bodies using GetBirthChart's calculation methodology. Returns factual aspect data without interpretation.

Inputs: date (required), latitude (required), timezone (required), longitude (required), +3 more. Returns: object

calculate_birth_chartA
Read-onlyIdempotent

Calculate structured natal chart data from birth information. When birth time is unknown, preserve that uncertainty and omit time-dependent results such as the Ascendant and houses rather than assuming a default time.

Inputs: date (required), latitude (required), timezone (required), longitude (required), +3 more. Returns: object

calculate_synastryA
Read-onlyIdempotent

Calculate structured synastry relationships between two birth charts. Returns factual inter-chart data without compatibility scores or relationship conclusions.

Inputs: person_a (required), person_b (required). Returns: object

get_big_threeA
Read-onlyIdempotent

Calculate the Sun, Moon, and Ascendant for a birth chart. If birth time is unknown, do not guess the Ascendant; return it as unavailable according to the GetBirthChart contract.

Inputs: date (required), latitude (required), timezone (required), longitude (required), +3 more. Returns: object

get_moon_signA
Read-onlyIdempotent

Calculate the Moon sign while preserving uncertainty when the Moon may have changed zodiac signs during a date with unknown birth time.

Inputs: date (required), latitude (required), timezone (required), longitude (required), +3 more. Returns: object

get_planet_positionsC
Read-onlyIdempotent

Calculate planetary positions for a birth date and optional exact birth time and location. Returns structured placements supported by GetBirthChart.

Inputs: date (required), latitude (required), timezone (required), longitude (required), +3 more. Returns: object

get_rising_signA
Read-onlyIdempotent

Calculate the Ascendant (Rising sign) from birth date, exact birth time, and location. An exact birth time is required; never infer or guess a Rising sign.

Inputs: date (required), latitude (required), timezone (required), longitude (required), +3 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 7 tools

    Disambiguation3/5

    The tools are generally clear but overlap exists: calculate_birth_chart likely subsumes get_planet_positions, get_big_three, get_moon_sign, get_rising_sign, and calculate_aspects. Descriptions help distinguish full-chart vs. granular lookups, but an agent could misselect when a broad chart request overlaps with a specific placement request.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case throughout. The get_ prefix is used for direct placement lookups and calculate_ for computed chart outputs, which is a predictable and recognizable convention.

    Tool Count5/5

    Seven tools is well-scoped for an astrology calculation API: a full chart, key placements, aspects, and synastry. Each tool serves a distinct calculation need and the count feels neither bloated nor thin.

    Completeness4/5

    The server covers the core birth-chart workflows: full chart, planetary positions, Sun/Moon/Rising, aspects, and synastry. Minor gaps exist such as no dedicated Sun-sign or house-position endpoint, but calculate_birth_chart covers those cases and avoids dead ends.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    • Official Divine API MCP for Western Astrology: Natal, Synastry, Transit, Composite, Progressions.

    • Professional Vedic astrology tools for AI agents via MCP.

      https://mcp.vedavisor.com/mcp
    • AstroMansion is a hosted MCP server for astrology computed exactly, never estimated. Positions come from our own engine on NASA JPL ephemerides, with no third-party astrology API behind it. Checked against NASA JPL Horizons, major-planet positions stay within half an arcsecond, and the audit is public at https://astromansion.com/en/accuracy. 52 techniques Natal charts, transits and transit hits, stations, solar, lunar and Saturn returns, secondary progressions, solar arc, primary directions, synastry, composite charts, compatibility, dignities, profections, firdaria, zodiacal releasing, decennials, horary, electional, lunar mansions, Arabic lots, Vedic charts, nakshatras, Vimshottari dasha, navamsa, aspect patterns, midpoints, antiscia, declinations, harmonics, draconic and heliocentric charts, astrocartography, fixed stars, parans, heliacal risings, rectification, great conjunctions, Venus star points, ingresses, the age point, temperament and moon phases. Tools - search_places finds a birthplace with its coordinates and time zone. - natal_chart casts a birth chart with its planets, houses and aspects. - body_sign tells the sign a body stood in at a birth. - list_techniques lists every technique, the plan it needs, and an example of its options. - run_technique runs any of the 52 techniques. - sky_calendar lists moon phases, retrogrades, eclipses and void-of-course Moon periods. - chart_image draws the chart wheel as a PNG. - mansionsql_query answers SQL questions about a chart. Eight tools keep the assistant's context small. list_techniques shows what exists, and run_technique runs it. Connect - Claude and ChatGPT: add https://api.astromansion.com/mcp as a custom connector and sign in with your AstroMansion account. - Claude Code: claude mcp add --transport http astromansion https://api.astromansion.com/mcp --header "X-API-Key: YOUR_KEY" - Any other client: Streamable HTTP at https://api.astromansion.com/mcp, with OAuth or an X-API-Key header. Plans The free plan includes 100 calls a month for natal charts. Paid plans open the other techniques. See https://astromansion.com/en/pricing.

      https://api.astromansion.com/mcp
    • Western natal charts, horoscopes, transits and synastry for AI agents, verified vs NASA JPL.

      https://roxyapi.com/mcp/astrology

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Multi-tradition astrology engine that computes real birth charts, transits, and synastry for AI agents via MCP tools.
      18
      -
    • A
      license
      A
      quality
      C
      maintenance
      Astrology MCP server that computes natal charts, transits, synastry, progressions, returns, eclipses, retrogrades, and moon phases from a real ephemeris, enabling AI agents to provide accurate astrological calculations without hallucination.
      12
      85 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to retrieve precise astrology calculations, including natal charts, transits, composites, harmonic midpoints, and ranked daily aspects, using real ephemeris data rather than guesses.
      5
      1
      AGPL 3.0