# `nasa__nasa_images`

NASA Image and Video Library - search NASA's media archive

- Server: [NASA Open APIs](https://gateway.mcpharbor.dev/docs/servers/nasa) (`dev.mcpharbor.gateway/nasa`)
- Price per call: $0.0001 (100 micro-USD); only tools/call is charged
- Endpoint: `https://gateway.mcpharbor.dev/mcp` or `https://gateway.mcpharbor.dev/mcp/nasa`
- Upstream tool: exposed by the provider; called through this gateway as `nasa__nasa_images`
- Provider terms: <https://api.nasa.gov/> (verified 2026-09-19)
- Upstream API documentation: <https://api.nasa.gov/>
- Rate limit: 900 requests per hour
- Attribution required: NASA should be acknowledged as the source of the material

## Parameters

- `media_type` (string, optional): Media type (image, video, audio)
- `page` (number, optional): Page number for pagination
- `q` (string, required): Search query
- `year_end` (string, optional): End year for results
- `year_start` (string, optional): Start year for results

## Example call

Request headers and body:

```http
POST /mcp HTTP/1.1
Host: gateway.mcpharbor.dev
Authorization: Bearer <your gateway API key>
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: nasa__nasa_images
```

```json
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "_meta": {
      "io.modelcontextprotocol/clientCapabilities": {},
      "io.modelcontextprotocol/clientInfo": {
        "name": "example-agent",
        "version": "1.0.0"
      },
      "io.modelcontextprotocol/protocolVersion": "2026-07-28"
    },
    "arguments": {
      "q": "example"
    },
    "name": "nasa__nasa_images"
  }
}
```

A successful response:

```json
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "_meta": {
      "dev.mcpharbor.gateway/call": {
        "chargedMicroUsd": 100,
        "id": "<the id of this charge>"
      }
    },
    "content": [
      {
        "text": "<whatever the upstream tool returned>",
        "type": "text"
      }
    ],
    "resultType": "complete"
  }
}
```

This call costs $0.0001 (100 micro-USD). Reading this page and listing the tool cost nothing.
The `dev.mcpharbor.gateway/call` record in the result is the receipt for that charge. Each
POST is metered separately, so sending the same call again buys another one: see
[agent.txt](https://gateway.mcpharbor.dev/agent.txt), section 7, before retrying.

## Attribution

This provider requires the attribution below wherever you use results from its tools.
Reproduce it verbatim:

> NASA should be acknowledged as the source of the material

## Tool definition

Exactly as `tools/list` returns it (free):

```json
{
  "_meta": {
    "dev.mcpharbor.gateway/pricing": {
      "currency": "USD",
      "pricePerCallMicroUsd": 100
    }
  },
  "description": "NASA Image and Video Library - search NASA's media archive",
  "inputSchema": {
    "properties": {
      "media_type": {
        "description": "Media type (image, video, audio)",
        "type": "string"
      },
      "page": {
        "description": "Page number for pagination",
        "type": "number"
      },
      "q": {
        "description": "Search query",
        "type": "string"
      },
      "year_end": {
        "description": "End year for results",
        "type": "string"
      },
      "year_start": {
        "description": "Start year for results",
        "type": "string"
      }
    },
    "required": [
      "q"
    ],
    "type": "object"
  },
  "name": "nasa__nasa_images"
}
```
