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.
- Open the connectors section of the assistant's settings and add a custom connector.
- Enter
https://api.astromansion.com/mcpas its address. - 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
| Tool | What it does |
|---|---|
search_places | Finds a place's coordinates and time zone from its name. |
natal_chart | Computes a birth chart: planets, houses and aspects. |
body_sign | Gives the sign of a planet or point. |
chart_image | Draws the chart's wheel as an image. |
sky_calendar | Moon phases, retrogrades, eclipses and void-of-course Moon calendars. |
list_techniques | Lists every technique, the plan it needs and an example of its options. |
run_technique | Runs a technique such as transits, returns or profections. |
mansionsql_query | Queries 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.