
Celestial Position MCP Server
Provides altitude-azimuth coordinates for celestial objects including planets, over 117,000 stars, and 14,000 deep sky objects based on system time and configurable location.
README
Celestial Position MCP Server
An MCP (Model Context Protocol) server that provides altitude-azimuth coordinates for celestial objects using the current system time and a configured location.
Features
- Get altitude and azimuth coordinates for various celestial objects
- Uses system time by default (with option to specify custom time)
- Uses configurable location settings
- Supports a wide range of celestial objects:
- Solar system objects (Sun, Moon, planets)
- Over 117,000 stars from the HYG Database
- Over 14,000 deep sky objects from the OpenNGC catalog
- Includes Messier, NGC, and IC objects
- Raw coordinates without atmospheric refraction correction
- Fast lookup with efficient database management
Installation
- Make sure you have Node.js and npm installed
- Clone this repository
- Install dependencies:
npm install
Catalog Setup
The server exclusively uses astronomical catalogs from the /data
directory. The catalog loading process follows this order:
-
Use downloaded catalogs from
/data
directory:npm run fetch-catalogs
This downloads catalog files directly to the
data
directory:ngc.csv
- OpenNGC Catalog (14,069 objects)hygdata_v41.csv
- HYG Database v41 (117,949 stars)
-
Automatic download: If no catalogs are found when starting the server, it will attempt to download them automatically.
-
Fallback catalogs: If download fails, the server falls back to sample catalogs or hardcoded data.
Configuration
Before using the server, update your location in src/config.ts
:
export const OBSERVER_CONFIG = {
latitude: 49.2827, // Vancouver latitude (replace with your latitude)
longitude: -123.1207, // Vancouver longitude (replace with your longitude)
altitude: 30, // Elevation in meters
temperature: 15, // Default temperature in Celsius
pressure: 1013.25 // Default pressure in hPa
};
export const SERVER_CONFIG = {
port: 3005, // The server port
host: 'localhost'
};
Usage
-
Build the project:
npm run build
-
Start the server:
npm start
-
The server will start at http://localhost:3005/mcp
-
Use the included test page at test.html to try out the APIs
Testing
Open test.html
in your browser to access a simple interface for testing the server's functionality. You can:
- Look up the position of any celestial object
- List available objects by category
- Test with custom date/time settings
Available Tools
getCelestialPosition
Gets altitude and azimuth coordinates for a celestial object.
Parameters:
objectName
(required): Name of the celestial object (e.g., "Jupiter", "Sirius", "M31")useSystemTime
(optional, default: true): Whether to use the current system timedateTime
(optional): Custom observation time in ISO format (only used if useSystemTime is false)- Use format like "2025-04-15T21:30:00Z" for UTC time
- Use format like "2025-04-15T21:30:00" for local time (system timezone)
listCelestialObjects
Lists available celestial objects by category.
Parameters:
category
(optional, default: "all"): Filter by category ("planets", "stars", "dso", "all")
Using with Claude
Manual Connection
- Start the server using
npm start
ornpm run dev
- Enable developer mode in Claude Desktop
- Add your MCP server: http://localhost:3005/mcp
- Ask Claude to get celestial positions
Auto-Start Configuration
To have Claude automatically start the celestial position server:
-
Build the project first:
npm run build
-
Add the following to your Claude MCP configuration:
mcp_config = { "mcpServers": { // Your other servers here... "celestial-position": { "command": "node", "args": [ "C:\\Users\\ryu\\mcp_local\\celestialPosition\\dist\\index.js" ] } } }
-
Adjust the path in the
args
array to match the actual location of your project
Now you can ask Claude questions like:
- "Where is Jupiter in the sky right now?"
- "What's the position of Sirius?"
- "Can I see M31 from my location tonight?"
Adding to Existing MCP Configuration
If you already have an MCP configuration with other servers, simply add the celestial-position entry to your existing configuration:
mcp_config = {
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"C:\\Users\\ryu\\Downloads",
"C:\\Users\\ryu\\Desktop",
"C:\\Users\\ryu\\mcp_local"
]
},
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY"
}
},
// Add the celestial-position server here:
"celestial-position": {
"command": "node",
"args": [
"C:\\Users\\ryu\\mcp_local\\celestialPosition\\dist\\index.js"
]
}
}
}
This will allow Claude to start multiple MCP servers, including your celestial position server.
Development
To run in development mode with automatic reloading:
npm run dev
Project Structure
src/index.ts
- Entry pointsrc/server.ts
- MCP server implementationsrc/config.ts
- Location and server configurationsrc/fetch-catalogs.ts
- Script to download catalog filessrc/utils/astronomy.ts
- Star and DSO catalog handling and coordinate calculationssrc/tools/
- Tool implementations (getCelestialPosition, listCelestialObjects)data/
- Astronomical catalog files
Resources
- MCP Framework: https://github.com/QuantGeekDev/mcp-framework
- Astronomy Engine: https://github.com/cosinekitty/astronomy
- HYG Database v41: https://github.com/astronexus/HYG-Database/tree/master/hyg/CURRENT
- OpenNGC Catalog: https://github.com/mattiaverga/OpenNGC/tree/master/database_files
License
ISC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.