map_matching

Pack: mapbox · Endpoint: https://gateway.pipeworx.io/mapbox/mcp

“Snap GPS trace to roads” / “clean up noisy GPS coordinates” / “match track to road network” — takes a sequence of GPS points and returns the most likely path along the road network. Use for vehicle telematics, fitness-tracker cleanup, or “what road did this driver actually take” questions.

Parameters

NameTypeRequiredDescription
coordinatesarrayyes
itemsarrayno
itemsnumberno
profilestringno
geometriesstringno
radiusesstringno
stepsbooleanno
annotationsstringno
overviewstringno
timestampsstringno
tidybooleanno

Example call

Arguments

{
  "coordinates": [
    [
      -122.4194,
      37.7749
    ],
    [
      -122.4189,
      37.7751
    ],
    [
      -122.4183,
      37.7754
    ]
  ]
}

curl

curl -X POST https://gateway.pipeworx.io/mapbox/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"map_matching","arguments":{"coordinates":[[-122.4194,37.7749],[-122.4189,37.7751],[-122.4183,37.7754]]}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('map_matching', {
  "coordinates": [
    [
      -122.4194,
      37.7749
    ],
    [
      -122.4189,
      37.7751
    ],
    [
      -122.4183,
      37.7754
    ]
  ]
});

More examples

{
  "coordinates": [
    [
      -74.006,
      40.7128
    ],
    [
      -74.0055,
      40.7135
    ],
    [
      -74.005,
      40.7142
    ]
  ],
  "profile": "driving",
  "steps": true,
  "overview": "full"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Mapbox Map Matching API response with snapped GPS trace"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "mapbox": {
      "url": "https://gateway.pipeworx.io/mapbox/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026