RG

ronantakizawa/gis-dataconversion-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

18 stars 8 forks 质量 51 趋势 22MIT

An MCP server for converting GIS filetypes (1000+ Downloads)

概览

The GIS Data Conversion MCP is an MCP (Model Context Protocol) server that gives LLMs access to geographic data conversion tools. This server uses various GIS libraries to allow LLMs to convert between different geographic data formats, coordinate systems, and spatial references. - - Convert coordinates to location information - - Convert between Well-Known Text and GeoJSON formats - - Transform tabular data with coordinates to GeoJSON and vice versa - - Convert between GeoJSON and TopoJSON (topology-preserving format) - - Transform KML files to GeoJSON format https://github.com/user-attachments/assets/e21b10c3-bb67-4322-9742-efa8c7d8b332 https://github.com/user-attachments/assets/a5d56051-8aed-48bb-8de1-820df8d34fe3 To use this server with Claude Desktop, you need to configure it in the MCP settings: Edit the file at '~/Library/Application Support/Claude/claude_desktop_config.json' Edit the file at %APPDATA%\Claude\settings\claude_mcp_settings.json

README

以下为原文 README 节选,完整内容请查看原文。

GIS Data Conversion MCP

The GIS Data Conversion MCP is an MCP (Model Context Protocol) server that gives LLMs access to geographic data conversion tools.

This server uses various GIS libraries to allow LLMs to convert between different geographic data formats, coordinate systems, and spatial references.

Features

  • Reverse Geocoding - Convert coordinates to location information
  • WKT/GeoJSON Conversion - Convert between Well-Known Text and GeoJSON formats
  • CSV/GeoJSON Conversion - Transform tabular data with coordinates to GeoJSON and vice versa
  • TopoJSON/GeoJSON Conversion - Convert between GeoJSON and TopoJSON (topology-preserving format)
  • KML/GeoJSON Conversion - Transform KML files to GeoJSON format

Demo

Reverse Geocoding

https://github.com/user-attachments/assets/e21b10c3-bb67-4322-9742-efa8c7d8b332

TopoJSON to GeoJSON

https://github.com/user-attachments/assets/a5d56051-8aed-48bb-8de1-820df8d34fe3

Installation

To use this server with Claude Desktop, you need to configure it in the MCP settings:

For macOS: Edit the file at '~/Library/Application Support/Claude/claude_desktop_config.json'

{
  "mcpServers": {
    "gis-dataconversion-mcp": {
    "command": "npx",
    "args": [
      "-y",
      "a11y-mcp-server"
    ]
   }
  }
}

For Windows: Edit the file at %APPDATA%\Claude\settings\claude_mcp_settings.json

For Linux: Edit the file at ~/.config/Claude/settings/claude_mcp_settings.json Replace /path/to/axe-mcp-server/build/index.js with the actual path to your compiled server file.

Available Tools

wkt_to_geojson

Converts Well-Known Text (WKT) to GeoJSON format.

geojson_to_wkt

Converts GeoJSON to Well-Known Text (WKT) format.

csv_to_geojson

Converts CSV with geographic data to GeoJSON.

Parameters:

  • csv (required): CSV string to convert
  • latfield (required): Field name for latitude
  • lonfield (required): Field name for longitude
  • delimiter (optional): CSV delimiter (default is comma)

geojson_to_csv

Converts GeoJSON to CSV format.

geojson_to_topojson

Converts GeoJSON to TopoJSON format (more compact with shared boundaries).

Parameters:

  • geojson (required): GeoJSON object to convert
  • objectName (optional): Name of the TopoJSON object to create (default: “data”)
  • quantization (optional): Quantization parameter for simplification (default: 1e4, 0 to disable)

topojson_to_geojson

Converts TopoJSON to GeoJSON format.

Parameters:

在 GitHub 查看完整 README

安装

npx -y a11y-mcp-server
新手?先看 mcpskill.org 教程 →