Connect an AI agent (MCP)
Constellation runs a remote Model Context Protocol (MCP) server. Point your AI agent at it with an API key, and the agent can read your topology, request forecasts and send telemetry for you, within the key's scopes and only on your account's data.
| Setting | Value |
|---|---|
| Server URL | https://api.constellation.space/mcp |
| Transport | Streamable HTTP |
| Authentication | Authorization: Bearer <YOUR_KEY> |
Only /mcp takes the key as a bearer token. The REST routes take it in the x-api-key header, and answer 401 auth_failed with reason missing api key to a key sent as Authorization: Bearer.
1. Create a key
Sign in to Platform and open Integrations, API and MCP. Choose Add connection, then API key, then MCP client, then Create key, and copy the secret. It is shown once. The API and MCP detail, in its client snippet, fills your new key into every configuration below.
MCP client ticks topology:read, predictions:read, config:read, config:write, telemetry:write and workflows:write. With those the agent can load the demo fleet, change your network config, send telemetry and run workflows. Untick what the agent should not do, and tick act:approve if it should decide held recommendations. Each tool in Tools names the scope it needs.
cos_test_ key an older account still holds connects too, but reads only the shared sandbox: the server refuses its calls to tools that write and to the workflow tools.
2. Add the server to your agent
- Claude Code
- Claude Desktop
- Cursor
- VS Code
- Codex CLI
- Gemini CLI
- Grok Build
claude mcp add --transport http constellation https://api.constellation.space/mcp \
--header "Authorization: Bearer <YOUR_KEY>"
Add this to claude_desktop_config.json, which Settings, then Developer, then Edit config opens in Claude Desktop. Then restart Claude Desktop. It needs Node.js.
{
"mcpServers": {
"constellation": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.constellation.space/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer <YOUR_KEY>" }
}
}
}
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"constellation": {
"url": "https://api.constellation.space/mcp",
"headers": { "Authorization": "Bearer <YOUR_KEY>" }
}
}
}
Add to .vscode/mcp.json:
{
"servers": {
"constellation": {
"type": "http",
"url": "https://api.constellation.space/mcp",
"headers": { "Authorization": "Bearer <YOUR_KEY>" }
}
}
}
Run in your terminal. The key stays in your environment, not in the config file:
export CONSTELLATION_API_KEY="<YOUR_KEY>"
codex mcp add constellation --url https://api.constellation.space/mcp --bearer-token-env-var CONSTELLATION_API_KEY
Run in your terminal. The key stays in your environment, not in the config file:
export CONSTELLATION_API_KEY="<YOUR_KEY>"
gemini mcp add --scope user --transport http constellation https://api.constellation.space/mcp --header 'Authorization: Bearer $CONSTELLATION_API_KEY'
Gemini loads MCP servers only in folders you trust.
Run in your terminal:
grok mcp add --transport http constellation https://api.constellation.space/mcp --header "Authorization: Bearer <YOUR_KEY>"
Their built-in web connectors sign in with OAuth, which the Constellation MCP server does not offer yet. Use Claude Desktop or Claude Code in the meantime.
3. Ask your agent
- "Load the demo fleet, then tell me which antennas will see each satellite ten minutes from now, and at what SNR."
- "Forecast SNR for the links at ksat-svalbard five minutes from now and flag anything under 10 dB."
- "Which of my ground stations are degraded right now?"
- "Forecast SNR on each link to my first satellite ten minutes from now."
- "How many predictions have I used this month?"
Tools
Each tool runs a REST route with your key, so the route's scopes, plan checks and account scoping apply unchanged. load_demo_fleet is the one tool that runs several: it reads GET /topology/config, merges with PATCH /topology/config, then writes with POST /telemetry. A key without the scope gets the route's 403, and the agent sees it as the tool's error.
| Tool | What it does | Arguments | Needs |
|---|---|---|---|
load_demo_fleet | Loads a ready-made demo fleet into your account: 5 ground stations with 7 antennas and 6 Earth observation satellites, 5 sun-synchronous and 1 geostationary (NOAA 20, NOAA 21, Suomi NPP, Landsat 9 and Sentinel-2C on X and Ka band, and GOES 19 on its L-band broadcast), merged into your network config, and the simulated link telemetry of its passes in the last two hours, ending now. Returns the records accepted and rejected, and a note when the config was not merged. Safe to repeat. A network config of your own takes the demo beside it. One that uses a demo id for an entity of its own is refused with 409 demo_ids_taken, and nothing is written, as with POST /topology/demo-fleet. | None | telemetry:write, and config:write for the first load into an account. Live key. |
get_topology | Your fleet as declared and as observed, as GET /topology returns it: config is the latest network config, state the newest value of each link field per antenna and satellite. | freshness_seconds (1 to 3600, default 300), as_of_utc, and lists of ground_station_id, ground_antenna_id, satellite_id | topology:read. config is null unless the key also has config:read, config:write or workflows:write. |
get_predictions | Forecasts from GET /predictions. For Link SNR, name a future instant in at and a satellite, a station or antennas, or both sides: each link up at that instant comes back with its snr_db_p50. A link that is not up then is declined with below_min_elevation, so pick a time in a pass. link_ids is for links sending telemetry now: it forecasts 1, 3 and 5 minutes past their latest record, and a link with no telemetry from the last minute answers no_telemetry. Weather attenuation takes at too. RF interference takes at with one station, one of its antennas and a satellite. SSA pass forecast takes at, within 7 days of now, with a satellite and optionally a station. Up to 100 ids per call; up to 25 without a stored forecast are computed per call, and the rest come back as prediction_unavailable to retry shortly. | at with satellite_id, ground_station_id or ground_antenna_id, or link_ids (ground antenna ids); model_family (snr, the default, weather-attenuation, rfi or ssa); horizon_minutes; as_of_utc | predictions:read. A call that returns a forecast counts as one prediction. |
send_telemetry | Writes link records keyed by your network config, as in POST /telemetry: it writes every record that passes and lists the rest by index in rejections. It refuses the whole call only when no record passes or a record does not match the record schema. | records: 1 to 1,000 records | telemetry:write. Live key. |
get_telemetry | Link records between two times, as in GET /topology/series, oldest first: raw for up to an hour, or aggregated into windows. | start, end (required); lists of ground_station_id, ground_antenna_id, satellite_id, field; interval and agg to aggregate | topology:read |
get_network_config | Your ground stations with their antennas, and your satellites with their radios, as in GET /topology/config. | version (the latest when left out) | config:read, config:write or workflows:write |
patch_network_config | Merges a JSON merge patch into your network config and stores it as a new version, as in PATCH /topology/config. A satellite with catalog: {norad_id} or a station with catalog: {station_id} is filled from the asset catalog where the patch leaves fields out. | document: the patch | config:write. Live key. |
search_catalog | Searches the public asset catalog of satellites and ground stations, as in GET /assets/satellites and GET /assets/stations, so an agent can build your fleet from it. | kind (satellites or stations); q, operator, fleet, band (S, X, Ka); near (lat,lon) and within_km for stations; limit (up to 200) and cursor | topology:read |
list_workflows | Your saved workflows at their latest versions, or the read-only templates to copy from. | templates (true for the templates) | config:read, config:write or workflows:write. Live key. |
put_workflow | Saves a workflow graph under a slug as its next version. A graph with problems is refused with each one. | slug, name, graph | workflows:write or config:write. Live key. |
create_scenario | Stores a what-if scenario, such as antennas taken down or extra attenuation in dB per antenna, and returns its scenario_id. | name, antennas_down, stations_down, extra_attenuation_db, and the other scenario fields | config:write. Live key. |
run_workflow | Starts a run of a saved workflow and returns its run_id. deliver: false is a test run that sends nothing. A run computes at most 4,000,000 link steps; more is refused with a suggested_step_s that fits. | workflow (the slug), from and to, or at; scenario_id, workflow_version, deliver | workflows:write. Live key. A run that delivers needs the Operator plan or above. |
get_run | A run's status and, when it is done, its items (each pass or link with p10/p50/p90 and the explain ledger), as GET /predictions answers run_id or workflow. Read a big run in pages. Not counted as a prediction. | run_id, or workflow for its newest finished run; page_records and page; lists of satellite_id, antenna_id, station_id, pass_id to narrow | predictions:read. Live key. |
get_passes | Every pass of your fleet between two times, from the live orbit catalog and each antenna's mask, as in GET /topology/passes. Below Operator it covers 2 of your own satellites; the demo fleet's are free. | from, to, step_s (required); lists of satellite_id, antenna_id | topology:read |
list_actions | The actions a workflow's current run holds for approval, each pending, approved, rejected or expired, with its deadline. | workflow | predictions:read. Live key. |
approve_action | Approves a held action: it is published to the workflow's mission control connections as approved advice, and cannot be rejected afterwards. Constellation books and cancels nothing. | run_id, item_id (from list_actions) | act:approve, and the Operator + Act plan. Live key. |
reject_action | Rejects a held action: nothing is published, and it cannot be decided again. | run_id, item_id | act:approve. Live key. |
get_usage | Your plan, and this month's counts of predictions, chat turns and telemetry points, as in GET /account/state. | None | Any key |
The workflow tools (list_workflows, put_workflow, create_scenario, run_workflow, get_run, get_passes, list_actions, approve_action, reject_action) are listed only where workflows are on. Elsewhere your agent does not see them. A workflow is what the Platform shows on Automations.
No fleet yet? Start with the demo fleet
A new account has no data, so ask the agent to call load_demo_fleet first. It writes the demo fleet's network config and two hours of simulated telemetry ending at the present, so get_topology returns data straight away. Loading does not count as predictions. Like POST /topology/demo-fleet, it refuses an account whose network config holds assets of your own, and leaves that config as it is.
The five sun-synchronous satellites are in low orbit, so each link is up only during a pass. Have the agent ask for SNR with get_predictions and at, at a time inside a pass that get_passes lists. Where workflows are off and get_passes is not listed, name a satellite and a time: every antenna that sees it then comes back. link_ids answers only while a pass is under way, right after a load, and returns no_telemetry the rest of the time. Forecasts are computed on demand. Up to 25 links without a stored forecast are computed per call, and the rest come back as prediction_unavailable, to retry after a short pause.
To explore the same fleet in a notebook or spreadsheet, download it from Hugging Face.
Limits
No plan caps monthly usage, so no tool call is refused because of this month's count. Usage is counted as for the REST API: a get_predictions call that returns at least one forecast counts as one prediction, telemetry writes count as telemetry points, and reads of topology, telemetry and runs are not counted. Each tool call is two requests against your rate limits: the call to /mcp and the route it runs. Ask the agent for get_usage, or call GET /account/state with your key, for this month's counts; the Usage page shows them too.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
401 or "unauthorized" | The key is missing, mistyped, or revoked. | Check the Authorization: Bearer header, or create a new key. |
403 insufficient_scope | The key lacks the scope named in required. | Create a key with that scope; each tool's scope is in Tools. |
get_predictions lists every link under no_telemetry | The agent asked by link_ids for links with no telemetry in the last minute, as the demo fleet has between passes. | Ask by at instead, at a time in a pass. |
get_predictions lists links under below_min_elevation | The satellite is not up at at. | Pick a time inside a pass. |
403 sandbox_read_only or live_key_required | The key is a test key. | Use a live key for tools that write and for the workflow tools. |
429 rate_limited | Too many requests. | Wait the Retry-After delay; see Errors and limits. |
| The agent lists no Constellation tools | The client did not load the config. | Restart the client after editing its config file. |
Keep agent configuration files private. Anyone holding the key can call the API as you, with the key's scopes. Revoke a key on Integrations, API and MCP and it stops working everywhere.
Related
- AI agents for satellite operations: what an AI agent can do, and the scopes and limits it works within
- Predictions API: what
get_predictionsreturns
Next: connect your mission control system, so a bridge delivers workflow results to it.