Skip to main content
Glama
NodeGIS

GeoSpatial MCP Server

by NodeGIS

@zealgeo/mcp-geo-server

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

安装

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

Related MCP server: GIS MCP 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[默认]、GCJ02BD09

mcp_geo_calculate_area

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

参数:

  • coordinates: 多边形坐标点数组 [[lon1,lat1], [lon2,lat2],...]

  • unit: 面积单位(square_meters平方米[默认]、square_kilometers平方公里、hectares公顷)

  • coordType: 输入坐标类型(WGS84[默认]、GCJ02BD09

坐标系说明

BD09(百度坐标系)

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

GCJ02(火星坐标系)

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

WGS84

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

Web Mercator

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

注意事项

  1. 坐标转换精度与原始数据质量有关

  2. 中国大陆以外的坐标,WGS84与GCJ02坐标系转换将直接返回原始坐标

  3. Web Mercator坐标通常以米为单位

  4. 距离和面积计算使用Web Mercator投影后的平面计算方法,适用于中小尺度的计算

  5. 对于跨越大洲的超长距离或超大面积,建议使用球面计算方法

  6. 多边形面积计算不需要手动闭合,程序会自动处理闭合

Available Tools

3 tools
mcp_geo_calculate_areaA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
coordTypeNo输入坐标类型WGS84
coordinatesYes多边形坐标点数组,格式:[[lon1,lat1], [lon2,lat2],...]
unitNo面积单位:square_meters(平方米)、square_kilometers(平方公里)或hectares(公顷)square_meters

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: coordinate system conversion (WGS84 conversion), projection method (Web Mercator), polygon handling (no manual closure needed), and scale limitations (small to medium scale). This provides good operational context beyond basic functionality.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured in three sentences that each add value: core functionality, technical implementation details, and usage context. There's no wasted text, and key information is front-loaded about what the tool does.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a calculation tool with no annotations and no output schema, the description provides good contextual completeness. It covers the calculation method, coordinate handling, polygon requirements, and scale limitations. The main gap is lack of information about return values or error conditions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the schema already documents all three parameters thoroughly. The description adds some context about coordinate system conversion and scale applicability, but doesn't provide additional parameter-specific semantics beyond what's in the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('计算多边形面积' - calculate polygon area) and resource (polygons), distinguishing it from sibling tools like distance calculation and coordinate conversion. It provides additional context about supported coordinate systems and the calculation method.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context about when to use this tool ('适用于中小尺度的面积计算' - suitable for small to medium scale area calculations) and mentions that polygons don't need manual closure. However, it doesn't explicitly state when NOT to use it or provide direct alternatives to sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mcp_geo_calculate_distanceA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
coordTypeNo输入坐标类型WGS84
coordinatesYes折线坐标点数组,格式:[[lon1,lat1], [lon2,lat2],...]
unitNo长度单位:meters(米)或kilometers(千米)meters

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds valuable context beyond what the schema provides: explains coordinate system conversion ('支持多种坐标系统输入,内部会先转换为WGS84坐标'), describes the calculation method ('通过Web Mercator投影进行平面距离计算'), and specifies applicability ('适用于中小尺度的距离计算'). However, it doesn't mention error conditions, performance characteristics, or what the output looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly concise with three sentences that each add distinct value: states the core function, explains coordinate handling and calculation method, and provides usage context. No wasted words, well-structured, and front-loaded with the main purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a calculation tool with no annotations and no output schema, the description does reasonably well. It explains the transformation process and applicability scope. However, it doesn't describe the return value format or potential error conditions. Given the 100% schema coverage for inputs and the clear behavioral context provided, this is fairly complete though missing output information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already fully documents all 3 parameters. The description doesn't add any parameter-specific information beyond what's in the schema. The baseline of 3 is appropriate when the schema does all the parameter documentation work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: '计算折线的距离' (calculate polyline distance). It specifies the resource (折线/polyline) and the action (计算距离/calculate distance). However, it doesn't explicitly differentiate from its sibling 'mcp_geo_calculate_area' which calculates area rather than distance, though the distinction is implied.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides some usage context: '适用于中小尺度的距离计算' (suitable for small to medium scale distance calculations). This implies when to use it (for appropriate scales) but doesn't explicitly state when NOT to use it or mention alternatives like the sibling tools. No explicit guidance on choosing between this tool and 'mcp_geo_calculate_area' or 'mcp_geo_convert'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mcp_geo_convertA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
latitudeYes纬度
longitudeYes经度
methodYes转换方法

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does (conversion) but doesn't describe behavioral traits such as error handling, performance characteristics, or any side effects. For a tool with no annotations, this is a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured in a single sentence that front-loads the core purpose and lists supported systems. Every word contributes meaning without redundancy, making it efficient and easy to understand.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (coordinate conversion with 3 parameters) and no annotations or output schema, the description is somewhat complete but has gaps. It covers the purpose and supported systems but lacks details on behavior, output format, or error cases. This makes it adequate but not fully comprehensive for an agent to use confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters (latitude, longitude, method with enum values). The description adds minimal value beyond the schema by mentioning the supported coordinate systems, which relates to the method parameter, but doesn't provide additional semantic context like conversion accuracy or limitations. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: converting coordinates between different coordinate systems. It specifies the action ('在不同坐标系统之间转换坐标') and lists the supported systems (BD09, GCJ02, WGS84, Web Mercator), which distinguishes it from sibling tools like mcp_geo_calculate_area and mcp_geo_calculate_distance that perform different geographic calculations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when coordinate conversion is needed, but it doesn't provide explicit guidance on when to use this tool versus alternatives. It mentions the supported systems, which gives context, but lacks specific scenarios, exclusions, or comparisons to sibling tools. This leaves usage somewhat open to interpretation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updatesv1.0.0
    • First observedmcp_geo_calculate_area
    • First observedmcp_geo_calculate_distance
    • First observedmcp_geo_convert

TDQS

A3.7/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: calculate_area for polygon area, calculate_distance for polyline distance, and convert for coordinate system conversion. There is no overlap in functionality, making tool selection straightforward for an agent.

Naming Consistency5/5

All tool names follow a consistent pattern: mcp_geo_ followed by a verb (calculate or convert) and a noun (area, distance, or no noun for convert). This predictability enhances usability and reduces confusion.

Tool Count3/5

With only 3 tools, the server feels thin for a geospatial domain, which typically involves more operations like buffering, intersection, or spatial queries. While the tools cover basic calculations and conversion, the scope is limited, potentially requiring agents to work around missing functionality.

Completeness2/5

The tool set is severely incomplete for geospatial operations. It lacks essential CRUD or lifecycle coverage, such as creating or querying spatial data, performing spatial joins, or handling more complex analyses like buffering or overlay operations. This will likely cause agent failures in broader geospatial tasks.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    C
    quality
    A
    maintenance
    A Model Context Protocol server that connects LLMs to GIS operations, enabling AI assistants to perform accurate geospatial analysis including geometric operations, coordinate transformations, and spatial measurements.
    87
    190
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A geospatial MCP server that provides tools for geocoding, routing, elevation profiles, and spatial analysis. It enables AI agents to process GIS file formats like GeoJSON and Shapefiles while performing complex coordinate transformations and distance calculations.
    4
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NodeGIS/geo-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server