
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
celestial-position-mcp
Advanced tools
An MCP (Model Context Protocol) server that provides altitude-azimuth coordinates for celestial objects using the current system time and a configured location.
npm install -g celestial-position-mcp
This will install the package globally so you can run it as a command:
celestial-position-mcp
Or install it locally in your project:
npm install celestial-position-mcp
npm install
npm run build
npm start
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.
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'
};
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
Open test.html in your browser to access a simple interface for testing the server's functionality. You can:
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)
Lists available celestial objects by category.
Parameters:
category (optional, default: "all"): Filter by category ("planets", "stars", "dso", "all")npm start or npm run devTo have Claude automatically start the celestial position server:
Add the following to your Claude MCP configuration (usually in %APPDATA%/Claude/claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on MacOS):
mcp_config = {
"mcpServers": {
// Your other servers here...
"celestial-position": {
"command": "npx",
"args": [
"-y",
"celestial-position-mcp"
]
}
}
}
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:
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.
To run in development mode with automatic reloading:
npm run dev
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 filesISC
FAQs
MCP server for celestial object altitude-azimuth coordinates
We found that celestial-position-mcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.