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 分

    请在仓库或注册中心条目中声明许可证。