← Open Source
jjsantos01

qgis_mcp

Model Context Protocol (MCP) that allows LLMs to use QGIS Desktop.

AI EngineeringGive agent toolsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.12k
Stars
189
Forks
+8
This week
4
Contributors
Created 2025-03-12 · Updated 2026-10-13 · #11495 today
Top developers
jjsantos01zacdezgeoandreimirt

jjsantos01/qgis_mcp is ranked 11,495 with 1,124 stars.

Same-category comparison

jjsantos01/qgis_mcp is ranked 11,495 among these 8 peers; VikParuchuri/texify is ranked 11,494.

Same-category comparison
NameRankMetrics
alan-ai/alan-sdk-cordova11,471
Language:
Ruby
Stars:
1,132
Forks:
6
MinorJerry/WebVoyager11,486
Language:
Python
Stars:
1,127
Forks:
125
Description:
Code for "WebVoyager: WebVoyager: Building an End-to-End Web Agent with Large Multimodal Models".
ErosZy/sablejs11,492
Language:
JavaScript
Stars:
1,124
Forks:
52
Description:
Run user plugins, rules, formulas, and AI-generated JavaScript safely in browsers.
VikParuchuri/texify11,494
Language:
Python
Stars:
1,124
Forks:
92
Description:
Math OCR model that outputs LaTeX and markdown.
mohi-devhub/antivibe11,503
Language:
Shell
Stars:
1,122
Forks:
82
Description:
Learn what AI writes, not just accept it. A Claude Code skill that turns AI-generated code into educational deep dives.
vamplabAI/sgr-agent-core11,504
Language:
Python
Stars:
1,122
Forks:
181
Description:
Schema-Guided Reasoning (SGR) has agentic system design created by neuraldeep community.
axflow/axflow11,506
Language:
TypeScript
Stars:
1,121
Forks:
41
Description:
The TypeScript framework for AI development.
prompt-security/clawsec11,508
Language:
JavaScript
Stars:
1,121
Forks:
111
Description:
A complete security skill suite for OpenClaw, Hermes, PicoClaw and NanoClaw agents (and variants). Protect your SOUL.md (etc') with drift detection, live security recommendations, automated audits, and skill integrity verification. All from one installable suite.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryAI Engineering
SubcategoryGive agent tools
KeywordsMCP
Stars1,124
Forks189
Contributors4
Created date2025-03-12
Updated date2026-10-13
Stars in 1 day0
Stars in 7 days8
Rank11,495
Previous rank11,441
Rank change-54
7-day stars rank4,513
Previous 7-day stars rank4,484
7-day stars rank change-29
Total stars rank10,194
Previous total stars rank10,176
Total stars rank change-18
CountryMexico
README summary

QGISMCP - QGIS Model Context Protocol Integration QGISMCP connects QGIS to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control QGIS. This integration enables prompt assisted project creation, layer loading, code execution and more. This project is strongly based on the BlenderMCP project by Siddharth Ahuja 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. Components The system consists of two main components: 1. **QGIS plugin**: A QGIS plugin that creates a socket server within QGIS to receive and execute commands. **MCP Server**: A Python server that implements the Model Context Protocol and connects to the QGIS plugin. 10 or newer

uv package manager: If you're on Mac, please install uv as On Windows Powershell Otherwise installation instructions are on their website: Install uv **⚠️ Do not proceed before installing UV** Download code Download this repo to your computer. You can clone it with: QGIS plugin You need to copy the folder qgis_mcp_plugin and its content on your QGIS profile plugins folder. You can get your profile folder in QGIS going to menu -> -> Then, go to and paste the folder

. On a Windows machine the plugins folder is usually located at: and on MacOS: Then close QGIS and open it again. Go to the menu option > , select the tab and search for "QGIS MCP", then mark the QGIS MCP checkbox. Claude for Desktop Integration Go to > > > > to include the following: If you can't find the "Developers tab" or the look at this documentation. Click "Start Server" Using with Claude Once the config file has been set on Claude, and the

server is running on QGIS, you will see a hammer icon with tools for the QGIS MCP. Tools - 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 Example Commands This is the example I used for the demo:

Frequently asked questions

How many stars and forks are recorded?

jjsantos01/qgis_mcp has 1,124 stars and 189 forks.

What is the repository rank?

jjsantos01/qgis_mcp is ranked 11,495.

What language and category are recorded?

jjsantos01/qgis_mcp has 1,124 stars, uses Python and belongs to AI Engineering.

Which repository is closest in rank?

jjsantos01/qgis_mcp is compared with VikParuchuri/texify, ranked 11,494 with 1,124 stars.

README

QGISMCP - QGIS Model Context Protocol Integration

QGISMCP connects QGIS to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control QGIS. This integration enables prompt assisted project creation, layer loading, code execution and more.

This project is strongly based on the BlenderMCP project by Siddharth Ahuja

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.

Components

The system consists of two main components:

  1. QGIS plugin: A QGIS plugin that creates a socket server within QGIS to receive and execute commands.
  2. MCP Server: A Python server that implements the Model Context Protocol and connects to the QGIS plugin.

Installation

Prerequisites

  • QGIS 3.X (only tested on 3.22)
  • Claude desktop
  • Python 3.10 or newer
  • uv package manager:

If you're on Mac, please install uv as

brew install uv

On Windows Powershell

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Otherwise installation instructions are on their website: Install uv

⚠️ Do not proceed before installing UV

Download code

Download this repo to your computer. You can clone it with:

git clone git@github.com:jjsantos01/qgis_mcp.git

QGIS plugin

You need to copy the folder qgis_mcp_plugin and its content on your QGIS profile plugins folder.

You can get your profile folder in QGIS going to menu Settings -> User profiles -> Open active profile folder Then, go to Python/plugins and paste the folder qgis_mcp_plugin.

On a Windows machine the plugins folder is usually located at: C:\Users\USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins

and on MacOS: ~/Library/Application\ Support/QGIS/QGIS3/profiles/default/python/plugins

Then close QGIS and open it again. Go to the menu option Plugins > Installing and Managing Plugins, select the All tab and search for "QGIS MCP", then mark the QGIS MCP checkbox.

Claude for Desktop Integration

Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:

If you can't find the "Developers tab" or the claude_desktop_config.json look at this documentation.

{
    "mcpServers": {
        "qgis": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/PARENT/REPO/FOLDER/qgis_mcp/src/qgis_mcp",
                "run",
                "qgis_mcp_server.py"
            ]
        }

    }
}

