QGIS MCP Server Integration

Connect QGIS Desktop with LLMs for powerful, AI-assisted geospatial workflows—automate projects, layers, algorithms, and Python scripting through FlowHunt’s MCP component.

QGIS MCP Server Integration

What does “QGIS” MCP Server do?

The QGIS MCP Server is a Model Context Protocol (MCP) implementation that bridges QGIS Desktop with large language models (LLMs), such as Claude. By leveraging a socket-based server and the QGIS MCP plugin, it enables AI assistants to directly control and interact with QGIS projects. This allows AI-driven automation of tasks like project creation, layer manipulation, algorithm execution via the Processing Toolbox, and even direct Python code execution within QGIS. The server is designed to streamline geospatial workflows, facilitate advanced data processing, and enhance developer productivity by enabling seamless, prompt-assisted management of QGIS from an LLM client.

List of Prompts

No explicit prompt templates are mentioned in the repository.

List of Resources

No explicit MCP resources are described in the repository.

List of Tools

  • Project Manipulation: Allows creating, loading, and saving QGIS projects via LLM commands.
  • Layer Manipulation: Enables adding or removing vector and raster layers in a QGIS project.
  • Execute Processing: Runs QGIS processing algorithms (from the Processing Toolbox) through an LLM interface.
  • Code Execution: Executes arbitrary Python code within the QGIS environment via LLM requests. (Highly powerful, use with caution.)

Use Cases of this MCP Server

  • Automated Project Creation: Developers and data scientists can use LLMs to automate the setup of new QGIS projects, ensuring consistent structure and configuration.
  • Geospatial Data Layer Management: LLMs can programmatically add, remove, or update vector and raster layers, streamlining data ingestion and visualization workflows.
  • Batch Processing via Algorithms: AI assistants can trigger complex QGIS Processing Toolbox algorithms on large datasets, saving time and reducing manual intervention.
  • Remote Code Execution: Users can send Python scripts to be executed within QGIS, facilitating custom analysis, data transformation, or plugin development.
  • AI-Assisted Geospatial Analysis: By exposing QGIS functions to LLMs, advanced spatial queries and map operations can be conducted conversationally or through AI agents.

How to set it up

Windsurf

No setup instructions found for Windsurf.

Claude

  1. Prerequisites: Ensure QGIS 3.X (tested on 3.22), Python 3.10+, and the uv package manager are installed.
  2. Download the Repository:
    git clone git@github.com:jjsantos01/qgis_mcp.git
    
  3. Install QGIS Plugin:
    • Copy the qgis_mcp_plugin folder to your QGIS profile plugins folder (see README.md for platform-specific locations).
    • Restart QGIS and enable the “QGIS MCP” plugin.
  4. Edit Claude Configuration:
    • Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json.
    • Add the following under mcpServers:
      {
        "mcpServers": {
          "qgis": {
            "command": "uv",
            "args": [
              "--directory",
              "/ABSOLUTE/PATH/TO/PARENT/REPO/FOLDER/qgis_mcp/src/qgis_mcp",
              "run",
              "qgis_mcp_server.py"
            ]
          }
        }
      }
      
  5. Save and Restart Claude to apply the configuration.

Securing API Keys

No API or environment variable usage for keys is described in the repo.

Cursor

No setup instructions found for Cursor.

Cline

No setup instructions found for Cline.

How to use this MCP inside flows

Using MCP in FlowHunt

To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

FlowHunt MCP flow

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:

{
  "qgis": {
    "transport": "streamable_http",
    "url": "https://yourmcpserver.example/pathtothemcp/url"
  }
}

Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “qgis” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.


Overview

SectionAvailabilityDetails/Notes
OverviewClear description of QGIS MCP Server in README.md
List of PromptsNo prompt templates mentioned
List of ResourcesNo explicit MCP resources found
List of ToolsDescribed in README.md (project/layer manipulation, processing, code execution)
Securing API KeysNo API key/environment variable info
Sampling Support (less important in evaluation)Not mentioned

Between the two tables, the QGIS MCP Server is well-documented in terms of core features and tool exposure, but lacks explicit prompt/resource listings and does not cover API key security or sampling/roots support. I’d rate it a 6/10 for MCP completeness and developer readiness.


MCP Score

Has a LICENSE⛔ (not found)
Has at least one tool
Number of Forks68
Number of Stars540

Frequently asked questions

What is the QGIS MCP Server?

The QGIS MCP Server is a bridge between QGIS Desktop and large language models (LLMs), allowing AI agents to automate and control QGIS projects, layers, algorithms, and even execute Python code from conversational interfaces.

What can AI agents do with QGIS via this server?

AI agents can create, load, and save projects; add or remove vector/raster layers; execute QGIS processing algorithms; and run Python scripts directly within QGIS.

Is it safe to enable code execution?

Code execution is powerful but should be used with caution to avoid running untrusted or harmful scripts in the QGIS environment.

How do I connect my QGIS MCP Server to FlowHunt?

Add the MCP component in your FlowHunt flow and configure it with your QGIS MCP Server details. Use the JSON format provided in the documentation to specify the server's URL and transport method.

Does the QGIS MCP Server require API keys or special environment variables?

No API keys or environment variables are required based on the available documentation.

What are the main use cases?

Automated project setup, geospatial data layer management, batch processing of algorithms, AI-driven spatial analysis, and custom Python scripting within QGIS via LLM requests.

Supercharge QGIS with FlowHunt

Automate your geospatial workflows and empower AI agents to control QGIS Desktop via the QGIS MCP Server. Try it with FlowHunt’s platform today.

Learn more