Opencage-geocoding-mcp Server

An MCP (Model Context Protocol) server that provides geocoding capabilities using the OpenCage geocoding API. This server allows you to convert between addresses and geographic coordinates.

Local serverstdio

What is the Opencage-geocoding-mcp Server?

OpenCage Geocoding MCP Server is an MCP project maintained in the opencagedata/opencage-geocoding-mcp repository. The maintainer describes its purpose as “An MCP (Model Context Protocol) server that provides geocoding capabilities using the OpenCage geocoding API. This server allows you to convert between addresses and geographic…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares OPENCAGE_API_KEY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
queryrequired): The address or place name to geocode
countrycodeoptional): Restrict to country (ISO 3166-1 alpha-2 code)
boundsoptional): Bounding box (min_lon,min_lat,max_lon,max_lat)
languageoptional): Language for results
limitoptional): Max results (1-100, default 10)
no_annotationsoptional): Exclude location annotations
latituderequired): Latitude coordinate (-90 to 90) in decimal format
longituderequired): Longitude coordinate (-180 to 180) in decimal format

How to install the Opencage-geocoding-mcp Server

{
  "mcpServers": {
    "opencage-geocoding": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/opencage-geocoding-mcp/build/index.js"
      ],
      "env": {
        "OPENCAGE_API_KEY": "YOUR_OPENCAGE_API_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
OPENCAGE_API_KEYDeclared in the maintainer’s client configuration.Yes