# VesselAPI MCP server

> Provides AI assistants with maritime data including vessel tracking, port events, geographic vessel searches, and emissions reports.

- Repository: https://github.com/vessel-api/vesselapi-mcp
- Page: https://hostedmcp.org/servers/vessel-api/vesselapi-mcp
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 2.2.1

## Install

### Claude Code

```sh
claude mcp add vesselapi-mcp -- npx -y vesselapi-mcp
```

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

```json
{
  "mcpServers": {
    "vesselapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vesselapi-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "vesselapi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "vesselapi-mcp"
      ]
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "vesselapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vesselapi-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add vesselapi-mcp -- npx -y vesselapi-mcp
```

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

```toml
[mcp_servers.vesselapi-mcp]
command = "npx"
args = ["-y", "vesselapi-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user vesselapi-mcp npx -- -y vesselapi-mcp
```

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

```json
{
  "mcpServers": {
    "vesselapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vesselapi-mcp"
      ]
    }
  }
}
```

## Environment variables

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

## Tools (19)

- `search_vessels`
- `get_vessel`
- `get_vessel_position`
- `get_vessel_eta`
- `get_vessel_emissions`
- `get_vessel_casualties`
- `get_vessel_positions_batch`
- `search_ports`
- `get_port`
- `get_port_inbound`
- `get_port_events`
- `get_port_events_by_vessel`
- `list_port_events`
- `search_port_events_by_port`
- `search_port_events_by_vessel`
- `get_vessel_last_port_event`
- `list_emissions`
- `get_vessels_in_area`
- `get_vessels_in_radius`

## FAQ

### How do I configure the VesselAPI MCP server?

You can configure it by adding a JSON block to your AI client's configuration file using npx and providing your VESSELAPI_API_KEY.

### What kind of vessel information can I retrieve?

You can search for vessels by name, IMO, or MMSI, and retrieve detailed information, positions, ETAs, emissions reports, and casualty records.

### Can I search for vessels in a specific geographic area?

Yes, the server includes tools to find vessels within a bounding box or a specific radius.

### How does pagination work in the API?

List endpoints use limit and nextToken parameters; when more results are available, the response includes a nextToken to fetch the next page.
