# Starfetch MCP server

> Enables AI agents to query public astronomy catalogs using metadata-first TAP and ADQL tools.

- Repository: https://github.com/starfetch-js/starfetch
- Page: https://hostedmcp.org/servers/starfetch-js/starfetch
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.3.0

## Install

### Claude Code

```sh
claude mcp add starfetch -- npx -y @starfetch-js/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "starfetch": {
      "command": "npx",
      "args": [
        "-y",
        "@starfetch-js/mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "starfetch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@starfetch-js/mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"starfetch","type":"stdio","command":"npx","args":["-y","@starfetch-js/mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "starfetch": {
      "command": "npx",
      "args": [
        "-y",
        "@starfetch-js/mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add starfetch -- npx -y @starfetch-js/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.starfetch]
command = "npx"
args = ["-y", "@starfetch-js/mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user starfetch npx -- -y @starfetch-js/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "starfetch": {
      "command": "npx",
      "args": [
        "-y",
        "@starfetch-js/mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ALLOWED_ORIGINS` | no | no |  |

## FAQ

### What astronomy services are supported?

Gaia, SIMBAD, VizieR, the NASA Exoplanet Archive, and IRSA are available as built-in service presets.

### Can I use Starfetch with private or authenticated archives?

No, Starfetch is designed for public services and does not accept credentials or implement authenticated TAP workflows.

### How does Starfetch ensure query reliability?

It inspects live schemas instead of guessing, bounds queries by default, and returns exact ADQL, limits, and units for reproduction.
