Connect Graphhopper to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the optimize routes tool in Graphhopper
Use the cluster locations tool in Graphhopper
Use the calculate matrix tool in Graphhopper
Use the match gps trace tool in Graphhopper
Use the geocode tool in Graphhopper
Use the calculate route tool in Graphhopper
Supported Tools
optimize_routes
Optimize Routes
Solve vehicle routing problems (VRP) including traveling salesman problems. Assigns services and shipments to vehicles while respecting constraints like time windows, capacities, skills, and vehicle limits.
Handles pickup-and-delivery problems, multiple vehicles, multiple depots, and various optimization objectives.
cluster_locations
Cluster Locations
Group customer locations into clusters based on geographic proximity using road network distances.
Useful for territory planning, field team optimization, or breaking down large routing problems into smaller manageable groups.
Supports capacity constraints (min/max quantity per cluster) and predefined cluster centers.
calculate_matrix
Calculate Matrix
Compute distance and travel time matrices between multiple locations. Supports symmetric (NxN) and asymmetric matrices with separate origin/destination sets.
Returns distances in meters, times in seconds, and routing weights. Useful for comparing travel times between many locations or as input for route optimization.
match_gps_trace
Match GPS Trace
Snap measured GPS points to the road network (map matching). Takes a GPX file content and returns the matched route on the digital road network.
Useful for cleaning noisy GPS data, reconstructing traveled routes, or attaching road attributes (street names, elevation, speed limits) to GPS traces.
geocode
Geocode
Convert addresses to coordinates (forward geocoding) or coordinates to addresses (reverse geocoding).
Supports multiple providers, country filtering, bounding box filtering, and OSM tag filtering.
Use for address lookup, place search, or finding what is at a given coordinate.
calculate_route
Calculate Route
Calculate the best route between two or more points. Returns distance, travel time, route geometry, and turn-by-turn instructions.
Supports different vehicle profiles (car, bike, foot, truck, etc.), alternative routes, round trips, via-point optimization, and custom routing models.
Points use **[longitude, latitude]** order (GeoJSON convention).
calculate_isochrone
Calculate Isochrone
Generate isochrone (equal travel time) or isodistance (equal distance) polygons from a starting point.
Shows how far you can travel within a given time or distance using a specific vehicle profile.
Useful for reachability analysis, service area visualization, and site selection.
get_optimization_solution
Get Optimization Solution
Retrieve the current status and solution of a route optimization job by its ID. Use this to recover results when optimize_routes reaches its polling timeout.
Enable Graphhopper in Metorial. In your Metorial portal, enable the Graphhopper MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Graphhopper tools.
Enable Graphhopper in Metorial. In your Metorial portal, enable the Graphhopper MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Graphhopper tools.
Enable Graphhopper in Metorial. In your Metorial portal, enable the Graphhopper MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Graphhopper tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Graphhopper in Metorial. In your Metorial portal, enable the Graphhopper MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Graphhopper tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Graphhopper in Metorial. In your Metorial portal, enable the Graphhopper MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Graphhopper tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Graphhopper through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Graphhopper and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Graphhopper tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
Calculate optimal routes between multiple points with support for various vehicle profiles (car, bike, foot, truck). Solve vehicle routing and traveling salesman problems with real-world constraints like time windows, capacities, and driver skills. Compute distance and time matrices between origin and destination sets. Geocode addresses to coordinates and reverse geocode coordinates to place names. Generate isochrones and isodistances for reachability analysis. Snap GPS points to road networks via map matching. Cluster customers into groups for territory planning. Create and manage custom routing profiles to avoid, prefer, or exclude specific road types and areas.
Frequently asked questions
Common questions about connecting Graphhopper to AI agents with Metorial.
How many tools does the Graphhopper MCP server have?
The Graphhopper MCP server exposes 8 tools, including Optimize Routes, Cluster Locations, Calculate Matrix. Each one is governed and traced through Metorial.
Does the Graphhopper MCP server support triggers?
Graphhopper exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Graphhopper MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Graphhopper MCP server through the same Metorial URL.
How do I give only some teams access to Graphhopper?
Use role-based access control to decide which teams, users, and agents can use Graphhopper and which of its tools they can call.
Can I self-host the Graphhopper MCP server?
Yes. Metorial is open source, so you can run the Graphhopper MCP server yourself or use the hosted gateway.
Connect Graphhopper to production AI agents
See how Metorial gives your team governed access to Graphhopper, with tracing and security controls built in.