API
通过HTTP协议,提供船舶位置及动态
数据的查询和
推送功能
Provides query and push
functionality for vessel position and
dynamic data via HTTP protocol.
查看详情
SDK
封装复杂的底层逻辑,让您能够专注于业务逻辑实现支持多种语言接入
Encapsulates complex low-level logic, allowing you to focus on
business logic implementation.
Supports integration with multiple programming languages.
查看详情
MCP
以AI赋能API基础产品,为开发者提供更智能的能力
Empowering foundational API products with Al to provide developers with more intelligent capabilities.
查看详情
1.1. 地图控件
2.1. 区域船展示
2.9. 专业气象
import com.elane.response.*;
import com.elane.api.Shipxy;
public class Main {
private static String key = "请从 API控制台 申请";
public static void main(String[] args) {
ManyShipResponse result = Shipxy.GetManyShip
(key, "413961925,477232800,477172700");
System.out.println(result);
}
}
npm i shipxy-api
// CommonJS
const Shipxy = require('shipxy-api');
// ESM
import Shipxy from 'shipxy-api'
const key = "请从 API控制台 申请";
async function GetManyShipFn() {
let params = {
key: key, mmsis: "413961925,477232800,477172700"
}
let result = await Shipxy.GetManyShip(params)
console.log(result);
}
GetManyShipFn()
pip install shipxy-api
from shipxy import Shipxy
key = "请从 API控制台 申请";
if __name__ == '__main__':
response = Shipxy.GetManyShip(key, "413961925,477232800,477172700")
print(response)
using System;
using System.Threading.Tasks;
using ShipxyApi;
class Program
{
static async Task Main(string[] args)
{
string apiKey = "请从 API控制台 申请";
string responseBody = await Shipxy.GetManyShip
(apiKey, "413961925,477232800,477172700");
Console.WriteLine(responseBody);
}
}
启动服务器
建议:使用配置文件以便与MCP CLI和代理平台集成。示例:mcp.json
{
"mcpServers": {
"shipxy-api-mcp": {
"command": "python",
"args": ["/path/to/your/server.py"],
"env": {
"SHIPXY_API_KEY": "your_api_key_here"
}
}
}
}
.项目结构:
├── server.py # MCP server entry point
├── ship_service.py # Shipxy API integration and business logic
├── requirements.txt # Python dependencies
├── pyproject.toml # Project metadata
└── README.md # This file