Skip to main content

MCP Server for TableGIS - Geospatial data processing tools for AI assistants

Project description

TableGIS MCP Server

Geospatial data processing tools for AI assistants via the Model Context Protocol (MCP).

Wraps tablegis functions as MCP tools, enabling AI clients (Claude Desktop, Cursor, etc.) to perform spatial analysis through natural language.

Tools

Tool Description
nearest_neighbor_one_table Find nearest n neighbors within a single point dataset
nearest_neighbor_two_tables Find nearest n points from dataset B for each point in dataset A
create_buffer Create circular or ring buffers around points (metres)
create_polygon Create regular or star polygons around points
create_sector Create sector (wedge) polygons for directional coverage
points_to_geodataframe Convert lon/lat columns to Point geometries
calculate_area Calculate polygon areas in square metres
buffer_geometries Expand/shrink existing geometries by a distance
cluster_by_distance Group nearby points into clusters by buffer distance
convert_coordinates Convert between Chinese coordinate systems (WGS84/GCJ02/BD09)
match_spatial_layer Spatial join: match points to a polygon layer file

Install

pip install tablegis-mcp

Or use with uvx (no install needed):

uvx tablegis-mcp

Configure

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "tablegis": {
      "command": "uvx",
      "args": ["tablegis-mcp"]
    }
  }
}

Or if installed via pip:

{
  "mcpServers": {
    "tablegis": {
      "command": "python",
      "args": ["-m", "tablegis_mcp.server"]
    }
  }
}

Cursor / Other MCP Clients

Use the same command configuration. The server communicates via stdio transport.

Usage Examples

Once configured, you can ask your AI assistant:

  • "Find the 3 nearest neighbors for each point in this dataset"
  • "Draw 3km delivery zones around these store locations"
  • "Calculate the area of each polygon in square metres"
  • "Group points within 500m into clusters"
  • "Match these coordinates to a shapefile of administrative boundaries"
  • "Convert these WGS84 coordinates to GCJ-02 (Amap/高德)"

Data is passed as CSV or JSON strings; geometry results are returned as WKT.

Development

git clone https://github.com/Non-existent987/tablegis-mcp.git
cd tablegis-mcp
pip install -e ".[dev]"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tablegis_mcp-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tablegis_mcp-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file tablegis_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: tablegis_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for tablegis_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 039b9f1359bbaa019bfe296a78f87105ac0c2c3aa38c14f97864616affb26dd2
MD5 ad12d335f0cf7aa432e50e7a702bdb55
BLAKE2b-256 e7fc2d5502086c44a2559c580c0703d8b182d82a069412e5badb15483783f1c2

See more details on using hashes here.

File details

Details for the file tablegis_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tablegis_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for tablegis_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab1f91971f665130d47c4d2badf48b4eb43ff995bd0c5234a131ba36ead854f4
MD5 d393977e4e7d833e6d305e5e3eecaea7
BLAKE2b-256 fad42382cdd5998e42b1bbf698446a194b522a3bb2598531b9d1557e70407096

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page