Loading...

QGISMCP connects Claude AI to QGIS, enabling AI-assisted project creation, layer manipulation, and code execution within the QGIS environment.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
QGISMCP connects Claude AI to QGIS, enabling AI-assisted project creation, layer manipulation, and code execution within the QGIS environment.
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.
Performance depends on the complexity of the executed tasks and the size of the geospatial data. Complex geoprocessing operations or large datasets may result in slower execution times.
The primary cost considerations are related to the Claude AI service and the computational resources used by QGIS. Executing complex tasks may consume more resources and increase costs.
brew install uv{
"mcpServers": {
"qgis": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/REPO/FOLDER/qgis_mcp/src/qgis_mcp",
"run",
"qgis_mcp_server.py"
]
}
}
}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.
None
cloud
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.
The integration provides full access to QGIS functionality, including potentially destructive operations. There is no sandboxing or rollback mechanism, so caution is advised.
Production Tip
Implement thorough input validation and error handling in any custom Python code to prevent unexpected behavior and potential security vulnerabilities.
QGIS 3.x, Claude desktop, Python 3.10+, and the uv package manager.
Copy the `qgis_mcp_plugin` folder to your QGIS profile's plugins folder and enable it in the QGIS plugin manager.
Edit the `claude_desktop_config.json` file to include the QGISMCP server configuration, specifying the path to the `qgis_mcp_server.py` script.
The primary risk is the ability to execute arbitrary Python code, which can lead to system compromise if not handled carefully.
Yes, QGISMCP allows you to automate repetitive geoprocessing tasks and create custom geospatial workflows using Claude AI.
No, there is no built-in sandboxing or rollback mechanism. Exercise caution when executing code from untrusted sources.
Error handling relies on standard Python exception handling. Implement robust error handling in your code to prevent unexpected behavior.