@roxyapi/mcp 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +177 -0
  3. package/dist/index.js +35992 -0
  4. package/package.json +65 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Roxy Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,177 @@
1
+ # Astrology MCP Server
2
+
3
+ The RoxyAPI Astrology MCP server gives any AI agent natal charts, horoscopes, synastry, transits, Vedic kundli, panchang, tarot, numerology and 18+ insight domains on one key, as hosted Remote MCP with nothing to install. RoxyAPI is the data layer for insight apps.
4
+
5
+ ```text
6
+ https://roxyapi.com/mcp/astrology
7
+ ```
8
+
9
+ [![npm](https://img.shields.io/npm/v/@roxyapi/mcp)](https://www.npmjs.com/package/@roxyapi/mcp)
10
+ [![CI](https://github.com/RoxyAPI/astrology-mcp-server/actions/workflows/ci.yml/badge.svg)](https://github.com/RoxyAPI/astrology-mcp-server/actions/workflows/ci.yml)
11
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
12
+
13
+ Point an MCP client at that URL, send your key in the `X-API-Key` header, and the agent can call <!-- BEGIN:TOOLS -->258+<!-- END:TOOLS --> tools across every RoxyAPI domain. Calculations read the NASA JPL DE440 ephemeris directly and are verified against NASA JPL Horizons. Get a key at [roxyapi.com/pricing](https://roxyapi.com/pricing).
14
+
15
+ ## How do I connect an AI agent to the astrology MCP server?
16
+
17
+ Use the hosted Remote MCP URL over Streamable HTTP. Every domain has its own server at `https://roxyapi.com/mcp/{domain}`, so an agent loads only the tools it needs. Add `location` beside any chart domain so the agent can turn a city name into coordinates and a timezone by itself.
18
+
19
+ ```bash
20
+ export ROXY_API_KEY="your-key-from-roxyapi.com/account?tab=keys"
21
+ ```
22
+
23
+ ### Claude Code
24
+
25
+ ```bash
26
+ claude mcp add --transport http --scope user roxy-astrology \
27
+ https://roxyapi.com/mcp/astrology --header "X-API-Key: $ROXY_API_KEY"
28
+ ```
29
+
30
+ Writing integration code rather than calling tools at run time? Point Claude Code at the documentation server instead: `claude mcp add --transport http roxy-docs https://roxyapi.com/mcp/docs`.
31
+
32
+ ### Claude Desktop
33
+
34
+ Claude Desktop starts local servers from `claude_desktop_config.json`, so use the [stdio package](#local-stdio-server) below, or install the `.mcpb` file from the [latest release](https://github.com/RoxyAPI/astrology-mcp-server/releases/latest) in one click and paste your key when asked.
35
+
36
+ ```json
37
+ {
38
+ "mcpServers": {
39
+ "roxy-astrology": {
40
+ "command": "npx",
41
+ "args": ["-y", "@roxyapi/mcp"],
42
+ "env": { "ROXY_API_KEY": "your-key" }
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ ### ChatGPT (Responses API)
49
+
50
+ ```ts
51
+ import OpenAI from 'openai';
52
+
53
+ const openai = new OpenAI();
54
+ const response = await openai.responses.create({
55
+ model: 'gpt-4o',
56
+ tools: [
57
+ {
58
+ type: 'mcp',
59
+ server_label: 'roxy_astrology',
60
+ server_url: 'https://roxyapi.com/mcp/astrology',
61
+ authorization: process.env.ROXY_API_KEY,
62
+ require_approval: 'never',
63
+ },
64
+ ],
65
+ input: 'What is the Sun sign for someone born 1990-05-12 at 14:30 in New York?',
66
+ });
67
+ ```
68
+
69
+ ### Cursor
70
+
71
+ `~/.cursor/mcp.json`:
72
+
73
+ ```json
74
+ {
75
+ "mcpServers": {
76
+ "roxy-astrology": {
77
+ "url": "https://roxyapi.com/mcp/astrology",
78
+ "headers": { "X-API-Key": "${env:ROXY_API_KEY}" }
79
+ }
80
+ }
81
+ }
82
+ ```
83
+
84
+ ### Codex
85
+
86
+ `~/.codex/config.toml`:
87
+
88
+ ```toml
89
+ [mcp_servers.roxy-astrology]
90
+ url = "https://roxyapi.com/mcp/astrology"
91
+ env_http_headers = { "X-API-Key" = "ROXY_API_KEY" }
92
+ ```
93
+
94
+ ### n8n
95
+
96
+ 1. Add an **AI Agent** node and connect an **MCP Client Tool** node to its **Tools** input.
97
+ 2. **Endpoint** `https://roxyapi.com/mcp/astrology`, **Server Transport** HTTP Streamable.
98
+ 3. **Authentication** Header Auth, name `X-API-Key`, value your key.
99
+
100
+ Add one MCP Client Tool node per domain. Use a secret key: publishable `pk_` keys are refused on the MCP servers.
101
+
102
+ ## Local stdio server
103
+
104
+ For clients that only start local servers over stdio. The package relays to the same hosted servers, so the tools, the answers and the billing are identical to Remote MCP.
105
+
106
+ ```bash
107
+ ROXY_API_KEY=your-key npx -y @roxyapi/mcp
108
+ ```
109
+
110
+ | Variable | Default | Meaning |
111
+ |---|---|---|
112
+ | `ROXY_API_KEY` | none | Your RoxyAPI key |
113
+ | `ROXY_MCP_DOMAINS` | `astrology` | Comma separated domains to load, for example `astrology,vedic-astrology,location` |
114
+
115
+ A container image builds from the `Dockerfile` in this repository: `docker build -t astrology-mcp-server .` then `docker run -i --rm -e ROXY_API_KEY astrology-mcp-server`.
116
+
117
+ ## Which domains does it cover?
118
+
119
+ One key reaches every domain. Each slug is a Remote MCP server at `https://roxyapi.com/mcp/{slug}` and a valid `ROXY_MCP_DOMAINS` value.
120
+
121
+ <!-- BEGIN:DOMAINS -->
122
+ | Domain | Slug | Tools |
123
+ |---|---|---|
124
+ | Western Astrology | `astrology` | 39 |
125
+ | Vedic Astrology | `vedic-astrology` | 58 |
126
+ | Forecast | `forecast` | 5 |
127
+ | Human Design | `human-design` | 12 |
128
+ | Chinese Astrology | `chinese-astrology` | 16 |
129
+ | Feng Shui | `feng-shui` | 11 |
130
+ | Mesoamerican Astrology | `mesoamerican-astrology` | 18 |
131
+ | Vastu | `vastu` | 10 |
132
+ | Numerology | `numerology` | 20 |
133
+ | Kabbalah | `kabbalah` | 12 |
134
+ | Tarot | `tarot` | 10 |
135
+ | Biorhythm | `biorhythm` | 6 |
136
+ | Ayurveda | `ayurveda` | 8 |
137
+ | I-Ching | `iching` | 9 |
138
+ | Crystals and Healing Stones | `crystals` | 12 |
139
+ | Dreams | `dreams` | 5 |
140
+ | Angel Numbers | `angel-numbers` | 4 |
141
+ | Location and Timezone | `location` | 3 |
142
+ <!-- END:DOMAINS -->
143
+
144
+ ## What can the astrology tools do?
145
+
146
+ The Western astrology server covers natal charts, daily, weekly, monthly and yearly horoscopes, synastry, composite charts and compatibility scores, transits, progressions, solar arc, profections, solar, lunar and planetary returns, astrocartography, aspects, houses, fixed stars, asteroids and moon phases. The Vedic server adds the kundli birth chart, divisional charts, panchang, Vimshottari dasha from mahadasha down to sookshma, doshas, yogas, shadbala, ashtakavarga, KP astrology and kundli matching. Every tool carries a typed input schema, so the agent fills arguments correctly on the first call.
147
+
148
+ ## How accurate are the calculations?
149
+
150
+ Planetary positions read the NASA JPL DE440 ephemeris directly and are verified against NASA JPL Horizons. The method and the test suite are published at [roxyapi.com/methodology](https://roxyapi.com/methodology).
151
+
152
+ ## Do I need to install anything?
153
+
154
+ No. Remote MCP is the default: paste the URL and your key into any client that speaks Streamable HTTP. The npm package exists only for clients that start local stdio servers.
155
+
156
+ ## How much does it cost?
157
+
158
+ One subscription covers every domain, every endpoint and every MCP server, with flat monthly pricing and no per-domain add-ons. Plans are at [roxyapi.com/pricing](https://roxyapi.com/pricing).
159
+
160
+ ## Which languages are supported?
161
+
162
+ Responses are available in 10+ languages, including English, Hindi, Spanish, German, French, Portuguese, Russian, Turkish and Chinese.
163
+
164
+ ## Related RoxyAPI repositories
165
+
166
+ - [sdk-typescript](https://github.com/RoxyAPI/sdk-typescript), [sdk-python](https://github.com/RoxyAPI/sdk-python), [sdk-php](https://github.com/RoxyAPI/sdk-php), [sdk-go](https://github.com/RoxyAPI/sdk-go), [sdk-dotnet](https://github.com/RoxyAPI/sdk-dotnet): typed SDKs for the same API
167
+ - [ui](https://github.com/RoxyAPI/ui): drop-in chart and reading components
168
+ - [claude-plugin](https://github.com/RoxyAPI/claude-plugin): RoxyAPI skill and docs server for Claude Code
169
+ - [astrology-ai-chatbot](https://github.com/RoxyAPI/astrology-ai-chatbot): an open source astrology chatbot built on these MCP servers
170
+ - [astrology-api-openapi](https://github.com/RoxyAPI/astrology-api-openapi): the OpenAPI specification
171
+ - [astrology-api-benchmark](https://github.com/RoxyAPI/astrology-api-benchmark): the published accuracy benchmark
172
+
173
+ Full MCP guide: [roxyapi.com/docs/mcp](https://roxyapi.com/docs/mcp).
174
+
175
+ ## License
176
+
177
+ MIT