GeoCalculator logo

GeoCalculator

Community
NodeGIS

这是一个基于 Model Context Protocol (MCP) 的地理处理工具服务器,提供坐标系统转换、距离计算、面积计算等空间分析功能。

PublisherNodeGIS
Repositorygeo-mcp-server
LanguageJavaScript
Forks
1
Stars
3
Available tools
3
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    GeoCalculator exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 3 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    3 stars and 1 forks from the linked repository.

@zealgeo/mcp-geo-server

这是一个基于 Model Context Protocol (MCP) 的地理处理工具服务器,提供坐标系统转换、距离计算、面积计算等空间分析功能。

安装

json
"geo-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y"
        "@zealgeo/mcp-geo-server"
      ]
    }

功能

支持以下坐标系统之间的转换:

  • BD09(百度坐标系)
  • GCJ02(火星坐标系)
  • WGS84(GPS坐标系)
  • Web Mercator(网络墨卡托投影)

支持的转换方法:

  • BD09 与 GCJ02 互转
  • WGS84 与 GCJ02 互转
  • BD09 与 WGS84 互转
  • Web Mercator 与经纬度互转

支持的空间计算:

  • 计算折线距离(支持米、千米单位)
  • 计算多边形面积(支持平方米、平方公里、公顷单位)
  • 支持多种坐标系统输入(WGS84、GCJ02、BD09)

MCP Tools

mcp_geo_convert

坐标系统转换工具。支持 BD09、GCJ02、WGS84 和 Web Mercator 之间的互相转换。

参数:

  • method: 转换方法
    • BD09toGCJ02: 百度坐标系转火星坐标系
    • GCJ02toBD09: 火星坐标系转百度坐标系
    • WGS84toGCJ02: WGS84转火星坐标系
    • GCJ02toWGS84: 火星坐标系转WGS84
    • BD09toWGS84: 百度坐标系转WGS84
    • WGS84toBD09: WGS84转百度坐标系
    • WebMercatortoLngLat: Web墨卡托转经纬度
    • LngLattoWebMercator: 经纬度转Web墨卡托
  • longitude: 经度值
  • latitude: 纬度值

mcp_geo_calculate_distance

计算折线距离。基于 Web Mercator 投影进行平面距离计算。

参数:

  • coordinates: 折线坐标点数组 [[lon1,lat1], [lon2,lat2],...]
  • unit: 长度单位(meters米[默认]、kilometers千米)
  • coordType: 输入坐标类型(WGS84[默认]、GCJ02、BD09)

mcp_geo_calculate_area

计算多边形面积。基于 Web Mercator 投影进行平面面积计算。

参数:

  • coordinates: 多边形坐标点数组 [[lon1,lat1], [lon2,lat2],...]
  • unit: 面积单位(square_meters平方米[默认]、square_kilometers平方公里、hectares公顷)
  • coordType: 输入坐标类型(WGS84[默认]、GCJ02、BD09)

坐标系说明

BD09(百度坐标系)

百度地图使用的坐标系统,在GCJ02基础上再次加密。

GCJ02(火星坐标系)

中国国测局制定的地理信息系统坐标系统,是对WGS84进行加密后的坐标系。

WGS84

GPS原始坐标系统,目前广泛使用的GPS全球卫星定位系统使用的坐标系统。

Web Mercator

网页地图使用的投影坐标系统,将球面坐标转换为平面坐标。用于距离和面积计算时可以获得更准确的结果。

注意事项

  1. 坐标转换精度与原始数据质量有关
  2. 中国大陆以外的坐标,WGS84与GCJ02坐标系转换将直接返回原始坐标
  3. Web Mercator坐标通常以米为单位
  4. 距离和面积计算使用Web Mercator投影后的平面计算方法,适用于中小尺度的计算
  5. 对于跨越大洲的超长距离或超大面积,建议使用球面计算方法
  6. 多边形面积计算不需要手动闭合,程序会自动处理闭合

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "geo-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@zealgeo/mcp-geo-server"
      ]
    }
  }
}

Available Tools

  • mcp_geo_convert

    在不同坐标系统之间转换坐标。支持BD09(百度)、GCJ02(火星)、WGS84(GPS)和Web Mercator投影坐标系统之间的互相转换。

  • mcp_geo_calculate_distance

    计算折线的距离。支持多种坐标系统输入,内部会先转换为WGS84坐标,再通过Web Mercator投影进行平面距离计算。适用于中小尺度的距离计算。

  • mcp_geo_calculate_area

    计算多边形面积。支持多种坐标系统输入,内部会先转换为WGS84坐标,再通过Web Mercator投影进行平面面积计算。多边形无需手动闭合。适用于中小尺度的面积计算。

Use GeoCalculator MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once GeoCalculator is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add GeoCalculator as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the GeoCalculator MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "geocalculator": {
      "command": "npx",
      "args": [
        "-y",
        "@zealgeo/mcp-geo-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the GeoCalculator MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the GeoCalculator MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use GeoCalculator to help me with this task?
GeoCalculator
Sure. I read it.
Here is what I found using GeoCalculator.

Frequently asked questions

What is the GeoCalculator MCP server used for?

GeoCalculator is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use GeoCalculator MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use GeoCalculator with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use GeoCalculator MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With GeoCalculator connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect GeoCalculator MCP to TypingMind?

GeoCalculator runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does GeoCalculator MCP provide in TypingMind?

GeoCalculator exposes 3 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use GeoCalculator MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If GeoCalculator requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