Skip to main content
Glama
@terranode-co/mcp-server

@terranode-co/mcp-server

Official
by terranode-co

@terranode-co/mcp-server

MCP server for spatial queries via the Terranode Geospatial API. Gives AI agents (Claude Desktop, Cursor, etc.) tools to query geospatial datasets — point-in-polygon lookups, nearest feature search, distance calculations, and spatial joins.

Prerequisites

Related MCP server: Overture Maps MCP Server

Setup

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "terranode": {
      "command": "npx",
      "args": ["@terranode-co/mcp-server"],
      "env": {
        "TERRANODE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

{
  "mcpServers": {
    "terranode": {
      "command": "npx",
      "args": ["@terranode-co/mcp-server"],
      "env": {
        "TERRANODE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "terranode": {
      "command": "npx",
      "args": ["@terranode-co/mcp-server"],
      "env": {
        "TERRANODE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Available tools

Tool

Description

list_datasets

List all available geospatial datasets (system + custom)

check_location

Point-in-polygon: which feature contains a coordinate?

find_nearest

Find the N nearest features to a coordinate, with distances

calculate_distance

Geodesic distance between two points (meters + miles)

spatial_join

Enrich multiple coordinates with polygon attributes at once

Example prompts

Try these in Claude Desktop or Cursor:

  • "What county is latitude 40.71, longitude -74.00 in?"

  • "What datasets are available?"

  • "Find the 3 nearest counties to Central Park"

  • "How close is my proposed site (40.7128, -74.006) to the nearest school (34.0522, -118.2437)?"

  • "Which states do these 5 warehouse locations fall in?" (paste coordinates)

  • "What ZIP code is 37.7749, -122.4194 in?"

API Reference

The full API spec is available at docs.terranode.co/openapi.yaml (OpenAPI 3.1).

Feedback

Report issues or feature requests: feedback@terranode.co

Available Tools

6 tools
calculate_distanceA

Calculate the exact geodesic distance between two points on Earth's surface. Uses the WGS84 ellipsoid model for high accuracy. No dataset needed. Returns distance in both meters and miles.

Inputs: lat1 (required), lng1 (required), lat2 (required), lng2 (required).

check_locationA

Check which feature in a polygon dataset contains a given coordinate (point-in-polygon query). Returns the properties of all matching features, or indicates no match. Requires latitude, longitude, and a dataset id (UUID) from list_datasets. Call list_datasets first to get the id. This is NOT a geocoder — it requires numeric coordinates, not addresses or place names.

Inputs: lat (required), lng (required), dataset (required).

enrich_locationA

Get location attributes (county, flood zone, school district, etc.) for a coordinate. Queries all available datasets in one call and returns what matched. No dataset id needed — this is the simplest way to find out what's at a location. Optional radius expands the search area (meters). This is NOT a geocoder — it requires numeric coordinates, not addresses or place names.

Inputs: lat (required), lng (required), radius.

find_nearestA

Find the nearest counties, districts, ZIP codes, or other features to a coordinate. Use this for proximity queries, finding what's nearby, or ranking features by distance. Returns features sorted by distance (meters and miles), measured to feature boundary. Also works as a reverse lookup — returns the containing feature (distance=0) plus neighbors. Requires latitude, longitude, and a dataset id (UUID) from list_datasets.

Inputs: lat (required), lng (required), dataset (required), n, +1 more.

list_datasetsA

List all geospatial datasets available for querying. Returns pre-loaded public datasets (US states, counties, ZIP codes, etc.) and your custom uploaded datasets. Each dataset has an id (UUID) — always use the id when calling other tools.

Inputs: no named parameters.

spatial_joinA

Enrich a set of coordinates with attributes from a polygon dataset. For each point, returns the properties of the polygon it falls within. Like running check_location on multiple points at once, but more efficient. Requires an array of coordinate objects and a dataset id (UUID) from list_datasets. Call list_datasets first to get the id. Points need numeric coordinates, not addresses.

Inputs: points (required), dataset (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 6 tools

    Disambiguation4/5

    Tools have distinct purposes but check_location and enrich_location both perform point-in-polygon queries, which could cause confusion. However, clear descriptions differentiate their scopes (single vs. multi-dataset).

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with lowercase and underscores, e.g., calculate_distance, list_datasets, spatial_join.

    Tool Count5/5

    Six tools cover essential geospatial operations without excess or deficiency, well-scoped for a geospatial analysis server.

    Completeness4/5

    Covers core geospatial queries (distance, point-in-polygon, enrichment, proximity) but lacks tools for dataset upload, detailed metadata, or buffer/area calculations. Minor gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      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
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that provides AI agents with geospatial analytics by querying Overture Maps data directly from S3, enabling place analytics, building composition, land use classification, and transportation analysis.
      13
      5
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Free geospatial MCP server for AI agents, providing geocoding, reverse geocoding, POI search, and route planning using OpenStreetMap data via Nominatim, Overpass, and OSRM.
      GPL 3.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      An MCP server that connects AI agents to cloud-native geospatial data via STAC metadata and DuckDB with H3 spatial indexing, enabling zero-configuration SQL queries on terabyte-scale datasets over S3.
      22
      BSD 3-Clause