
Geoapify MCP Server
Geoapify MCP Server is a remote Maps MCP server that gives AI assistants 15 tools for location search (addresses and places), time zones, routing, route matrices, isolines and reachable places, and GeoJSON geometry operations. It uses the Model Context Protocol or MCP to connect AI tools with real results from Geoapify Maps APIs.
Use it when you want an AI agent to answer location questions with real API results instead of static training data. The tools can look up addresses, discover nearby places, compare travel times, find what is reachable within a travel time, and combine, measure, or transform geometries.
- For AI tools: connect through MCP-compatible clients.
- For location workflows: work with addresses, places, routes, travel times, reachable areas, and GeoJSON geometries.
- For teams: keep access controlled through your Geoapify API key.
On this page
Available MCP Tools
Geoapify MCP Server exposes 15 tools for location lookup, time zones, routing, reachable areas, and geometry operations. An assistant can discover the tools and their input and output schemas with tools/list, then select the right tool for each task. Results can be used in follow-up searches, planning, and spatial analysis.
| Category | Tool | What it does |
|---|---|---|
| Geocoding | geocode_address | Convert a street address or free-text location query into coordinates and structured address data. |
| Geocoding | geocode_structured_address | Geocode structured address fields into coordinates and normalized address data. |
| Geocoding | reverse_geocode_coordinates | Convert latitude and longitude coordinates into nearby address or place data. |
| Geocoding | get_timezone | Get the time zone, exact UTC offset, local time, and next daylight saving change for coordinates. |
| Places | search_places | Find places and points of interest by category near geographic coordinates. |
| Places | list_place_categories | List the supported category values that can be used with search_places and search_reachable_places. This tool costs zero credits. |
| Places | search_reachable_places | Find places of one category inside the area reachable within a travel time or distance, for example pharmacies within a 10-minute walk. |
| Places | filter_reachable_places | Check your own list of up to 1,000 locations and keep the ones reachable within a travel time or distance. |
| Routing | calculate_route | Calculate a route between waypoints for driving, trucks, cycling, walking, hiking, or public transit. |
| Routing | calculate_route_matrix | Calculate travel times and distances between source and target locations. |
| Routing | calculate_isoline | Calculate isochrones or isodistances: GeoJSON areas reachable within up to ten travel times or distances. |
| Geometry | combine_geometries | Intersect, subtract, or merge polygons, or create a rectangular envelope around geometries. |
| Geometry | evaluate_spatial_relation | Test containment, intersection, crossing, disjointness, validity, or whether a point lies on a line. |
| Geometry | measure_geometry | Measure area, distance, or length; find bounds, nearest points, or a point along a line. |
| Geometry | transform_geometry | Buffer, simplify, rotate, scale, or translate a geometry, or calculate a center point. |
For accepted parameters, output schemas, and operation-specific geometry types, see the MCP tool reference and OpenAPI specifications.
Not sure which integration approach fits your application? Read how to choose OpenAPI or MCP to compare model-driven tools with direct API calls.
When application code should call Geoapify directly, follow the guide to using Geoapify OpenAPI with AI tools to import specifications and generate typed integrations.
Getting Started
Connect Geoapify MCP Server to your AI client in two steps:
- Create a Geoapify API key.
- Connect the MCP server to your AI client and start using Geoapify tools.
See the MCP client setup guide for step-by-step configuration of popular AI clients.
Authentication
Geoapify MCP Server requires a Geoapify API key. Send it in the x-api-key HTTP header, the authentication method recommended by the OpenAPI specification.
To create a key:
- Open MyProjects and sign up or sign in.
- Create a project.
- Go to API Keys and copy the generated key.
Check the Geoapify Getting Started guide for more details.
Keep the key private. Add it only in your MCP client settings, and do not include it in prompts, public configuration files, or source code.
Endpoints and Client Setup
Use a client that supports remote HTTP or Streamable HTTP MCP connections. Configure one of these endpoints and supply your API key through the client's protected header or secret settings:
| Endpoint | URL | When to use it |
|---|---|---|
| Default | https://api.geoapify.com/v1/mcp | Standard Geoapify MCP connection. |
| EU | https://api-eu.geoapify.com/v1/mcp | Geoapify service processing on EU infrastructure. |
Set the x-api-key header to your Geoapify API key. MCP clients normally initialize the connection and discover tools automatically.
For client-specific configuration, follow the Geoapify MCP client setup guide:
- Claude Code: configure the remote HTTP server in
.mcp.json, with the API key supplied through an environment variable in the header. - Cursor: configure the endpoint and header in
.cursor/mcp.json, using Cursor's environment-variable syntax. - ChatGPT: review the guide's authentication compatibility notes and supported integration options before connecting.
- Other clients: use the endpoint and header settings above, then check that Geoapify tools appear in the client's tool list.
Send MCP Requests over HTTP
For a direct integration or connection check, send JSON-RPC request bodies with HTTP POST to the chosen MCP endpoint. Use Content-Type: application/json and x-api-key: YOUR_API_KEY headers. These are MCP protocol requests; their params.arguments fields follow MCP tool schemas.
The supported protocol version is 2025-06-18. The optional MCP-Protocol-Version header defaults to this version when omitted; explicitly unsupported versions are rejected.
Start by initializing the connection:
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": {
"name": "geoapify-example-client",
"version": "1.0.0"
}
}
}After the initialization response, send the initialized notification. Notifications omit id and receive HTTP 202 with no JSON-RPC response body:
{
"jsonrpc": "2.0",
"method": "notifications/initialized"
}Discover the current tools and their schemas with tools/list:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list"
}To geocode an address, send a tools/call request. The query field is required; country_codes filters the search by country, and limit accepts values from 1 to 10:
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "geocode_address",
"arguments": {
"query": "601 Eubank Blvd SE, Albuquerque, NM 87123, United States",
"country_codes": ["us"],
"limit": 1
}
}
}Prompts and Usage Examples
Start with natural-language prompts. The AI assistant can select tools for addresses, nearby places, routes, travel times, and geometry operations. Supply coordinates or GeoJSON when the task depends on a specific location or shape. For a multi-step agent workflow, see how to add Geoapify MCP tools to an AI agent.
Geocode an Address
Tool: geocode_address
Example prompts:
- "Find coordinates for 1000 5th Avenue, New York, NY."
- "Geocode 350 Fifth Avenue, New York, NY and return the formatted address."
- "Find up to 3 possible matches for 1 Market Street, San Francisco."
Geocode a Structured Address
Tool: geocode_structured_address
Provide at least one address field such as street, postcode, city, or country. Pair housenumber with street, and use country_codes for an ISO country-code filter.
Example prompts:
- "Geocode this address: street Market Street, house number 1, city San Francisco, state California, country United States."
- "Find coordinates for postcode SW1A 2AA, city London, country United Kingdom."
- "Find coordinates for this structured address: house number 10, street Downing Street, city London, postcode SW1A 2AA, country United Kingdom."
Reverse Geocode Coordinates
Tool: reverse_geocode_coordinates
Example prompts:
- "What address is located at 48.8584, 2.2945?"
- "Reverse geocode coordinates 40.7484, -73.9857 and return the formatted address."
- "Find the nearest address for latitude 51.5007 and longitude -0.1246."
Get the Time Zone and Local Time
Tool: get_timezone
Provide lat and lon. The optional at_unix_seconds sets the instant in whole Unix seconds; without it, the tool uses the current time. Supported instants are from 2025-01-01 through 2031-12-31 UTC.
Example prompts:
- "What time is it now at latitude 35.6762, longitude 139.6503?"
- "What is the UTC offset in New York on 1 November 2026 at 12:00 UTC?"
- "When do clocks change next at 52.3772, 4.9066?"
For example, this call asks for the time zone in New York at 12:00 UTC on 23 October 2026:
{
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "get_timezone",
"arguments": {
"lat": 40.7484,
"lon": -73.9857,
"at_unix_seconds": 1792756800
}
}
}The structuredContent of the result (23 October 2026):
{
"lat": 40.7484,
"lon": -73.9857,
"at": "2026-10-23T12:00:00.000Z",
"tzdb_version": "2026e",
"timezones": [
{
"name": "America/New_York",
"type": "daylightSaving",
"utc_offset": "-04:00",
"offset_seconds": -14400,
"abbreviation": "EDT",
"local_time": "2026-10-23T08:00:00.000-04:00",
"next_transition": {
"at": "2026-11-01T06:00:00.000Z",
"before": { "type": "daylightSaving", "utc_offset": "-04:00", "offset_seconds": -14400, "abbreviation": "EDT" },
"after": { "type": "standard", "utc_offset": "-05:00", "offset_seconds": -18000, "abbreviation": "EST" },
"offset_change_seconds": -3600,
"kind": "daylight-end"
}
}
]
}next_transition is null when no offset change is known within the supported range, for example in America/Phoenix. When the assistant starts from an address, it can call geocode_address first and pass the coordinates to get_timezone. The same lookup is available as a REST endpoint in the Timezone API.
Discover Place Categories
Tool: list_place_categories
Example prompts:
- "List the place categories I can use to search for restaurants."
- "Which Geoapify place categories are available for healthcare facilities?"
- "Show me the supported categories for public transport places."
Search for Places
Tool: search_places
Example prompts:
- "Find cafés within 1 km of latitude 48.8584 and longitude 2.2945."
- "Find the 10 nearest pharmacies to coordinates 40.7484, -73.9857."
- "Search for tourist attractions near latitude 51.5007 and longitude -0.1246."
The assistant can call list_place_categories with empty arguments to retrieve the category catalog, then choose one exact category for search_places. Place search requires category, lat, and lon; radius_meters is optional. Without a radius, it returns the nearest matching places without a hard distance limit. The result limit can be from 1 to 100.
For example, the prompt "Find the nearest pharmacies to coordinates 40.7484, -73.9857" becomes this location search call:
{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "search_places",
"arguments": {
"category": "healthcare.pharmacy",
"lat": 40.7484,
"lon": -73.9857,
"limit": 3
}
}
}The tool returns the nearest places with their address, distance in meters, and details such as opening hours when they are available. A shortened structuredContent from this call (14 October 2026):
{
"category": "healthcare.pharmacy",
"coordinates": { "lat": 40.7484, "lon": -73.9857 },
"count": 3,
"results": [
{
"name": "CVS Pharmacy",
"formatted": "CVS Pharmacy, 320 5th Avenue, New York, NY 10001, United States of America",
"lat": 40.747367,
"lon": -73.9856317,
"distance": 115,
"opening_hours": "07:00-24:00 open \"Store\" || Mo-Fr 08:00-20:00; Sa,Su 10:00-17:00 open \"Pharmacy\"",
"categories": ["commercial.health_and_beauty.pharmacy", "healthcare", "healthcare.pharmacy"],
"datasource": { "sourcename": "openstreetmap", "license": "Open Database License" }
},
{ "name": "Pasteur Pharmacy", "formatted": "Pasteur Pharmacy, 53 East 34th Street, New York, NY 10016, United States of America", "distance": 327 },
{ "name": "CVS Pharmacy", "formatted": "CVS Pharmacy, 420 5th Avenue, New York, NY 10110, United States of America", "distance": 362 }
]
}This call returns 3 places, so it costs 1 credit: place search is billed at 1 credit per up to 20 returned places. Results follow OpenStreetMap data and can change as the map is updated.
Calculate a Route
Tool: calculate_route
Provide at least two waypoints, each with named lat and lon values. Set include_instructions: true for turn-by-turn instructions, or geometry_scope: "none" when you only need travel costs. Use optimize_stops: true to reorder intermediate stops while keeping the first and last waypoint fixed.
Example prompts:
- "Calculate a driving route from 48.8584, 2.2945 to 48.8606, 2.3376."
- "Plan a bicycle route between these coordinates and return turn-by-turn instructions."
- "Find a truck route through these three waypoints that avoids tolls."
Calculate a Route Matrix
Tool: calculate_route_matrix
Provide sources and optional targets, using named lat and lon fields. When targets is omitted, the tool uses the source locations as targets too. The number of source-target pairs must not exceed 1,000.
Example prompts:
- "Calculate driving times and distances from these two warehouses to these three delivery locations."
- "Build a walking time matrix for these four coordinates."
- "Compare travel times between all of these locations by bicycle."
Calculate Reachable Areas (Isolines)
Tool: calculate_isoline
Provide an origin, a type (time in seconds or distance in meters), and one to ten ranges. The tool returns a GeoJSON polygon for each range, so the assistant can show a service area or pass it to a geometry tool. Transit modes support time only.
Example prompts:
- "Show the area I can reach by car in 15 minutes from 41.8796, -87.6237."
- "Build 10-, 20-, and 30-minute walking zones around this hotel."
- "How large is the area a delivery van can reach in 30 minutes from our warehouse?"
Search Places Within a Travel Time
Tool: search_reachable_places
Provide an origin, a type, one range, and a category from list_place_categories. The tool calculates the reachable area and returns the places inside it in one call. Results are ordered by proximity, not by travel time, and limit can be from 1 to 100.
Example prompts:
- "Which pharmacies can I walk to in 10 minutes from Alexanderplatz, Berlin?"
- "Find supermarkets within a 15-minute drive of 40.7484, -73.9857."
- "List cafés reachable by bike in 10 minutes from this address."
For example, the prompt "Which pharmacies can I walk to in 10 minutes from Alexanderplatz?" becomes this call:
{
"jsonrpc": "2.0",
"id": 6,
"method": "tools/call",
"params": {
"name": "search_reachable_places",
"arguments": {
"origin": { "lat": 52.5219, "lon": 13.4132 },
"type": "time",
"mode": "walk",
"range": 600,
"category": "healthcare.pharmacy",
"limit": 5
}
}
}A shortened structuredContent from this call (11 November 2026):
{
"reachability": {
"origin": { "lat": 52.5219, "lon": 13.4132 },
"type": "time",
"mode": "walk",
"range": 600,
"range_units": "seconds"
},
"category": "healthcare.pharmacy",
"count": 3,
"results": [
{
"name": "Panorama Apotheke",
"formatted": "Panorama Apotheke, Panoramastraße 1, 10178 Berlin, Germany",
"lat": 52.521847,
"lon": 13.4098188,
"distance": 230,
"opening_hours": "Mo-Fr 09:00-19:00; Sa 09:00-14:00"
},
{ "name": "Bezirksapotheke am Roten Rathaus", "formatted": "Bezirksapotheke am Roten Rathaus, Rathausstraße 5, 10178 Berlin, Germany", "distance": 283 },
{ "name": "Alexa Apotheke", "formatted": "Alexa Apotheke, Grunerstraße 20, 10179 Berlin, Germany", "distance": 361 }
]
}This call costs 3 credits: 2 for the 10-minute isochrone and 1 for up to 20 returned places. Set include_geometry: true to also get the reachable area as GeoJSON.
Filter Your Locations by Travel Time
Tool: filter_reachable_places
Provide an origin, a type, one range, and places: up to 1,000 locations with lat and lon. The tool returns the locations inside the reachable area with their original index, so you can match them to your own records. It doesn't search for new places.
Example prompts:
- "Which of these 20 stores are within a 15-minute drive of the customer?"
- "Keep only the apartments from this list that are within a 20-minute walk of 52.5219, 13.4132."
- "Which of these customer addresses are within a 30-minute drive of our warehouse?"
The reachability tools tell you which places are inside the area, not the travel time to each of them. When the assistant needs to rank places by travel time, it can pass the matches to calculate_route_matrix.
Geometry Inputs and Coordinate Order
Geometry tools take GeoJSON Geometry objects, such as Point, LineString, and Polygon. If your data is a Feature, pass its geometry member; a Feature or FeatureCollection is not a geometry input. Each operation accepts specific geometry types, so check its input schema in the MCP documentation.
GeoJSON coordinate arrays use [longitude, latitude]. Reverse geocoding, place search, routing, matrix, and reachability tools use named lat and lon fields. When chaining tools, use the geometry object from a returned Feature as the next geometry input, for example an isoline polygon from calculate_isoline.
Combine Geometries
Tool: combine_geometries
Use intersection, difference, or union with 2–100 Polygon or MultiPolygon geometries. For difference, the first polygon is the starting area and later polygons are subtracted from it. Use envelope with 1–100 supported geometries to create a rectangle enclosing them.
Example prompts:
- "Merge these delivery-zone polygons into one service area."
- "Return only the area shared by these two polygons."
- "Subtract this restricted zone from the delivery area."
Evaluate Spatial Relations
Tool: evaluate_spatial_relation
Use contains, crosses, disjoint, intersects, or within to compare geometries. Use valid to check one geometry, or point_on_line to check a Point against a LineString. For comparisons, operand order matters: contains asks whether geometry contains other_geometry.
Example prompts:
- "Check whether this delivery-zone polygon contains the customer's point."
- "Do these two service areas intersect?"
- "Check whether this GeoJSON geometry is valid."
This MCP request uses the polygon and point from the OpenAPI example:
{
"jsonrpc": "2.0",
"id": 13,
"method": "tools/call",
"params": {
"name": "evaluate_spatial_relation",
"arguments": {
"operation": "contains",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[13.38, 52.5],
[13.42, 52.5],
[13.42, 52.54],
[13.38, 52.54],
[13.38, 52.5]
]
]
},
"other_geometry": {
"type": "Point",
"coordinates": [13.405, 52.52]
}
}
}
}Measure Geometries
Tool: measure_geometry
Use area for Polygon or MultiPolygon area in square meters, length for line length, or distance for point-to-point distance. Other operations include bbox, point_to_line_distance, point_to_polygon_distance, nearest_point_on_line, and along.
Example prompts:
- "Calculate this service area's size in square meters."
- "Measure the length of this GeoJSON route in kilometers."
- "Find the point on this line nearest to the customer's location."
Distance and length operations accept a units argument and default to kilometers. The area operation returns square meters and does not accept units.
Transform Geometries
Tool: transform_geometry
Use buffer, simplify, rotate, scale, or translate to modify a geometry. Center operations include center (bounding-box center), center_mean, center_median, and center_of_mass.
Example prompts:
- "Create a 500-meter buffer around longitude 13.405, latitude 52.52."
- "Simplify this route geometry while preserving its overall shape."
- "Rotate this polygon clockwise by 30 degrees."
The following MCP request, supplied in the OpenAPI specification, creates a 500-meter buffer around a point:
{
"jsonrpc": "2.0",
"id": 22,
"method": "tools/call",
"params": {
"name": "transform_geometry",
"arguments": {
"operation": "buffer",
"geometry": {
"type": "Point",
"coordinates": [13.405, 52.52]
},
"distance": 500,
"units": "meters",
"steps": 16
}
}
}Responses and Errors
A successful tools/call response has result.isError: false. Tool results are available as JSON text in result.content; responses can also provide result.structuredContent for direct processing. The tool's output schema describes the result fields.
Check both the HTTP status and the JSON-RPC body. HTTP 200 alone does not mean a tool succeeded: tool validation and execution failures return result.isError: true. JSON-RPC protocol errors use a top-level error object.
| Response | Meaning |
|---|---|
HTTP 200 with result.isError: true | Tool validation or execution failed. Inspect the error details in result.content. |
| HTTP 202 | A notification was accepted; there is no JSON-RPC response body. |
| HTTP 400 | Invalid HTTP request or unsupported MCP protocol version. |
| HTTP 401 | Missing or invalid API key. |
| HTTP 429 | Rate limit or quota exceeded. |
| HTTP 500 | Internal gateway error. |
For a validation failure, check the selected tool's required arguments and supported values. MCP tool schemas reject undocumented arguments; REST API parameters should not be copied into a tool call unless that tool's schema defines them. See the OpenAPI specifications for request and response contracts.
API Credits and Rate Limits
Geoapify MCP Server calls Geoapify Maps APIs behind the scenes:
- For example, when an AI assistant uses
geocode_address, the MCP server sends a request to the Geoapify Geocoding API. - The
get_timezonetool uses the Timezone API and costs 1 credit per call. - Place search, route calculation, and route matrix tools use the Places API, Routing API, and Route Matrix API, respectively.
- The reachability tools use the Isoline API: 1 credit for every 5 minutes or 5 km of the largest range.
calculate_isolinewith 10- and 20-minute ranges costs 4 credits.search_reachable_placesadds the Places API cost for the returned places, andfilter_reachable_placescosts only the isoline. - The
list_place_categoriestool requires an API key but costs zero credits. - Usage and cost are calculated only for the underlying Geoapify Maps API requests.
- The MCP server does not add separate charges, extra credits, or additional rate limits.
Frequently Asked Questions
What is Geoapify MCP Server?
Geoapify MCP Server is a Model Context Protocol server that lets AI assistants use Geoapify location APIs through tools. It provides 15 tools to geocode addresses, look up time zones, find places, calculate routes, matrices, and reachable areas, and combine, compare, measure, or transform GeoJSON geometries.
Can an AI agent do location search over MCP?
Yes. geocode_address and geocode_structured_address find addresses, reverse_geocode_coordinates finds the address at a point, and search_places finds places of a category near coordinates (list_place_categories returns the category values). An agent can chain them, for example geocode a hotel and then search cafés around it. See the MCP tool reference.
Can an AI agent find places within a travel time?
Yes. search_reachable_places finds places of one category inside the area reachable within a travel time or distance, for example pharmacies within a 10-minute walk. filter_reachable_places checks your own list of locations against the same kind of area, and calculate_isoline returns the area itself as GeoJSON. See the tool reference.
Do I need a Geoapify API key?
Yes. Send your Geoapify API key in the x-api-key HTTP header. Configure it through your client’s protected settings or an environment variable. You can create one by following the Geoapify Getting Started guide or by opening MyProjects.
Which Geoapify tools are available through MCP?
There are 15 tools: four for geocoding (including get_timezone), four for places (including search_reachable_places and filter_reachable_places), three for routing (including calculate_isoline), and four for geometry operations. The geometry tools are combine_geometries, evaluate_spatial_relation, measure_geometry, and transform_geometry. Call tools/list to discover the current tools and schemas, or browse the MCP tool reference.
Can I use an EU endpoint for Geoapify MCP?
Yes. Use https://api-eu.geoapify.com/v1/mcp with the same x-api-key authentication. This endpoint uses EU infrastructure for Geoapify service processing. See our EU endpoint overview for more context.
Can I send GeoJSON Features to geometry tools?
Pass the Feature's geometry member. Geometry tools accept operation-specific GeoJSON Geometry objects, rather than Feature or FeatureCollection wrappers. Coordinates use [longitude, latitude]. Check the tool input schema for accepted geometry types.
Why did my MCP tool call fail with HTTP 200?
Tool validation and execution failures return HTTP 200 with result.isError: true. Read the error details in result.content and check the arguments against the tool schema. Authentication failures and quota errors use HTTP 401 and 429, respectively.
Does the MCP server cost extra?
No. The MCP server does not add separate charges, extra credits, or additional rate limits. Usage is counted only for the underlying Geoapify Maps API requests. See the Geoapify pricing page for plan details.
Which Geoapify APIs are used by the MCP tools?
Address geocoding tools use the Geocoding API and Reverse Geocoding API, and get_timezone uses the Timezone API. Other tools use the Places API, Routing API, Route Matrix API, and Isoline API. Geometry tools operate on supplied GeoJSON; see the MCP reference for their operation-specific inputs and results.
Which AI assistants can use Geoapify MCP Server?
Use an MCP client that supports remote HTTP connections and can supply your Geoapify API key securely. See the client setup guide for configuration and authentication compatibility.
Is Geoapify MCP Server only for developers?
No. Developers can use it directly, but it is also useful for analysts, operations teams, and other users who want an AI assistant to work with addresses, places, routes, travel times, distances, and GeoJSON geometries through natural-language prompts.
Where can I find Geoapify API documentation?
Use the MCP documentation for tools and setup guides, and the OpenAPI specifications for machine-readable request and response schemas.