QGISMCP
by jjsantos01
QGISMCP connects QGIS to Claude AI through the Model Context Protocol (MCP), enabling Claude to directly interact with and control QGIS. This integration allows for prompt-assisted project creation, layer loading, and code execution.
Last updated: N/A
What is QGISMCP?
QGISMCP is a tool that integrates QGIS with Claude AI through the Model Context Protocol (MCP). It consists of a QGIS plugin and a Python server that allows Claude to control QGIS functionalities.
How to use QGISMCP?
To use QGISMCP, you need to install the QGIS plugin by copying the plugin folder to the QGIS profile plugins directory. Then, configure Claude AI to connect to the QGIS MCP server by adding the server configuration to the claude_desktop_config.json
file. Finally, start the server from the QGIS plugin and use the available tools in Claude to interact with QGIS.
Key features of QGISMCP
Two-way communication between Claude AI and QGIS
Project manipulation (create, load, save)
Layer manipulation (add, remove vector and raster layers)
Execution of processing algorithms
Arbitrary Python code execution in QGIS from Claude
Use cases of QGISMCP
Automated GIS project creation and management
Prompt-assisted spatial analysis
Integration of AI with GIS workflows
Remote control of QGIS through Claude AI
FAQ from QGISMCP
What are the prerequisites for using QGISMCP?
What are the prerequisites for using QGISMCP?
QGIS 3.X, Cloud desktop, Python 3.10 or newer, and uv package manager.
How do I install the QGIS plugin?
How do I install the QGIS plugin?
Copy the qgis_mcp_plugin
folder to your QGIS profile's Python/plugins
directory and activate it in the QGIS plugin manager.
How do I configure Claude to connect to QGISMCP?
How do I configure Claude to connect to QGISMCP?
Edit the claude_desktop_config.json
file to include the QGIS MCP server configuration with the correct path to the qgis_mcp_server.py
script.
What tools are available in Claude for interacting with QGIS?
What tools are available in Claude for interacting with QGIS?
Tools include ping, get_qgis_info, load_project, create_new_project, get_project_info, add_vector_layer, add_raster_layer, get_layers, remove_layer, zoom_to_layer, get_layer_features, execute_processing, save_project, render_map, and execute_code.
Can I execute arbitrary Python code in QGIS from Claude?
Can I execute arbitrary Python code in QGIS from Claude?
Yes, the execute_code
tool allows you to run PyQGIS code, but be cautious as it is a powerful tool.