What are the prerequisites for using QGISMCP?
QGIS 3.x, Claude Desktop, Python 3.10 or newer, and the `uv` package manager are required.
@jjsantos01
Basic information
Model Context Protocol (MCP) that allows LLMs to use QGIS Desktop
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"qgis": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/REPO/FOLDER/qgis_mcp/src/qgis_mcp",
"run",
"qgis_mcp_server.py"
]
}
}
}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
QGISMCP connects QGIS to Claude AI through the Model Context Protocol (MCP), enabling direct AI-driven project creation, layer management, processing algorithm execution, and custom Python code execution within QGIS.
Install the QGIS plugin by copying the qgis_mcp_plugin folder into your QGIS profile plugins directory and enabling it via the Plugins manager. Configure Claude Desktop by adding the provided JSON block to claude_desktop_config.json, pointing to the qgis_mcp_server.py file. Start the server in QGIS from Plugins > QGIS MCP > QGIS MCP and click "Start Server". Claude will then have access to a set of tools to interact with QGIS.
QGIS 3.x, Claude Desktop, Python 3.10 or newer, and the `uv` package manager are required.
Download the repository, copy the `qgis_mcp_plugin` folder into your QGIS profile’s `Python/plugins` directory, then enable it in QGIS via `Plugins > Installing and Managing Plugins`.
Edit `claude_desktop_config.json` to include a new MCP server entry with `command: "uv"`, and provide the absolute path to the directory containing `qgis_mcp_server.py` in the `args`.
Fourteen tools are available, including `ping`,

Model Context Protocol Servers
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

A free remote MCP server for The Living Bread. Bible passages read word for word from a stored public domain text with an evidence label, keyword search and cross references, real churches, gatherings and prayer groups w

Health by Dr Brad works out a health plan from your own results: which screening is due at your age, and evidence-based suggestions, each with the reason and the published guideline or study behind it. Your record is one

Yuppsy MCP: build and publish real estate websites from your AI assistant. Yuppsy lets your AI assistant create live websites for real estate agents and individual property listings. You don't need a designer or any code
Comments