Connections & Capabilities
Connects To
Capabilities
Quickstart
Install
brew install uvConfig
{
"mcpServers": {
"qgis": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/REPO/FOLDER/qgis_mcp/src/qgis_mcp",
"run",
"qgis_mcp_server.py"
]
}
}
}Exposed MCP Tools (15)
pingChecks the connectivity between Claude and the QGIS MCP server.
Read-only command with no side effects.
get_qgis_infoRetrieves information about the current QGIS installation.
Read-only command that retrieves system information.
load_projectLoads a QGIS project from a specified file path.
Potentially loads malicious project files.
create_new_projectCreates a new QGIS project and saves it to a specified path.
Can overwrite existing files.
get_project_infoRetrieves information about the current QGIS project.
Read-only command that retrieves project metadata.
add_vector_layerAdds a vector layer to the current QGIS project.
Potentially loads malicious vector data.
add_raster_layerAdds a raster layer to the current QGIS project.
Potentially loads malicious raster data.
get_layersRetrieves a list of all layers in the current QGIS project.
Read-only command that lists layers.
remove_layerRemoves a layer from the QGIS project by its ID.
Deletes a layer from the project.
zoom_to_layerZooms the map view to the extent of a specified layer.
Read-only command that changes the map view.
get_layer_featuresRetrieves features from a vector layer, with an optional limit.
Read-only command that retrieves feature data.
execute_processingExecutes a QGIS processing algorithm with given parameters.
May modify data or create new files.
save_projectSaves the current QGIS project to a specified file path.
Can overwrite existing project files.
render_mapRenders the current map view to an image file.
Writes an image file to disk.
execute_codeExecutes arbitrary PyQGIS code provided as a string.
Allows unrestricted code execution within QGIS.
Safety Assessment
QGISMCP offers powerful integration between Claude AI and QGIS, but the ability to execute arbitrary Python code introduces substantial security risks. It is safe to use only with trusted code and a thorough understanding of the potential consequences. Exercise extreme caution when executing code from untrusted sources.
- Requires local execution, limiting external exposure.
- User must manually configure Claude Desktop to enable the integration.
- Clear separation of concerns between the QGIS plugin and the MCP server.
- Allows arbitrary Python code execution within QGIS, posing a significant risk.
- No built-in sandboxing for code execution.
- Relies on user vigilance to avoid executing malicious code.
- Potential for unauthorized data access or modification if exploited.
