Mariner GPS Tools Developer Platform
Overview & quickstart
Bring Mariner GPS Tools navigation capabilities into your apps, automations, and AI agents through REST or MCP.
Choose REST or MCP
Both interfaces use the same calculation engine and permission model. Use REST with an API key for applications and scripts where you control each request. Use MCP when an AI assistant or agent should discover the available tools, understand their schemas, and choose the right calculation itself.
Direct, versioned requests
Call navigation calculations from applications, services, automations, and scripts.
https://marinergps.tools/api/v1Tools for AI agents
Let MCP-compatible agents discover available capabilities and choose the appropriate calculation.
https://marinergps.tools/mcpAuthentication
Two sign-in methods reach the same calculation engine. Interactive AI clients connect to the MCP server and authorize access in the browser with OAuth. Applications, services, scripts and manual integrations use a Mariner GPS Tools API key sent as a Bearer token. Keys are free to create and can be rotated or revoked at any time.
Create an API keyAuthorization: Bearer mrt_live_...REST quickstart
Send a JSON request to any versioned REST endpoint using your API key. Responses use a consistentok, data, anderrorstructure across all calculation tools.
curl -X POST https://marinergps.tools/api/v1/bearing \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"from": { "lat": 50.1, "lng": -4.2 },
"to": { "lat": 49.8, "lng": -3.1 }
}'MCP quickstart
Add the server URL to a compatible AI client and approve access in your browser when the Mariner Tools authorization page opens. The client discovers the sign-in setup and the available tools automatically, with no keys or tokens to copy.
https://marinergps.tools/mcpAlternative: manual configuration with an API key
Clients without browser authorization, and programmatic integrations, can send an API key instead:
{
"mcpServers": {
"mariner-tools": {
"url": "https://marinergps.tools/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}REST response format
Successful REST responses return the calculated result indata. Validation and request failures return a stable machine-readable error code alongside a human-readable message.
{
"ok": true,
"data": {
"degrees": 112.7,
"compass": "ESE"
}
}{
"ok": false,
"error": {
"code": "invalid_request",
"message": "Invalid bearing input."
}
}