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
/datadirectory:npm run fetch-catalogsThis downloads catalog files directly to the
datadirectory: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 buildStart the server:
npm startThe 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 startornpm 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 buildAdd 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
argsarray 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
Celestial Positioning Server
Project Details
- Rkm1999/CelestialMCP
- Last Updated: 4/17/2025
Recomended MCP Servers
Youtube Transcript Download MCP
This read-only MCP Server allows you to connect to SingleStore data from Claude Desktop through CData JDBC Drivers....
JIRA MCP Server Implementation in Python
MCP server for Agent8
MCP implementation of https://linkd.inc/
This is a demo
Guide to connect to Trade Agent's MCP server and trade stocks and crypto
MCP Server with Cloudflare Workers
A Model Context Protocol (MCP) server that converts various file formats to Markdown using the MarkItDown utility.





