930m310n

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

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

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

概覽

AI 產生的概覽

面向 Geomelon 地理 API 的 MCP 伺服器,讓助理查詢城市、國家、地區與語言,並提供免金鑰的示範模式。

可以做什麼
依名稱、國家代碼、地區、人口範圍或排序方式搜尋城市,並取得城市詳細資料、譯名、聚落類型與城市間距離。尋找座標附近或某城市附近的城市,並在一次呼叫中比較兩個城市。列出並檢視國家,包括譯名、行政區與人口最多的城市。列出並檢視地區與語言。使用免費的國家限定城市名前綴自動完成,這是唯一免 API 金鑰的工具。
適用情境
適合助理需要結構化地理參考資料的情境:解析地名、比較城市、計算距離,或為旅遊、在地化與資料補充任務取得國家與地區背景資訊。
執行需求
需要 Node.js 18 以上版本,透過 npx 以 stdio 程序或本機 HTTP 伺服器方式執行。需要已訂閱 Geomelon API 的 RapidAPI 金鑰,透過 GEOMELON_API_KEY 提供,才能使用完整工具集;沒有金鑰時僅自動完成工具可用。HTTP 傳輸會讀取 PORT,且使用用戶端時伺服器必須保持執行。
安裝前請注意
完整工具集需要與 GEOMELON_API_KEY 綁定的付費 RapidAPI 訂閱,請勿將金鑰放入共用設定。HTTP 傳輸無狀態且 CORS 完全開放,能存取該埠的人都能呼叫;若部署在主機上應限制暴露範圍。查詢內容會傳送到 Geomelon API。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 930m310n,將其新增到工作區。
  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.0.7最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

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