Geomelon Mcp

io.github.930m310n由 GitHub 帳號 930m310n 發布v1.1.1更新於 Oct 24, 2026

MCP server for the Geomelon geographic API — stdio and remote HTTP transports

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

面向 Geomelon 地理 API 的 MCP 伺服器,讓助理查詢城市、國家、地區與語言,包括鄰近城市與距離。

可以做什麼
依名稱、國家、地區、人口範圍或排序搜尋城市,並取得城市詳情、譯名、聚落類型及兩城間距離。查找座標附近最近或人口最多的城市,以及指定城市周邊的城市。列出並檢視國家及其譯名和行政區劃。列出並檢視地區與語言。透過複合工具一次完成城市脈絡、國家概覽和城市比較等查詢。使用免費的城市名前綴自動補全,這是沒有 API 金鑰時唯一可用的工具。
適用情境
適合需要結構化地理參考資料的情境:解析地名、比較城市、計算距離,或為旅遊、在地化和資料補充任務取得國家與地區詳情。
執行需求
以 Node.js 18+ 本機程序透過 npx 執行(stdio 版 geomelon-mcp,或 HTTP 版 geomelon-mcp-http)。需將訂閱 Geomelon API 的 RapidAPI 金鑰設為 GEOMELON_API_KEY;沒有金鑰時以無金鑰示範模式執行,僅提供自動補全工具。HTTP 傳輸讀取 PORT。需要存取 Geomelon API 的網路。
安裝前請注意
完整工具集需要與 GEOMELON_API_KEY 綁定的付費 RapidAPI 訂閱,使用可能產生費用。HTTP 傳輸無狀態且送出完全開放的 CORS 標頭,其健康檢查端點會回報是否已設定金鑰;僅在可接受此暴露的環境執行。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Geomelon Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

geomelon-mcp

MCP server for the Geomelon geographic API. Exposes cities, countries, regions, and languages as tools any MCP-compatible AI client can call.

Looking for other ways to integrate? See all official libraries at geomelon.dev/libraries.

Two transports are included:

BinaryTransportUse case
geomelon-mcpstdioClaude Desktop, Cursor, Cline, Continue
geomelon-mcp-httpHTTP (Streamable)Claude Code, remote / hosted server

Requirements


Keyless demo mode

No GEOMELON_API_KEY? Run the server anyway — it starts up with just the search_cities_autocomplete tool, backed by the free oneshot host, no signup required. Every other tool needs a key. This is the fastest way to try the server before subscribing on RapidAPI.

Try it with zero setup

Geomelon also runs a public hosted instance of this same keyless demo — no npx, no local process. Point any remote-MCP-capable client (Claude web/desktop connectors, ChatGPT connectors, MCP Inspector, etc.) at:

https://mcp.geomelon.dev/mcp

It exposes only search_cities_autocomplete, same as running the server yourself with no API key. For the full 22-tool set, run your own instance (below) with your RapidAPI key.


Claude Code (HTTP)

Create a .env file in the directory you'll run the server from:

bash
cp .env.example .env# then edit .env and set GEOMELON_API_KEY

Start the server (dotenv loads .env automatically):

bash
npx geomelon-mcp-http

Register it with Claude Code:

bash
claude mcp add --transport http geomelon http://localhost:3000/mcp

Verify it's connected:

bash
claude mcp list

The server must be running whenever you use Claude Code. To use a different port set PORT=your_port and update the URL in the claude mcp add command accordingly.


Claude Desktop (stdio)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "geomelon": {      "command": "npx",      "args": ["-y", "geomelon-mcp"],      "env": {        "GEOMELON_API_KEY": "your_rapidapi_key_here"      }    }  }}

Restart Claude Desktop after saving.


Cursor / Windsurf / Cline (stdio)

Add to your editor's MCP config:

json
{  "geomelon": {    "command": "npx",    "args": ["-y", "geomelon-mcp"],    "env": {      "GEOMELON_API_KEY": "your_rapidapi_key_here"    }  }}

Remote / hosted HTTP server

Create a .env file on your server:

bash
cp .env.example .env# set GEOMELON_API_KEY and PORT in .env

Start the server:

bash
npx geomelon-mcp-http

Then register with any MCP client using http://your-host:3000/mcp as the URL.

The HTTP transport is stateless — each request is independent, no session management needed. CORS is wide open (Access-Control-Allow-Origin: *) since this transport is meant to be reachable by browser-based remote-MCP clients too. GET / (or /health) returns a small JSON status object — useful for uptime checks — reporting whether the instance has a key configured ("mode": "full" or "mode": "keyless-demo").


Available tools

Cities

ToolDescription
search_citiesSearch by name, country code, region, population range, sort order
get_cityFull details for a city by UUID
get_city_translationsAll name translations for a city by UUID
get_city_settlement_typesSettlement-type classifications for a city by UUID
cities_by_coordinates_closestCities nearest to a lat/lon, ordered by distance
cities_by_coordinates_largestLargest cities near a lat/lon, ordered by population
cities_distanceDistance in km between two cities

Countries

ToolDescription
list_countriesList countries, filter by name prefix or telephone dialing code
get_countryFull details for a country by UUID (includes translations and regions)
get_country_translationsName translations for a country by UUID
get_country_regionsAll administrative regions for a country by UUID

Regions

ToolDescription
list_regionsList regions, filter by country UUID
get_regionFull details for a region by UUID
get_region_translationsName translations for a region by UUID

Languages

ToolDescription
list_languagesList all languages in the database
get_languageDetails for a language by UUID

Oneshot prefix search (free, no API key)

ToolDescription
search_cities_autocompleteCountry-scoped, language-specific city name prefix search backed by pre-built static files. The only tool available in keyless demo mode. Works in keyed mode too — it's the fastest search path.

See geomelon.dev/free-city-autocomplete-api for supported country/language pairs and the underlying HTTP endpoint.


Compound tools

These tools chain multiple API calls internally to save round-trips.

ToolDescription
find_cities_near_cityGiven a city UUID, find nearby cities ordered by distance or population
city_contextFetch a city together with its full country and region details in one call
country_overviewFetch a country (by UUID or name), its regions, and top cities by population
compare_citiesFetch two cities and the distance between them in one call
search_cities_in_countrySearch cities using a country name instead of an ISO code

來源:README.md,提交 195f4de

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。