remove_layer
Remove a layer from the project by its ID
How to use it
remove_layer is exposed by the Qgis MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the remove_layer tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL QGIS MCP LISTINGOther tools in Qgis MCP (14)
Add a raster layer to the project
Add a vector layer to the project
Create a new project and save it
Execute arbitrary PyQGIS code provided as a string
Execute a processing algorithm with the given parameters
Retrieve features from a vector layer with an optional limit
Retrieve all layers in the current project
Get current project information
Get QGIS information about the current installation
Load a QGIS project from the specified path
Simple ping command to check server connectivity
Render the current map view to an image file
Save the current project to the given path
Zoom to the extent of a specified layer