qgis_mcp
QGISMCP is an integration project based on the Model Context Protocol (MCP), used to connect QGIS Desktop with Claude AI, enabling Claude to directly control and operate QGIS through natural language prompts. The project is built on BlenderMCP and uses sockets for two-way communication. Its main capabilities include: creating, loading, and saving QGIS projects; adding or removing vector/raster layers; executing processing algorithms from the Processing Toolbox; and running arbitrary Python code from Claude. The system consists of two parts: a QGIS plugin that establishes a socket server within QGIS, and a Python server that implements MCP and connects to the plugin. Before use, you need to install QGIS 3.X (only tested on 3.22), Python 3.10+, and the uv package manager, and follow the instructions to copy the plugin to the QGIS plugin directory, enable the plugin, and configure Claude Desktop's claude_desktop_config.json. After installation and startup, you can see the hammer icon and the tool list in Claude (such as ping, load_project, add_vector_layer, execute_processing, execute_code, etc.). Note: the ability to execute arbitrary Python code is very powerful and must be used with caution.