How to connect an astrology MCP server to Claude and ChatGPT

AI assistants describe a birth chart from memory, and they cannot compute planetary positions themselves. With MCP you connect the assistant to a server that does the calculation, and the assistant takes every position from it. This guide connects AstroMansion's MCP server to Claude Code, claude.ai and ChatGPT, step by step.

What is MCP?

MCP (Model Context Protocol) is the shared way to connect an AI assistant to an outside service. The assistant learns which tools the server offers and calls the right one itself while it answers a question. Claude, ChatGPT and many coding tools can connect to MCP servers.

Why the assistant should not compute itself

A language model answers "which sign is the Moon in?" from the examples it remembers. It does not compute a position, so it often gets the Moon and the rising sign wrong. With an MCP server connected, the assistant no longer guesses. It sends the birth details to the server, the server computes from NASA JPL data, and the assistant writes its answer from that calculation.

AstroMansion's MCP server uses the site's own engine. The engine computes the planets from NASA JPL data, and its positions are openly audited against NASA JPL Horizons.

The server address

Every assistant connects to the same address.

https://api.astromansion.com/mcp

The server is also listed in the official MCP Registry as com.astromansion/astrology, where tools that browse the registry find it.

Connect Claude Code

In Claude Code you add the server with one command. Take your API key from your account page and put it in place of am_....

claude mcp add --transport http astromansion https://api.astromansion.com/mcp --header "X-API-Key: am_..."

Restart Claude Code after the command. When you type /mcp, the astromansion server and its tools appear in the list.

Connect claude.ai and ChatGPT

In the assistants that run in the browser you do not type a key. The server supports signing in with your account.

  1. Open the connectors section of the assistant's settings and add a custom connector.
  2. Enter https://api.astromansion.com/mcp as its address.
  3. On the page that opens, sign in with your AstroMansion account and allow the assistant.

From then on the assistant calls AstroMansion's tools itself when you ask about astrology. You can remove the permission at any time from the connected assistants section of your account page.

The server's tools

ToolWhat it does
search_placesFinds a place's coordinates and time zone from its name.
natal_chartComputes a birth chart: planets, houses and aspects.
body_signGives the sign of a planet or point.
chart_imageDraws the chart's wheel as an image.
sky_calendarMoon phases, retrogrades, eclipses and void-of-course Moon calendars.
list_techniquesLists every technique, the plan it needs and an example of its options.
run_techniqueRuns a technique such as transits, returns or profections.
mansionsql_queryQueries a birth chart in SQL with MansionSQL.

When the assistant only knows a place name, it first finds the coordinates and time zone with search_places, then computes the chart.

Example questions

  • "What are the Sun, Moon and rising signs of someone born in London on 15 July 1990 at 14:30?"
  • "List the Mercury retrogrades of 2027 in New York time."
  • "Which are the three tightest aspects in this chart?"
  • "Which Saturn transits reach this chart in the next six months?"

The assistant shows which tool it called in each answer, so you can see that the answer rests on a calculation.

Usage and limits

Every tool call counts against the plan of the account you connected, just like an API request. The free plan has 100 calls a month, and the birth chart is open on it. Tools such as transits, returns, the chart image and MansionSQL open on the paid plans. The list_techniques tool and the pricing page show which plan each technique needs.

To use the same engine in your own app, the REST API and the Python and JavaScript SDKs are on the developers page.

Sources

Frequently Asked

What is MCP?

MCP (Model Context Protocol) is the shared way to connect an AI assistant to an outside service. The assistant learns the server's tools and calls them itself when it needs them.

What is the address of AstroMansion's MCP server?

https://api.astromansion.com/mcp. Claude Code connects with an API key, claude.ai and ChatGPT by signing in with an AstroMansion account.

Does using MCP cost anything?

Every tool call counts against the plan of the connected account. The free plan has 100 calls a month with the birth chart open, and the other techniques open on the paid plans.

More guides