MCP.so
登录

OpenCage Geocoding MCP Server

@OpenCageData

基本信息

分类

媒体与设计

许可证

MIT

传输方式

stdio

作者

OpenCageData

关于 OpenCage Geocoding MCP Server

MCP server for querying the OpenCage geocoding API from within LLMs

OpenCage Geocoding MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "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"
      }
    }
  }
}

OpenCage Geocoding MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is OpenCage Geocoding MCP Server?

An MCP (Model Context Protocol) server that provides geocoding capabilities using the OpenCage geocoding API, allowing conversion between addresses and geographic coordinates. It is intended for small‑volume geocoding during manual LLM prompting.

How to use OpenCage Geocoding MCP Server?

Install Node.js 20+, obtain an OpenCage API key, clone the repository, run npm install, set the OPENCAGE_API_KEY environment variable, and build with npm run build. Add the server configuration to your Claude Desktop config file (claude_desktop_config.json) with the node command pointing to the built index.js and the API key in the env field.

Key features of OpenCage Geocoding MCP Server

  • Forward geocoding: address/place name to coordinates
  • Reverse geocoding: coordinates to address
  • API usage and rate‑limit monitoring
  • Language, bounding‑box, and country filters
  • Max results control (1–100, default 10)

Use cases of OpenCage Geocoding MCP Server

  • Look up coordinates for a place name (e.g., “Trafalgar Square”)
  • Find an address from latitude/longitude coordinates
  • Ask about a location’s administrative division or time zone
  • Check current API call allowance and rate limits
  • Geocode a few addresses while conversing with an LLM

常见问题

1

What are the prerequisites?

You need Node.js 20 or higher and a free‑trial OpenCage geocoding API key from opencagedata.com.

2

How do I install and configure it?

Clone the repo, run `npm install`, set the `OPENCAGE_API_KEY` environment variable, then build with `npm run build`. Add the server configuration in Claude Desktop’s `claude_desktop_config.json` as shown in the README.

3

What tools does the server provide?

Three tools: `geocode‑forward` (address to coordinates), `geocode‑reverse` (coordinates to address), and `get‑opencage‑info` (API usage and rate limits).

4

Is this server suitable for bulk geocoding?

No. For processing larger volumes (CSV files or database records), the README recommends using OpenCage’s command‑line tools or calling the API directly from a script.

5

How are errors handled?

Errors are reported for invalid API keys, rate limits, network failures, invalid coordinates, and API unavailability. Troubleshooting tips include verifying the API key, checking usage with `get‑opencage‑info`, and ensuring internet connectivity.

评论

媒体与设计 分类下的更多 MCP 服务器