API & MCP
Everything a person can do on Geo Data Visualizer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://geodatavisualizer.usefulweb.site/api/v1/calculate– run Geo Data VisualizerGET https://geodatavisualizer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Geo Data Visualizer
Upload a CSV/XLSX with latitude/longitude (plus optional value and label) or a country-code column, or a GeoJSON file with points, lines and polygons. Get an SVG map over bundled Natural Earth country outlines in the Equal Earth, Mercator or equirectangular projection – as points, proportional symbols, a hexagonal-bin heatmap or a choropleth – zoomed to your data, with SVG/PNG downloads.
| Field | Type | Default | Description |
|---|---|---|---|
file | file | — | CSV, Excel or GeoJSON file. Max 20 MB. CSV/XLSX: lat/lon columns or a country column (ISO code or English name). GeoJSON: Point, LineString, Polygon (and Multi-) geometries. |
data | textarea | — | Or paste data. CSV with a header row, or GeoJSON. |
mode | select (auto, points, proportional, hexbin, choropleth) | "auto" | Map type |
projection | select (equal-earth, mercator, equirectangular) | "equal-earth" | Projection |
latColumn | text | — | Latitude column. Empty: a column named lat/latitude. |
lonColumn | text | — | Longitude column. Empty: a column named lon/lng/longitude. |
valueColumn | text | — | Value column / property. Numbers for circle size, hex sums or choropleth shading. Empty: the first numeric column (or a "value" property in GeoJSON). |
labelColumn | text | — | Label column / property |
countryColumn | text | — | Country column (choropleth). ISO 3166 alpha-2/alpha-3 codes or English country names. |
zoom | select (auto, world) | "auto" | Extent |
hexRadius | integer | 14 | Hexagon size |
title | text | — | Map title |
png | boolean | true | Also create a PNG image |
Example request
Offices as proportional circles (staff, example data)
curl -X POST https://geodatavisualizer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"data":"office,lat,lon,staff\nTokyo,35.68,139.69,42\nDelhi,28.61,77.21,18\nShanghai,31.23,121.47,25\nSão Paulo,-23.55,-46.63,12\nMexico City,19.43,-99.13,9\nCairo,30.04,31.24,6\nMumbai,19.08,72.88,21\nNairobi,-1.29,36.82,7\nNew York,40.71,-74.01,55\nLagos,6.52,3.38,8\nParis,48.86,2.35,31\nLondon,51.51,-0.13,47\nBerlin,52.52,13.40,26\nToronto,43.65,-79.38,14\nSydney,-33.87,151.21,11","mode":"proportional","valueColumn":"staff","labelColumn":"office","zoom":"world","title":"Staff per office (example data)"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://geodatavisualizer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
geo_data_visualizer - Local stdio connector:
node src/mcp-stdio.ts --tool=geo-data-visualizer
{
"mcpServers": {
"geo-data-visualizer": { "type": "http", "url": "https://geodatavisualizer.usefulweb.site/mcp" }
}
}