About Jts MCP
Jts MCP is an MCP server in the Agents category: mCP server exposing selected library functions from library JTS (Java Topology Suite) to solve Geospatial problems using Agentic AI.
Install
git clone https://github.com/shubhranshugupta/jts-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (20)
bufferGeometryBuffer a geometry by a given distance and return WKT.
Parameters not published.
calculateAreaCalculate the area of a polygon.
Parameters not published.
calculateCentroidCalculate the centroid of a polygon and return as Point WKT.
Parameters not published.
containsCheck if the first geometry contains the second.
Parameters not published.
createLineCreate a LineString geometry from a list of [x, y] coordinates and return WKT..
Parameters not published.
createPointCreate a Point geometry from [x, y] coordinates and return WKT.
Parameters not published.
createPolygonCreate a Polygon geometry from a list of [x, y] coordinates and return WKT.
Parameters not published.
distanceCalculate the distance between two geometries.
Parameters not published.
extractSubLineExtract a subline from a ring between two indices.
Parameters not published.
getBoundaryExtract the boundary of a geometry as a LineString.
Parameters not published.
Show all 20 tools
hausdorffDistanceCalculate the Hausdorff distance between two polygons.
Parameters not published.
intersectGeometriesIntersect two geometries and return the result as WKT.
Parameters not published.
intersectsCheck if two geometries intersect..
Parameters not published.
isValidGeometryCheck if a geometry is valid.
Parameters not published.
makePolygonFromRingCreate a Polygon from a closed LineString WKT.
Parameters not published.
mergeAndSelectLongestChainMerge intersected boundary segments into continuous chains and pick the longest one.
Parameters not published.
polygonizePolygonize: Create all possible polygons from a network of LineStrings.
Parameters not published.
projectOnRingProject a point onto a ring and return the index.
Parameters not published.
rebuildPolygonRingRebuild a polygon ring by splicing source ring and target chain.
Parameters not published.
unaryUnionLinesMerge all LineStrings into one network using UnaryUnionOp.
Parameters not published.
Ask AI
Ask AI about Jts MCP
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
jts-mcp
MCP server exposing selected library functions from library JTS (Java Topology Suite) to solve Geospatial problems using Agentic AI
Features
- Extensive geospatial tools exposed as Spring AI tools
- Endpoints for geometry creation, spatial queries, and transformations
Tools
- createPoint - Create a Point geometry from [x, y] coordinates and return WKT.
- createLine - Create a LineString geometry from a list of [x, y] coordinates and return WKT..
- createPolygon - Create a Polygon geometry from a list of [x, y] coordinates and return WKT.
- bufferGeometry - Buffer a geometry by a given distance and return WKT.
- intersects - Check if two geometries intersect..
- contains - Check if the first geometry contains the second.
- distance - Calculate the distance between two geometries.
- unaryUnionLines - Merge all LineStrings into one network using UnaryUnionOp.
- getBoundary - Extract the boundary of a geometry as a LineString.
- intersectGeometries - Intersect two geometries and return the result as WKT.
- mergeAndSelectLongestChain - Merge intersected boundary segments into continuous chains and pick the longest one.
- projectOnRing - Project a point onto a ring and return the index.
- extractSubLine - Extract a subline from a ring between two indices.
- makePolygonFromRing - Create a Polygon from a closed LineString WKT.
- rebuildPolygonRing - Rebuild a polygon ring by splicing source ring and target chain.
- isValidGeometry - Check if a geometry is valid.
- polygonize - Polygonize: Create all possible polygons from a network of LineStrings.
- calculateArea - Calculate the area of a polygon.
- calculateCentroid - Calculate the centroid of a polygon and return as Point WKT.
- hausdorffDistance - Calculate the Hausdorff distance between two polygons.
Integration with Agentic AI
- Use the SSE integration from the MCP Client to inform your LLM about available endpoints and their usage.
- e.g configuration in MCP client:
mcp: client: enabled: true name: jts-mcp-client version: 1.0.0 type: SYNC request-timeout: 20s toolcallback.enabled: true sse: connections: jts-mcp-sse: url: http://localhost:8081
- e.g configuration in MCP client:
- Example workflow:
- User provides a geospatial problem statement.
- Spring AI app sends it to LLM.
- LLM returns actions (e.g., buffer, intersect, fix).
- Spring AI app calls MCP endpoints to execute actions and sends results back to LLM.
- LLM iterates until the problem is solved.
- Final result is presented to the user.
Running the Server
mvn spring-boot:run
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.