naftiko: 1.0.0-alpha2
info:
label: MarineTraffic Vessel Information
description: MarineTraffic Vessel Information. 2 operations. Self-contained Naftiko capability covering one MarineTraffic
AIS business surface.
tags:
- MarineTraffic
- AIS
- Maritime
created: '2026-05-25'
modified: '2026-05-25'
binds:
- namespace: env
keys:
MARINETRAFFIC_API_KEY: MARINETRAFFIC_API_KEY
capability:
consumes:
- type: http
namespace: vessels-data-information
baseUri: https://services.marinetraffic.com/api
description: Vessel master data and photographs.
resources:
- name: exportvesselphoto-api_key
path: /exportvesselphoto/{api_key}
operations:
- name: exportvesselphoto
method: GET
description: Vessel Photo
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: vessel_id
in: query
type: integer
description: The Maritime Mobile Service Identity (MMSI) or the IMO number of the vessel You can instead
use shipid
required: true
- name: shipid
in: query
type: integer
description: A uniquely assigned ID by MarineTraffic for the subject vessel
required: false
- name: protocol
in: query
type: string
description: 'Response type. Use one of the following:
'
required: false
- name: vesselmasterdata-api_key
path: /vesselmasterdata/{api_key}
operations:
- name: vesselmasterdata
method: GET
description: Vessel Particulars (Legacy API)
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: v
in: query
type: integer
description: Version of the service to be executed. Use version 5 to get the latest
required: true
- name: mmsi
in: query
type: integer
description: The Maritime Mobile Service Identity (MMSI) of the vessel you wish to track (single or comma separated
values) You can instead use imo or shipid
required: true
- name: imo
in: query
type: integer
description: The International Maritime Organization (IMO) number of the vessel you wish to track (single or comma
separated values)
required: false
- name: shipid
in: query
type: integer
description: A uniquely assigned ID by MarineTraffic for the subject vessel (single or comma separated values)
required: false
- name: timespan
in: query
type: integer
description: 'The timespan parameter defines the period of time, during which we want to receive the change in a
vessel''s details The maximum value can be either 5 when the interval parameter is set to days or 2880
when the interval is set to '
required: false
- name: interval
in: query
type: string
description: The interval parameter can be either minutes or days
required: false
- name: protocol
in: query
type: string
description: 'Response type. Use one of the following: '
required: false
- name: page
in: query
type: integer
description: Page number of the results to be returned
required: false
- name: msgtype
in: query
type: string
description: 'Resolution of the response. Available values: '
required: false
authentication:
type: apikey
key: api_key
value: '{{env.MARINETRAFFIC_API_KEY}}'
placement: path
exposes:
- type: rest
namespace: vessels-data-information-rest
port: 8080
description: REST adapter for MarineTraffic Vessel Information. One resource per consumed operation.
resources:
- path: /v1/exportvesselphoto
name: exportvesselphoto-api_key
description: REST surface for exportvesselphoto-api_key.
operations:
- method: GET
name: exportvesselphoto
description: Vessel Photo
call: vessels-data-information.exportvesselphoto
with:
vessel_id: rest.query.vessel_id
shipid: rest.query.shipid
protocol: rest.query.protocol
outputParameters:
- type: object
mapping: $.
- path: /v1/vesselmasterdata
name: vesselmasterdata-api_key
description: REST surface for vesselmasterdata-api_key.
operations:
- method: GET
name: vesselmasterdata
description: Vessel Particulars (Legacy API)
call: vessels-data-information.vesselmasterdata
with:
v: rest.query.v
mmsi: rest.query.mmsi
imo: rest.query.imo
shipid: rest.query.shipid
timespan: rest.query.timespan
interval: rest.query.interval
protocol: rest.query.protocol
page: rest.query.page
msgtype: rest.query.msgtype
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: vessels-data-information-mcp
port: 9090
transport: http
description: MCP adapter for MarineTraffic Vessel Information. One tool per consumed operation, routed inline through
this capability's consumes block.
tools:
- name: marinetraffic-exportvesselphoto
description: Vessel Photo
hints:
readOnly: true
destructive: false
idempotent: true
call: vessels-data-information.exportvesselphoto
with:
vessel_id: tools.vessel_id
shipid: tools.shipid
protocol: tools.protocol
outputParameters:
- type: object
mapping: $.
- name: marinetraffic-vesselmasterdata
description: Vessel Particulars (Legacy API)
hints:
readOnly: true
destructive: false
idempotent: true
call: vessels-data-information.vesselmasterdata
with:
v: tools.v
mmsi: tools.mmsi
imo: tools.imo
shipid: tools.shipid
timespan: tools.timespan
interval: tools.interval
protocol: tools.protocol
page: tools.page
msgtype: tools.msgtype
outputParameters:
- type: object
mapping: $.