Geography processing server with coordinate conversion distance and area calculation support
mcp-geo-server is an advanced geographic data processing tool server built on the Model Context Protocol (MCP). It facilitates coordinate system transformations, distance calculations, and area computations, providing essential spatial analysis features for various applications. This server serves as a powerful backend component, enabling AI tools such as Claude Desktop, Continue, Cursor, and others to perform complex geographical operations seamlessly.
mcp-geo-server supports the conversion between several key geographic coordinate systems: BD09 (Baidu), GCJ02 (China's national geodetic system - Mars coordinate system), WGS84 (GPS), and Web Mercator. Users can perform mutual conversions between these coordinates using the mcp_geo_convert
tool. Examples of supported conversion methods include:
The server offers tools for spatial calculations, including:
Distance Calculation: Computes the distance of a line using Web Mercator projection.
Area Calculation: Calculates the area of polygons based on Web Mercator projection.
The core functionality of mcp-geo-server is built around the Model Context Protocol. This protocol allows seamless integration between AI applications and the server through a standardized interface. The server receives requests from MCP clients, processes the geographic data, performs necessary calculations, and returns the results to the client.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
To install mcp-geo-server, follow the steps below:
{
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@zealgeo/mcp-geo-server"
]
}
mcp-geo-server is compatible with several MCP clients, providing a robust integration framework:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
AI applications can integrate with mcp-geo-server by leveraging the Model Context Protocol. The following example demonstrates how to set up an MCP client for mcp-geo-server
:
const MCPClient = require('@modelcontextprotocol/client');
const geoServerConfig = {
command: 'npx',
args: ['-y', '@zealgeo/mcp-geo-server'],
env: {
API_KEY: 'your-api-key'
}
};
client = new MCPClient(geoServerConfig);
The server is optimized for high-performance operations and compatibility with a variety of geographic data sources. Here’s an overview:
Server Feature | Description |
---|---|
Coordinate Conversion | Converts between BD09, GCJ02, WGS84, and Web Mercator |
Distance Calculation | Uses Web Mercator projection for accurate results |
Area Calculation | Calculates areas based on Web Mercator |
For advanced configuration and security customization, refer to the detailed documentation provided by mcp-geo-server:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
How do I integrate mcp-geo-server with an AI application?
Can mcp-geo-server handle large-scale data sets?
What are the supported coordinate systems for distance calculation?
How do I obtain API keys for MCP clients?
Are there any limitations on area calculations with mcp-geo-server?
Developers interested in contributing to mcp-geo-server should follow these guidelines:
Explore the broader MCP ecosystem, which includes other services and libraries compatible with the protocol:
By partnering with mcp-geo-server, AI applications can perform complex geographical operations efficiently and accurately, leveraging the power of MCP for robust integration and advanced functionality.
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Build a local personal knowledge base with Markdown files for seamless AI conversations and organized information.
Integrate AI with GitHub using MCP Server for profiles repos and issue creation
Python MCP client for testing servers avoid message limits and customize with API key
Explore MCP servers for weather data and DigitalOcean management with easy setup and API tools