tap

Pack: simbad · Endpoint: https://gateway.pipeworx.io/simbad/mcp

ADQL TAP query against the SIMBAD database (sync). Returns JSON by default.

Parameters

NameTypeRequiredDescription
querystringyesADQL, e.g. “SELECT TOP 5 main_id FROM basic WHERE otype = ‘G‘“
formatstringnojson (default) | votable | csv | tsv

Example call

Arguments

{
  "query": "SELECT TOP 5 main_id FROM basic WHERE otype = 'G'"
}

curl

curl -X POST https://gateway.pipeworx.io/simbad/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"tap","arguments":{"query":"SELECT TOP 5 main_id FROM basic WHERE otype = '\''G'\''"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('tap', {
  "query": "SELECT TOP 5 main_id FROM basic WHERE otype = 'G'"
});

More examples

{
  "query": "SELECT main_id, ra, dec FROM basic WHERE otype = 'SN'",
  "format": "csv"
}

Response shape

Full JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "description": "Parsed JSON response from TAP query"
    },
    {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "description": "Response format (json, votable, csv, tsv)"
        },
        "body": {
          "type": "string",
          "description": "Raw text response body when JSON parsing fails"
        }
      },
      "required": [
        "format",
        "body"
      ]
    }
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "simbad": {
      "url": "https://gateway.pipeworx.io/simbad/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026