Connect with MCP
Connect Claude Desktop, Cursor or any MCP client to the Air Pixels Data API and query airframes, performance and rates from a prompt.
What MCP gives you
The hosted Model Context Protocol server puts the same three Air Pixels datasets that REST exposes — airframes, field performance and service rates — in front of an AI agent as six read-only tools. Your key and your quota are the same ones you already use for the REST API, so there is nothing extra to buy or configure.
The server address is https://mcp.airpixels.com/v1. Point an MCP client at it and the agent can decide which tool to call, chain a search into a performance recalculation, and explain the result in plain language.
Server details
| Setting | Value |
|---|---|
| URL | https://mcp.airpixels.com/v1 |
| Authentication | Authorization: Bearer header with your API key, sent on every request |
| Transport | Streamable HTTP, stateless, JSON responses. No SSE stream and no session id, and GET and DELETE return 405, which clients read as "no stream" |
| Protocol versions | 2025-06-18 (preferred) and 2025-03-26, negotiated during initialize |
| Metering | Each tools/call counts as one API call against your plan quota |
Connect a client
Any client that accepts a server URL plus headers uses this configuration, including Claude Desktop, Cursor and most other MCP clients. Add the entry to the client's MCP configuration file:
{
"mcpServers": {
"air-pixels": {
"type": "http",
"url": "https://mcp.airpixels.com/v1",
"headers": {
"Authorization": "Bearer ap_live_example_7fk2m9qx"
}
}
}
}
You can keep the key out of the config file instead. Store it in an environment variable and let the client expand it at startup, for example Bearer ${AP_KEY} in the same headers object.
Claude Code has a one-line alternative that writes the entry for you:
claude mcp add --transport http air-pixels https://mcp.airpixels.com/v1 --header "Authorization: Bearer $AP_KEY"
Restart the client after adding the server, then open its MCP or tools panel. The air-pixels server should appear with all six tools listed.
The server accepts the key only as a header and does not offer OAuth yet. A connector that can only sign in with OAuth, such as a claude.ai custom connector, cannot connect today.
Available tools
| Tool | What it does | Key arguments |
|---|---|---|
search_airframes | Searches the Hardware Index. Available on all plans; Builder and up get every field. | q, manufacturer, class, faa_tier, min_weight_g, max_weight_g, max_kit_cost_usd, released_after, rtk, has_thermal, sort, limit, cursor |
get_airframe | Returns one airframe by id. Available on all plans. | id (required) |
compare_airframes | Compares 2 to 10 airframes. Builder and up also get Field Performance and meta.leaders, the best airframe per metric; Explorer gets specs only. | ids (2 to 10, required), the nine mission conditions, camera |
recalc_performance | Runs the Field Performance Model on chosen or filtered airframes. Builder and up. | airframe_ids (up to 100) or any search_airframes filter, the nine mission conditions, camera, min_usable_flight_min, sort, limit, cursor |
get_service_rates | Returns Service Rate Benchmark rows. Builder and up. | job_type, metro, state, limit, cursor |
list_rate_dimensions | Lists valid job type and metro slugs. Builder and up. | None |
Pass mission conditions as top-level arguments, and a conditions object also works if your client prefers to nest them. List arguments accept either a single string or an array of strings.
meta.leaders names the best airframe per metric, drawn from longest_usable_flight, largest_mission_radius, most_acres_per_battery, finest_gsd, lowest_kit_cost and highest_overall_score.
Example: find an airframe that still flies in wind
Which enterprise thermal drones under 1 kg still give 20 usable minutes in 15 mph wind, at 41 °F and 5,280 ft, with a 25% reserve?
The agent turns that prompt into a single tools/call on recalc_performance, using the constraints as filter arguments:
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "recalc_performance",
"arguments": {
"class": "enterprise_thermal",
"max_weight_g": 1000,
"wind_mph": 15,
"temp_f": 41,
"elevation_ft": 5280,
"reserve_pct": 25,
"min_usable_min": 20
}
}
}
The trimmed result, taken from structuredContent:
{
"data": [
{
"airframe_id": "dji-mavic-3-thermal",
"model": "Mavic 3 Thermal (M3T)",
"usable_flight_min": 22.739,
"mission_radius_mi": 4.258,
"acres_per_battery": 43.889,
"kit_cost_usd": 7204,
"faa_tier": "over250",
"verified_at": null
}
],
"next_cursor": null,
"meta": {
"model_version": "dce-engine-2026-11",
"total": 1
}
}
One airframe qualifies: the Mavic 3 Thermal, with 22.7 usable minutes. The same calculation is available in code through the REST performance endpoint, and the Field Performance Model explains what each number means.
Every result carries the REST envelope (data, next_cursor and meta) twice: as compact JSON in content[0].text and as structuredContent. Under protocol 2025-03-26 only the text is sent, so a client on that version has to parse the JSON string itself.
Limits and billing
MCP calls spend the same plan quota as REST calls. Each tools/call counts as one call, and recalc_performance and get_service_rates count one call per page of up to 100 records. The handshake methods initialize and ping, the discovery method tools/list, and notifications are free.
Calls the server rejects for invalid arguments, and calls stopped by your plan, rate limit or quota, are not counted. See Plans and limits for the quotas on each plan.
Errors
Plan, quota, rate-limit and not-found problems come back as a normal tool result with isError: true and an error object carrying code, message and retry_after. Because the agent reads the error instead of failing the transport, it can explain the problem or retry after the suggested delay.
Authentication failures happen earlier. A missing or bad key returns HTTP 401 with JSON-RPC error -32001, where error.data.code is missing_key, invalid_key or key_revoked. Invalid arguments or an unknown tool name return JSON-RPC error -32602.
| Problem | What the client sees | What to check |
|---|---|---|
| Key missing or rejected | HTTP 401, JSON-RPC error -32001; error.data.code is missing_key, invalid_key or key_revoked | That the Authorization header is present on every request and the key has not been rotated or revoked |
| Invalid arguments or unknown tool | JSON-RPC error -32602 | The tool name is spelled exactly as listed in the table above, and argument names and types match |
| Plan, quota or rate limit | Tool result with isError: true and an error object | Your plan tier and remaining quota, and the retry_after value before retrying |
| Unknown airframe id | Tool result with isError: true and an error object | That the id came from a search_airframes result and is still current |
MCP or REST?
| Use MCP when | Use REST when |
|---|---|
| An AI agent or chat client is doing the work, and you want it to choose the tools, combine them and explain the results in language a person can act on. | Your own code needs a predictable request, a stored response you can replay, or tight loop control over pagination and retries. |
| You are exploring the data conversationally, comparing airframes across mission conditions, or answering a one-off question without building anything. | You are building a dashboard, a report or a scheduled job that must behave identically on every run. |