Stellarium MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Stellarium MCP Server
An MCP (Model Context Protocol) server that lets AI agents control Stellarium — the open-source planetarium software — via its Remote Control HTTP API.
Built for astronomy workflows including telescope alignment, observation planning, and sky exploration. Especially useful in the southern hemisphere where Polaris is not available for polar alignment.
Prerequisites
Node.js 18+ installed
Stellarium installed with the Remote Control plugin enabled
Open Stellarium → Press
F2→ Plugins → Remote ControlCheck "Load at startup"
Click "configure" → Check "Server enabled" and "Enable automatically on startup"
Default port:
8090
Related MCP server: mcp-server-ascom
Installation
npm install -g stellarium-mcpOr use directly with npx — no install needed.
Usage with Claude Desktop
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"stellarium": {
"command": "npx",
"args": ["stellarium-mcp"]
}
}
}Usage with Claude Code
claude mcp add stellarium -- npx stellarium-mcpBuild from Source
git clone https://github.com/Alfredao/stellarium-mcp.git
cd stellarium-mcp
npm install
npm run buildEnvironment Variables
Variable | Default | Description |
|
| Stellarium Remote Control host |
|
| Stellarium Remote Control port |
| (none) | Password if authentication is enabled |
Available Tools
Core Tools
Tool | Description |
| Get current observer location, time, view direction, and FOV |
| Search for celestial objects by name |
| Get detailed info (coordinates, magnitude, rise/set times) |
| Point the view/telescope to a named object |
| Point the view/telescope at raw J2000 RA/Dec coordinates |
| Pan the view in a direction, with automatic stop |
| Get current viewing direction in multiple coordinate systems |
| Set the field of view (zoom level) |
Alignment Helpers
Tool | Description |
| Suggest optimal stars for telescope multi-star alignment |
| List objects of a given type in the catalogue |
| List all available object type categories |
Time & Location
Tool | Description |
| Set simulation time (Julian Day, UTC string, or time rate) |
| Reset simulation to current real-world time |
| Set the observer location by database id or explicit coordinates |
| Search observing sites, or list valid countries and planets |
Advanced
Tool | Description |
| Query the SIMBAD astronomical database |
| Execute Stellarium Script code directly |
| Run one of Stellarium's bundled script files by name |
| List the available script files |
| Check whether a script is currently running |
| Stop the running script |
| Read a Stellarium internal property |
| Write a Stellarium internal property |
| Toggle display features (grids, constellations, atmosphere, etc.) |
| Trigger any Stellarium action by id (escape hatch) |
Example Conversations
"What bright stars can I use to align my telescope tonight?"
→ Agent uses get_status to check location/time, then suggest_alignment_stars to find the best 3 stars.
"Show me where the Southern Cross is"
→ Agent uses search_object for "Crux", then point_to_object to center the view.
"What planets are visible right now?"
→ Agent uses list_visible_objects with type "Planet", then get_object_info on each to check altitude.
"I'm observing from Atacama next week — what will the sky look like?"
→ Agent uses search_locations to find the site, set_location to move the observer there, then set_time to jump to the observing night.
Notes
point_to_coordinatestakes right ascension in degrees, J2000 epoch. Catalogues usually quote RA in hours — multiply by 15.Pointing by altitude/azimuth is not exposed as a tool. Stellarium's
altAzvector frame is South-based, which conflicts with the North-based azimuth reported byget_object_info; userun_scriptif you need it.Endpoints follow the Stellarium 23.0 Remote Control API. Older Stellarium builds may not implement all of them.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Flight and sky conditions for agents, from METAR/TAF and airports to aurora and satellite passes.
AgentReady Tools is a searchable catalog of more than 250 APIs, MCP servers and developer tools that AI agents can use, each with agent-readiness checks (docs, auth, OpenAPI, MCP support). Search by task, get tool details and related tools, and read or share field notes from other agents in the Agent Community. Remote MCP endpoint: https://agentready-tools.com/mcp
Astronomical logical calculator for AI clients.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Related MCP Servers
- AlicenseAqualityCmaintenanceAccurate astronomical catalog data and observing session planner for LLM assistants. Stops hallucinated magnitudes, coordinates, and visibility.390 npm3MIT
- AlicenseNot gradedqualityCmaintenanceControl telescopes, cameras, and focusers with AI through natural language, using any ASCOM Alpaca device.MIT
- AlicenseBqualityDmaintenanceMCP server that provides tools to query 17+ astronomical databases (e.g., SIMBAD, VizieR, Gaia) via HTTP/TAP APIs, enabling AI applications to access astronomical data through natural language.2329 npm2BSD 3-Clause
- FlicenseAqualityDmaintenanceEnables AI agents to control N.I.N.A. astronomy software remotely, including mount, camera, sequencer, and other equipment via the ninaAPI plugin.66-