Qgis Mcp

data-ai MCP Server

Connect QGIS to AI agent through the Model Context Protocol (MCP)

VerifiedInstall ReadyReviewed
data-aidata-ai
17 views299 stars76 forksGPL-2.0

Why This Matters

Discovered via github-seeds:mcp-new and last synced 1w ago.

VerifiedInstall ReadyReviewed
Source
github-seeds:mcp-new
Stars
299
Last synced
1w ago
Install
Instructions detected

Install

1. Install the package

uvx --from https://github.com/nkarasiak/qgis-mcp/archive/refs/heads/main.zip qgis-mcp-server

2. Add to claude_desktop_config.json

{
  "mcpServers": {
    "qgis-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "https://github.com/nkarasiak/qgis-mcp/archive/refs/heads/main.zip",
        "qgis-mcp-server"
      ]
    }
  }
}

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)

28
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (28)

Default

Description

QGIS_MCP_LOG_FILE

`~/.local/share/qgis-mcp/server.log`

QGIS_MCP_LOG_LEVEL

`INFO`

Category

Tools

QGIS_MCP_TRANSPORT

`stdio`

Flag

Stored in

QGIS_MCP_TOOL_MODE

`granular`

QGIS_MCP_PORT

`9876`

QGIS_MCP_HOST

`localhost`

create_new_project

Create a new project and save it

get_layer_features

Retrieve features from a vector layer with an optional limit

add_raster_layer

Add a raster layer to the project

render_map

Render the current map view to an image file

ping

Simple ping command to check server connectivity

get_layers

Retrieve all layers in the current project

execute_code

Execute arbitrary PyQGIS code provided as a string

get_qgis_info

Get QGIS information about the current installation

remove_layer

Remove a layer from the project by its ID

load_project

Load a QGIS project from the specified path

zoom_to_layer

Zoom to the extent of a specified layer

get_project_info

Get current project information

add_vector_layer

Add a vector layer to the project

execute_processing

Execute a processing algorithm with the given parameters

save_project

Save the current project to the given path

Component

Remote install

QGIS_MCP_INSTANCES

_(unset)_

QGIS_MCP_TOKEN

_(unset)_

QGIS_MCP_AUTO_CONFIRM

on