How to Use the AstrologyAPI MCP in Claude Code
Pipe astrological data directly into your shell scripts and CI/CD pipelines with Claude Code and the AstrologyAPI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect AstrologyAPI MCP to Claude Code
Create your Vinkius account to connect AstrologyAPI to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Get Daily Horoscopes in Your Terminal
The `get_daily_prediction` tool is perfect for scripting. You can set up a simple cron job that runs `claude mcp call astrologyapi-mcp get_daily_prediction ...` and pipes the output to an email or a Slack message. You can do the same with `get_basic_panchang` to get daily timings. Since Claude Code is just a CLI, you can pipe the JSON output to `jq` for formatting or send it straight to a webhook. It's just text in, text out.
Scripted Chart Analysis for CI/CD
This MCP server lets you run astrological calculations headlessly. From a shell script, you can call `get_planets_positions` and `get_house_positions` to generate a full birth chart as raw JSON. Chain these calls in a bash script to build a complete profile. For example, you can get planet positions, then immediately run `get_yoga_analysis` on that same data, all within one automated workflow in a GitHub Action.
Run Matchmaking from the Command Line
With Claude Code, you can use the `get_matchmaking_details` tool without ever opening a browser. It's a single command that takes two sets of birth data and returns a JSON object with the compatibility analysis. This is great for building bots or other automated services. The data is clean, predictable, and easy to parse, making it a reliable part of any script you write. This MCP setup makes it feel like any other local binary.
Set up AstrologyAPI MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seeastrologyapi-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest AstrologyAPI transactions." It will automatically discover and invoke the available AstrologyAPI tools.
claude mcp add --transport http astrologyapi-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about AstrologyAPI MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the AstrologyAPI MCP today
We host it, we monitor it, we maintain it. You just paste one token.