Skip to main content

MCP Server for DataDocked Maritime API - Real-time vessel tracking, port operations, and maritime intelligence

Project description

DataDocked MCP Server (Python)

MCP (Model Context Protocol) server for the DataDocked Maritime API. Enables AI assistants like Claude to access real-time vessel tracking, port operations, and maritime intelligence.

Features

  • 20 MCP Tools: 12 basic single-endpoint tools + 8 compound multi-endpoint tools
  • Pre-execution Credit Warnings: Know the cost before running operations
  • Rich Formatted Output: Markdown tables and structured reports
  • Async API Client: Non-blocking concurrent requests for compound tools

Installation

PyPI (Recommended)

pip install datadocked-mcp

From Source

git clone https://github.com/datadocked/mcp-server.git
cd mcp-server/datadocked-mcp-py
pip install -e .

Configuration

Environment Variables

# Required: Your DataDocked API key
export DATADOCKED_API_KEY="your_api_key_here"

# Optional: Disable credit cost warnings (default: true)
export DATADOCKED_SHOW_COST="false"

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "datadocked": {
      "command": "datadocked-mcp",
      "env": {
        "DATADOCKED_API_KEY": "your_api_key_here"
      }
    }
  }
}

Or using uvx:

{
  "mcpServers": {
    "datadocked": {
      "command": "uvx",
      "args": ["datadocked-mcp"],
      "env": {
        "DATADOCKED_API_KEY": "your_api_key_here"
      }
    }
  }
}

Cursor / VS Code

Add to your MCP settings:

{
  "datadocked": {
    "command": "datadocked-mcp",
    "env": {
      "DATADOCKED_API_KEY": "your_api_key_here"
    }
  }
}

Available Tools

Basic Tools (Single-Endpoint)

Tool Description Credits
track_vessel Real-time position, speed, course, ETA 1
track_vessels_bulk Track up to 50 vessels 1/vessel
get_vessel_history Historical positions (up to 2 years) 5/day
search_vessels_by_area Find vessels in geographic region 10
get_vessel_details Full vessel profile 5
get_vessel_specs Dimensions, tonnage, capacity 3
get_vessel_engine Engine specs, fuel type 3
get_vessel_management Owner, operator, P&I club 3
get_port_calls Port visit history 1
get_port_traffic Port arrivals/departures 5
get_psc_inspections PSC inspection records 3
get_vessel_weather Weather at vessel location 2

Compound Tools (Multi-Endpoint)

Tool Description Credits
vessel_intelligence_report Complete vessel dossier (6 endpoints) ~18
fleet_dashboard Fleet status with vessel details ~3/vessel
voyage_analysis Current voyage with context ~13
risk_assessment Composite risk score ~12
area_intelligence Region with full vessel profiles 10 + 5/vessel

Usage Examples

Natural Language Queries

"Where is the Ever Given right now?"
→ Uses track_vessel

"Show me all tankers near the Strait of Hormuz"
→ Uses search_vessels_by_area with vessel_type filter

"Give me a full intelligence report on vessel 9321483"
→ Uses vessel_intelligence_report (6 API calls combined)

"What's the risk profile of this vessel?"
→ Uses risk_assessment (4 API calls + analysis)

Credit Estimation

When enabled, each tool shows the estimated cost before execution:

--- Credit Estimate ---
Operation: Vessel Intelligence Report
Estimated Cost: 18 credits
Current Balance: 1,250 credits
To disable: set DATADOCKED_SHOW_COST=false
------------------------

Resources

The server also exposes MCP resources:

Resource URI Description
datadocked://credits/balance Current credit balance

Development

# Install in development mode
pip install -e ".[dev]"

# Run the server
python -m datadocked_mcp.server

# Or use the CLI
datadocked-mcp

Requirements

  • Python 3.10+
  • mcp >= 1.0.0
  • httpx >= 0.25.0
  • pydantic >= 2.0.0

API Reference

Full API documentation: https://docs.datadocked.com

License

MIT

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datadocked_mcp-1.0.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datadocked_mcp-1.0.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file datadocked_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: datadocked_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for datadocked_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 02718b6b438c0d3b393e169bf8247f51a73a21f631d94957a9f1b85061ee5bfa
MD5 8714b80689a7d7933f27ed5d60241493
BLAKE2b-256 3dcec0f25ecce23ef67cdbade61e2f9aab2676d20c60a4441427128b93f2c6e8

See more details on using hashes here.

File details

Details for the file datadocked_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: datadocked_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for datadocked_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e53da142cd08ae491ba2891f3d6d4cb84f51e528bd92491e623bde8be31e1e6a
MD5 19fde8cb31526814f4c92f06ff623813
BLAKE2b-256 a7b9e9ac431e8740e5b04f234e1b149cc5229cb9a0e88731145a05b221064a5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page