Usage

Starting the Connection

  1. In QGIS, go to plugins > QGIS MCP > QGIS MCP
  2. Click "Start Server"

Using with Claude

Once the config file has been set on Claude, and the server is running on QGIS, you will see a hammer icon with tools for the QGIS MCP.

Tools

  • ping - Simple ping command to check server connectivity
  • get_qgis_info - Get QGIS information about the current installation
  • load_project - Load a QGIS project from the specified path
  • create_new_project - Create a new project and save it
  • get_project_info - Get current project information
  • add_vector_layer - Add a vector layer to the project
  • add_raster_layer - Add a raster layer to the project
  • get_layers - Retrieve all layers in the current project
  • remove_layer - Remove a layer from the project by its ID
  • zoom_to_layer - Zoom to the extent of a specified layer
  • get_layer_features - Retrieve features from a vector layer with an optional limit
  • execute_processing - Execute a processing algorithm with the given parameters
  • save_project - Save the current project to the given path
  • render_map - Render the current map view to an image file
  • execute_code - Execute arbitrary PyQGIS code provided as a string

Example Commands

This is the example I used for the demo:

You have access to the tools to work with QGIS. You will do the following:
	1. Ping to check the connection. If it works, continue with the following steps.
	2. Create a new project and save it at: "C:/Users/USER/GitHub/qgis_mcp/data/cdmx.qgz"
	3. Load the vector layer: ""C:/Users/USER/GitHub/qgis_mcp/data/cdmx/mgpc_2019.shp" and name it "Colonias".
	4. Load the raster layer: "C:/Users/USER/GitHub/qgis_mcp/data/09014.tif" and name it "BJ"
	5. Zoom to the "BJ" layer.
	6. Execute the centroid algorithm on the "Colonias" layer. Skip the geometry check. Save the output to "colonias_centroids.geojson".
	7. Execute code to create a choropleth map using the "POB2010" field in the "Colonias" layer. Use the quantile classification method with 5 classes and the Spectral color ramp.
	8. Render the map to "C:/Users/USER/GitHub/qgis_mcp/data/cdmx.png"
	9. Save the project.
Nearby in the ranking
Similar items