arifemregursoy/marinetraffic-mcp-server
If you are the rightful owner of marinetraffic-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Marine MCP Server is a Model Context Protocol server that integrates with the Marine Traffic API to provide comprehensive maritime sector data.
Marine MCP Server
A Model Context Protocol (MCP) server that provides maritime sector data through Marine Traffic API integration.
Overview
This MCP server provides tools and resources for accessing maritime data including:
- Vessel positions and tracking
- Port information
- Ship details and specifications
- Maritime traffic analysis
- Route optimization data
Features
- Vessel Tracking: Real-time vessel positions and movement data
- Port Information: Comprehensive port details and statistics
- Ship Database: Access to vessel specifications and details
- Maritime Analytics: Traffic patterns and route analysis
- API Integration: Seamless Marine Traffic API integration
Installation
Prerequisites
- Python 3.8 or higher
- Marine Traffic API key
Setup
- Clone the repository:
git clone https://github.com/yourusername/marine-mcp-server.git
cd marine-mcp-server
- Install dependencies:
pip install -e .
- Configure your Marine Traffic API key:
cp .env.example .env
# Edit .env and add your MARINE_TRAFFIC_API_KEY
Configuration
Create a .env file in the project root with your Marine Traffic API credentials:
MARINE_TRAFFIC_API_KEY=your_marine_traffic_api_key_here
MARINE_TRAFFIC_BASE_URL=https://services.marinetraffic.com/api
RATE_LIMIT_PER_MINUTE=60
CACHE_EXPIRY_SECONDS=300
Usage
Running the Server
marine-mcp-server
Available Tools
get_vessel_positions: Get current positions of vessels in a specific areaget_vessel_details: Get detailed information about a specific vesselget_port_info: Get information about portssearch_vessels: Search for vessels by various criteriaget_voyage_info: Get voyage information for a vessel
Available Resources
vessels: List of vessels with basic informationports: Port directory with detailsroutes: Maritime route information
Development
Setup Development Environment
pip install -e ".[dev]"
Running Tests
pytest
Code Formatting
black src/
isort src/
flake8 src/
Type Checking
mypy src/
API Documentation
This server integrates with the Marine Traffic API. You'll need a valid API key from Marine Traffic.
Supported Endpoints
- Vessel Positions
- Vessel Details
- Port Calls
- Voyage Information
- Fleet Management
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Run the test suite
- Submit a pull request
Development Setup
git clone https://github.com/arifemregursoy/marine-mcp-server.git
cd marine-mcp-server
pip install -e ".[dev]"
Running Tests
python test_server.py # Complete test suite
python test_simple_mock.py # Mock data tests
python test_api.py # Real API tests (requires key)
License
This project is licensed under the MIT License - see the file for details.
What this means:
- ✅ Free to use for any purpose (personal, commercial, etc.)
- ✅ Free to modify and distribute
- ✅ No warranty - use at your own risk
- ✅ Attribution required - keep the license notice
Disclaimer
This software is provided "as is" without warranty of any kind. The authors are not responsible for any issues, damages, or costs arising from the use of this software.
Support
For issues and questions:
- 🐛 Open an issue on GitHub
- 📖 Check the documentation
- 🌐 Review the Marine Traffic API documentation
Acknowledgments
- Marine Traffic API for providing maritime data
- MCP (Model Context Protocol) framework
- Python open source community
Changelog
v0.1.0
- Initial release
- Basic vessel tracking functionality
- Port information tools
- Marine Traffic API integration