Skip to content
VS Code

opencage geocoding mcp for VS Code

io.github.opencagedata/opencage-geocoding-mcp

MCP server for OpenCage geocoding API

client:VS Code transport:stdio runtime:npm

Install opencage geocoding mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "your-api-key",
      "description": "YOUR_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "opencage-geocoding-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@opencage/mcp-opencage-server"
      ],
      "env": {
        "YOUR_API_KEY": "${input:your-api-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

opencage geocoding mcp in other clients