reverse

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

Reverse-geocode a latitude/longitude pair to a human-readable address using OpenCage (requires API key); returns formatted address, country, city, postcode, and timezone.

Parameters

NameTypeRequiredDescription
latnumberyes
lonnumberyes
languagestringno
no_annotationsbooleanno
abbrvbooleanno

Example call

Arguments

{
  "lat": 48.8566,
  "lon": 2.3522
}

curl

curl -X POST https://gateway.pipeworx.io/opencages/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"reverse","arguments":{"lat":48.8566,"lon":2.3522}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('reverse', {
  "lat": 48.8566,
  "lon": 2.3522
});

More examples

{
  "lat": 40.7128,
  "lon": -74.006,
  "language": "en"
}

Response shape

FieldTypeDescription
resultsarrayArray of reverse geocoding results
statusobjectAPI response status
total_resultsintegerTotal number of results found
rateobjectRate limit information
Full JSON Schema
{
  "type": "object",
  "description": "Response from OpenCage reverse geocoding API",
  "properties": {
    "results": {
      "type": "array",
      "description": "Array of reverse geocoding results",
      "items": {
        "type": "object",
        "properties": {
          "geometry": {
            "type": "object",
            "description": "Geographic coordinates",
            "properties": {
              "lat": {
                "type": "number",
                "description": "Latitude"
              },
              "lng": {
                "type": "number",
                "description": "Longitude"
              }
            }
          },
          "formatted": {
            "type": "string",
            "description": "Formatted address string"
          },
          "components": {
            "type": "object",
            "description": "Address components breakdown"
          },
          "annotations": {
            "type": "object",
            "description": "Additional annotations (if no_annotations not set)"
          },
          "confidence": {
            "type": "integer",
            "description": "Confidence score 0-10"
          },
          "bounds": {
            "type": "object",
            "description": "Bounding box coordinates"
          }
        }
      }
    },
    "status": {
      "type": "object",
      "description": "API response status",
      "properties": {
        "code": {
          "type": "integer",
          "description": "HTTP status code"
        },
        "message": {
          "type": "string",
          "description": "Status message"
        }
      }
    },
    "total_results": {
      "type": "integer",
      "description": "Total number of results found"
    },
    "rate": {
      "type": "object",
      "description": "Rate limit information",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "Request limit"
        },
        "remaining": {
          "type": "integer",
          "description": "Remaining requests"
        },
        "reset": {
          "type": "integer",
          "description": "Reset timestamp"
        }
      }
    }
  }
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026