Atlas / MCP servers / jjsantos01 / QGIS Model Context Protocol

QGIS Model Context ProtocolBLOCK

mcp/jjsantos01/qgis-model-context-protocol

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

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
15 8r · 6w · 1d
Transport
—
License
—
Stars
1,106
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

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:

gi
Read from source at commit cecb6c147968OBSERVED · 2026-09-26
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add qgis-mcp -- uvx qgis-mcp
claude-desktop
{
  "mcpServers": {
    "qgis-mcp": {
      "command": "uvx",
      "args": [
        "qgis-mcp"
      ]
    }
  }
}
03

Exposed tools (15)

8 read · 6 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
add_raster_layerwriteAdd a raster layer to the project.
add_vector_layerwriteAdd a vector layer to the project.
create_new_projectwriteCreate a new project a save it
execute_codewriteExecute arbitrary PyQGIS code provided as a string.
execute_processingwriteExecute a processing algorithm with the given parameters.
get_layer_featuresreadRetrieve features from a vector layer with an optional limit.
get_layersreadRetrieve all layers in the current project.
get_project_inforeadGet current project information
get_qgis_inforeadGet QGIS information
load_projectreadLoad a QGIS project from the specified path.
pingreadSimple ping command to check server connectivity
remove_layerdestructiveRemove a layer from the project by its ID.
render_mapreadRender the current map view to an image file with the specified dimensions.
save_projectwriteSave the current project to the given path, or to the current project path if not specified.
zoom_to_layerreadZoom to the extent of a specified layer.
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (2 observation(s))
Shell
declared (1 observation(s))
Dependencies
pinned
Secrets in source
none-found

Findings (3)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
qgis_mcp_plugin/qgis_mcp_plugin.py:251
exec(code, namespace)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
remove_layer
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.no_license · CWE-1104
Why it matters. no LICENSE file and no repo licence
Fix. add a licence

Gates applied: no_behavioural_pass, no_license.

Audited 2026-09-26 · audit v0.4.1 · source sha cecb6c147968full audit observations/trust-audit/mcp-server/jjsantos01__qgis-model-context-protocol.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-26cecb6c147968BLOCKD69first audit
06

Questions

What is the QGIS Model Context Protocol MCP server?

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

What tools does QGIS Model Context Protocol expose?

15 in total: 8 read-only, 6 that write, and 1 that can delete or overwrite (remove_layer). Every one is listed on this page with its risk.

Is QGIS Model Context Protocol safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does QGIS Model Context Protocol need?

No credential environment variables were found in its source, so it appears to need none.

How current is this page?

The grade is for one exact copy of the source (cecb6c147968), read on 2026-09-26. The repository is watched and re-audited when it changes.

Advertisement