Simple ping command to check server connectivity
Get QGIS information about the current installation
Load a QGIS project from the specified path
Create a new project and save it
Get current project information
Add a vector layer to the project
Add a raster layer to the project
Retrieve all layers in the current project
Remove a layer from the project by its ID
Zoom to the extent of a specified layer
Retrieve features from a vector layer with an optional limit
Execute a processing algorithm with the given parameters
Save the current project to the given path
Render the current map view to an image file
Execute arbitrary PyQGIS code provided as a string
QGIS MCP connects QGIS Desktop to Claude AI through the Model Context Protocol, enabling AI-assisted GIS operations. This integration allows Claude to directly interact with and control QGIS, providing capabilities for project creation, layer management, processing algorithm execution, and custom Python code execution within the GIS environment.
QGIS MCP enables Claude AI to interact directly with QGIS Desktop, a powerful open-source Geographic Information System (GIS) software. This integration allows you to perform GIS operations through natural language prompts, including creating projects, managing layers, executing processing algorithms, and running custom Python code.
Before installing QGIS MCP, ensure you have:
To install uv:
brew install uv
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Download the repository:
git clone https://github.com/jjsantos01/qgis_mcp.git
Install the QGIS plugin:
C:\Users\USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
~/Library/Application\ Support/QGIS/QGIS3/profiles/default/python/plugins
qgis_mcp_plugin
folder from the repository to your QGIS plugins folderPlugins
→ Installing and Managing Plugins
, select the All
tab, search for "QGIS MCP", and check the boxConfigure Claude Desktop:
Claude
→ Settings
→ Developer
→ Edit Config
→ claude_desktop_config.json
Start the QGIS MCP server:
Plugins
→ QGIS MCP
→ QGIS MCP
Use with Claude:
Here's an example prompt to get started:
You have access to the tools to work with QGIS. Please:
1. Create a new project and save it at: "/path/to/my_project.qgz"
2. Load the vector layer: "/path/to/boundaries.shp" and name it "Boundaries"
3. Load the raster layer: "/path/to/elevation.tif" and name it "Elevation"
4. Zoom to the "Boundaries" layer
5. Execute the centroid algorithm on the "Boundaries" layer and save the output
6. Create a choropleth map using the "Population" field in the "Boundaries" layer
7. Render the map to "/path/to/output_map.png"
8. Save the project
ping
toolexecute_code
tool with caution as it runs arbitrary Python code in QGIS