Geometry primitivesFree tier
geometry_ops
PostGIS unary and binary operations on user-supplied WKT. Unary: buffer (with distance_m), simplify, centroid, envelope, convex_hull. Binary: intersection, union, difference. Returns the result WKT plus geometry type and area/length metrics. SRID restricted to a curated allowlist.
Use cases
- Buffer a property location by 500m to derive a search polygon.
- Simplify a heavy WKT polygon before sending it to a downstream tool.
- Compute the intersection of two custom polygons (e.g., flood + admin boundary).
- Get the convex hull of a cluster of points generated upstream.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| op | string | required | buffer | simplify | centroid | envelope | convex_hull | intersection | union | difference. |
| geom_a | string | required | Input WKT geometry. |
| geom_b | string | optional | Second geometry for binary ops. |
| distance_m | number | optional | Buffer distance. Required for buffer. Max 50,000 m. |
| tolerance | number | optional | Simplify tolerance. Required for simplify. Max 1.0. |
| srid | integer | optional | Coordinate system. Allowlist: 4326, 3857, 3003, 3004, 4258, 6707, 6708, 32632, 32633. Default 4326. |
Example request
curl
bash
curl -X POST https://mcp.qubitdata.it/mcp \
-H "Authorization: Bearer $QUBITDATA_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "geometry_ops",
"arguments": {
"op": "buffer",
"geom_a": "POINT(9.19 45.4642)",
"distance_m": 500,
"srid": 4326
}
}
}'
Example response
JSON-RPC 2.0 result
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"wkt\": \"POLYGON((9.1964 45.4642, 9.1962 45.4598, ...))\",\n \"type\": \"Polygon\",\n \"area_m2\": 785398\n}"
}
]
}
}
Prompts to try
Drop these into Claude Desktop, Cursor, or any MCP-aware client wired to https://mcp.qubitdata.it/mcp.
-
Claude Desktop
Buffer POINT(9.19 45.4642) by 500m and return WKT.
-
Cursor
Compute the convex hull of the point cluster I'll pass as MULTIPOINT WKT.
-
Custom MCP client
Simplify this heavy polygon to tolerance 0.0001 before passing it on.
Related tools
geometry_validate · coordinate_transform · isochrone_proxy
Get started
Sign up for a free key to call this tool from your agent. Need a wider geo cap or higher quota? See pricing.
Last updated: