地理空间研究工具

GeoMCP 是一个用于地理空间研究的MCP服务器,提供多种地理信息查询和可视化工具,适用于地图制作和研究项目。

  • by anandaroop
  • Ruby
  • 本地部署
  • 更新于
在 GitHub 查看 anandaroop/geomcp

使用说明

GeoMCP

辅助制图项目地理空间研究的MCP服务器。

工具

它目前公开了以下工具:

  • 地名_国家_边界_箱
    • 使用GeoNames API返回给定国家/地区的边界框
  • geonames_get
    • 使用GeoNames API返回给定地名的详细信息
  • 地理名称搜索
    • 使用API地名搜索地名
  • geojsonpreview
    • 生成一个URL,用于预览上的研究数据http://geojson.io
  • 维基百科搜索
    • 在维基百科中搜索与给定查询匹配的文章
  • wikipedia_get_page
    • 使用维基百科API通过ID获取维基百科页面
  • nominatim_search
    • 使用OSM‘Nomatim API搜索地名

使用Claude代码

geomcp 可以作为MCP服务器添加到Claude Code中。

此项目还包含允许Claude Code通过子代理以特定方式使用MCP服务器的设置。

次级代理商

  • 地名研究员
    • 使用查询工具研究地名,并以我历史上使用过的特定CSV格式返回

速查表

# start the MCP server
$ bundle exec rails server

# run the mcp inspector
$ npx @modelcontextprotocol/inspector --transport http --server-url http://localhost:3000/mcp

# add the MCP server to Claude Code
$ claude mcp add --scope project --transport http geomcp "http://localhost:3000/mcp"

# launch Claude Code
$ claude

╭───────────────────────────╮
│ ✻ Welcome to Claude Code! │
╰───────────────────────────╯

# request research via the research subagent
> @place-name-researcher give me a CSV with New Orleans and New York

# preview the results on a globe at http://geojson.io
> preview those results

# make use of the `creating-basemaps` skill
> basemap of New York state, including towns, with a 30% buffer

# make use of the `opening-basemaps-in-qgis` skill
> visualize that in QGIS

使用方法 georesearch

我首选的使用方式是通过一个单独的定制CLIhttps://github.com/anandaroop/georesearch.