Opencage Geocoding MCP server
io.github.OpenCageData/opencage-geocoding-mcp·v1.0.3·19 starsMCP server for OpenCage geocoding API
19 stars
Reviews
Write oneNobody has reviewed Opencage Geocoding yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Opencage Geocoding tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 2 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
How Opencage Geocoding compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 85/100
- higher than 70% of 48,255 servers
- GitHub stars
- 19
- more than 91% of 28,688 servers
Install Opencage Geocoding in Claude Code, Cursor or VS Code
Runs npx -y @opencage/mcp-opencage-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add opencage-geocoding-mcp -- npx -y @opencage/mcp-opencage-server
What the publisher says
From the Opencage Geocoding repository's README, as published. We do not edit it. Read it on GitHub
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.
PLEASE NOTE: the examples shown here are based on an integration with claude.ai's desktop client. MCP as a concept is supported by other services, but may require a slightly different configuration.
Features
- Forward Geocoding: Convert addresses or place names to coordinates (latitude/longitude)
- Reverse Geocoding: Convert coordinates to addresses
- API Status Monitoring: Check your API usage and rate limits (assuming your penCage account has hard limits).
Prerequisites
- Node.js (version 20 or higher)
- OpenCage geocoding API Key: Sign up on the OpenCage website to get a free-trial geocoding API key
Installation
- Is MCP the right tool?
This MCP is the right tool for small amounts of geocoding, for example while manually prompting an LLM.
If however, you want to process larger volumes of data, for example CSV files full of address or coordinates, or connecting to database full of data, it is almost certainly both faster and more affordable to use our command line tools, or have the LLM write a script to call our API directly.
We offer a markdown-formatted opencage-geocoding-api SKILL file to train your AI on best practices for working with our geocoding API.
- Clone the repository. Change into the repository directory
git clone git@github.com:OpenCageData/opencage-geocoding-mcp.git
# or
git clone https://github.com/OpenCageData/opencage-geocoding-mcp.git
cd opencage-geocoding-mcp- Install dependencies:
npm installThis is enough to get the MCP working with Claude Desktop (see below)
If you want to develop the MCP and plan to query the MCP from the command line you will also need to:
- Set your OpenCage geocoding API key as an environment variable:
export OPENCAGE_API_KEY="your_opencage_geocoding_api_key_here"- Build the project:
npm run buildUsage
Using within Claude Desktop
Add this configuration to your Claude Desktop config file
On a Mac the config file should be (~/Library/Application Support/Claude/claudedesktopconfig.json), but you can also navigate to the file via the menu: Settings > Developer > Edit Config
{
"mcpServers": {
"opencage-geocoding": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/opencage-geocoding-mcp/build/index.js"],
"env": {
"OPENCAGE_API_KEY": "your_opencage_geocoding_api_key_here"
}
}
}
}Available Tools
Note: the first time you run a command you will need to give Claude permission
1. geocode-forward
Convert an address or place name to coordinates and information about that location.
Parameters:
- query (required): The address or place name to geocode
- countrycode (optional): Restrict to country (ISO 3166-1 alpha-2 code)
- bounds (optional): Bounding box (minlon,minlat,maxlon,maxlat)
- language (optional): Language for results (e.g., 'en', 'de', 'fr')
- limit (optional): Max results (1-100, default 10)
- no_annotations (optional): Exclude location annotations
Example prompts
Prompt: "What are the coordinates of Trafalgar Square, London?"
Result: coordinates, timezone, local currency, etc
Prompt: "Where is Les Vans, France? Which Department is it in?"
Result: coordinates, and correct answer that Les Vans is in the Ardèche department
Prompt: "In welchem Bundesland liegt Weimar?"
Result: coordinates, and correct answer that Weimar is in ThüringenShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Opencage Geocoding: common questions
- Is Opencage Geocoding MCP server safe?
- Yes, by our scan: it is graded A (85/100). Read the Opencage Geocoding safety report
- How do I install Opencage Geocoding?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Opencage Geocoding need an API key?
- Yes. The registry entry asks for
YOUR_API_KEY. - Is Opencage Geocoding maintained?
- The last commit was 36 days ago (2026-09-29). The latest release is v1.0.3.
- How does Opencage Geocoding compare with other MCP servers?
- safety score 85/100 (higher than 70% of 48,255 servers); github stars 19 (more than 91% of 28,688 servers). Full comparison.