Astro MCP Server

A modular Model Context Protocol (MCP) server that provides unified access to multiple astronomical datasets through a clean, extensible architecture.

Local serverstdioPython

What is the Astro MCP MCP server?

Astro MCP becomes available to MCP clients through the astro mcp mcp server. A modular Model Context Protocol (MCP) server that provides unified access to multiple astronomical datasets through a clean, extensible architecture.

What Astro MCP does

A modular Model Context Protocol (MCP) server that provides unified access to multiple astronomical datasets through a clean, extensible architecture.

Tools it exposes

Once connected, the assistant can call these 12 tools directly:

  • search_objects — Find astronomical objects (DESI)
  • astroquery_query — Universal queries across 40+ astronomical services
  • get_spectrum_by_id — Retrieve detailed spectral data (DESI)
  • list_astroquery_services — Show all available astronomical databases
  • get_astroquery_service_details — Detailed service information
  • search_astroquery_services — Find services by criteria
  • preview_data — Inspect saved files with structure analysis
  • list_files — Manage saved data across all sources
  • file_statistics — Storage usage and organization info
  • convert_to_fits — Convert data to FITS format
  • Testing — The Testing tool exposed by this server
  • Contributing — 1. Fork the repository 2. Create a feature branch (git checkout -b feature/new-capability) 3. Add your data source or tool following the existing patterns 4

Installing the astro mcp mcp server

The server is distributed via PyPI as sparclclient, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Astro MCP sits in that group, and the shape of its toolset — search_objects, astroquery_query, get_spectrum_by_id among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • With 12 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use Astro MCP.
  • Maintained by SandyYuan, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the astro mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
search_objectsFind astronomical objects (DESI)
astroquery_queryUniversal queries across 40+ astronomical services
get_spectrum_by_idRetrieve detailed spectral data (DESI)
list_astroquery_servicesShow all available astronomical databases
get_astroquery_service_detailsDetailed service information
search_astroquery_servicesFind services by criteria
preview_dataInspect saved files with structure analysis
list_filesManage saved data across all sources
file_statisticsStorage usage and organization info
convert_to_fitsConvert data to FITS format
TestingThe Testing tool exposed by this server.
Contributing1. Fork the repository 2. Create a feature branch (git checkout -b feature/new-capability) 3. Add your data source or tool following the existing patterns 4. Write tests for new functionality 5. Update documentation and

How to install the Astro MCP MCP server

{
  "mcpServers": {
    "astro-mcp": {
      "command": "/path/to/conda/envs/mcp/bin/python",
      "args": ["/path/to/astro_mcp/server.py"],
      "cwd": "/path/to/astro_mcp",
      "env": {}
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Astro MCP to search objects.
  • Use Astro MCP to astroquery query.
  • Use Astro MCP to get spectrum by id.

Frequently asked questions

It connects Astro MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 12 tools (search_objects, astroquery_query, get_spectrum_by_id, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Astro MCP directly.