Overview
QGISMCP connects QGIS to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control QGIS. It comprises two components: a QGIS plugin that runs a socket server inside QGIS to receive and execute commands, and a Python MCP server that implements the MCP and communicates with the plugin. This two-way channel enables Claude to create, load, and save projects; add or remove vector and raster layers; retrieve layer and project information; run Processing Toolbox algorithms; render the map to an image; and execute arbitrary Python (PyQGIS) code from Claude. The MCP commands described include ping, load_project, add_vector_layer, execute_processing, get_layers, and execute_code, with an example workflow showing project creation, layer loading, processing, and rendering. For desktop use, Claude's claude_desktop_config.json is configured to point to the MCP server; the configuration runs via uv as the socket server, enabling seamless integration.
Features
Two-way communication
Connect Claude AI to QGIS through a socket-based server.
Project manipulation
Create, load and save projects in QGIS.
Layer manipulation
Add and remove vector or raster layers to a project.
Execute processing
Execute processing algorithms (Processing Toolbox).
Code execution
Run arbitrary Python code in QGIS from Claude. Very powerful, but also be very cautious using this tool.
Who Is This For?
- GIS professionals:Using Claude AI to manage QGIS projects, layers, and processing via MCP.




