layer
addTileLayer, addVectorLayer, removeLayer, listLayers, setLayerVisibility, setLayerOpacity, setLayerZIndex
How to use it
layer is exposed by the Openlayers MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the layer tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Openlayers MCP
npx openlayers-mcp-runtimeOther tools in Openlayers MCP (8)
enableDraw, disableDraw, getDrawnFeatures
Enable a toolset to register its tools
addFeature, addGeoJSON, removeFeature, updateFeature, listFeatures
screenshot, getFeatureAtPixel, getFeaturesInExtent
List all available toolsets and their enabled status
addOverlay, removeOverlay, updateOverlay, listOverlays
setFeatureStyle, setLayerStyle
flyTo, setView, getView, fitExtent, zoomIn, zoomOut