maps_geocode
Pack: google_maps · Endpoint: https://gateway.pipeworx.io/google_maps/mcp
Convert an address to coordinates. Returns latitude, longitude, and formatted address. Use when you need to locate a place on a map.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | yes | Address to geocode (e.g., “1600 Amphitheatre Parkway, Mountain View, CA”) |
_apiKey | string | yes | Google Maps API key |
Example call
Arguments
{
"address": "1600 Amphitheatre Parkway, Mountain View, CA",
"_apiKey": "your-google_maps-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/google_maps/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"maps_geocode","arguments":{"address":"1600 Amphitheatre Parkway, Mountain View, CA","_apiKey":"your-google_maps-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('maps_geocode', {
"address": "1600 Amphitheatre Parkway, Mountain View, CA",
"_apiKey": "your-google_maps-api-key"
});
More examples
{
"address": "Eiffel Tower, Paris, France",
"_apiKey": "your-google_maps-api-key"
}
Response shape
| Field | Type | Description |
|---|---|---|
results | array | Array of geocoding results |
status | string | Status of the geocoding request |
Full JSON Schema
{
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "Array of geocoding results",
"items": {
"type": "object",
"properties": {
"formatted_address": {
"type": "string",
"description": "Human-readable address"
},
"geometry": {
"type": "object",
"description": "Location geometry",
"properties": {
"location": {
"type": "object",
"properties": {
"lat": {
"type": "number",
"description": "Latitude coordinate"
},
"lng": {
"type": "number",
"description": "Longitude coordinate"
}
}
},
"location_type": {
"type": "string",
"description": "Type of location (ROOFTOP, RANGE_INTERPOLATED, GEOMETRIC_CENTER, APPROXIMATE)"
},
"bounds": {
"type": "object",
"description": "Bounding box for the address"
},
"viewport": {
"type": "object",
"description": "Recommended viewport for displaying the address"
}
}
},
"place_id": {
"type": "string",
"description": "Unique identifier for this place"
},
"address_components": {
"type": "array",
"description": "Array of address components",
"items": {
"type": "object",
"properties": {
"long_name": {
"type": "string",
"description": "Long component name"
},
"short_name": {
"type": "string",
"description": "Short component name"
},
"types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Component type tags"
}
}
}
}
}
}
},
"status": {
"type": "string",
"enum": [
"OK",
"ZERO_RESULTS",
"INVALID_REQUEST",
"OVER_QUERY_LIMIT",
"REQUEST_DENIED",
"UNKNOWN_ERROR"
],
"description": "Status of the geocoding request"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"google_maps": {
"url": "https://gateway.pipeworx.io/google_maps/mcp"
}
}
}
See Getting Started for client-specific install steps.