qgis_mcp

qgis_mcp

3.7

If you are the rightful owner of qgis_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

QGISMCP connects QGIS to Claude AI through the Model Context Protocol, enabling direct interaction and control over QGIS.

QGISMCP is an integration that connects QGIS, a popular open-source geographic information system, with Claude AI using the Model Context Protocol (MCP). This integration allows for seamless interaction between the two platforms, enabling users to perform various GIS tasks through AI-driven commands. The integration is inspired by the BlenderMCP project and facilitates project creation, layer manipulation, and code execution within QGIS. By establishing a socket-based server, QGISMCP allows Claude AI to send commands directly to QGIS, enhancing the capabilities of both tools. This setup is particularly useful for automating GIS workflows, executing complex processing algorithms, and managing GIS data efficiently.

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 using the Processing Toolbox.
  • Code execution: Run arbitrary Python code in QGIS from Claude.

Tools

  1. ping

    Check server connection

  2. get_qgis_info

    Get the current QGIS installation information

  3. load_project

    Loading QGIS project from the specified path

  4. create_new_project

    Create a new project and save it

  5. get_project_info

    Get current project information

  6. add_vector_layer

    Add vector layer to project

  7. add_raster_layer

    Add raster layer to project

  8. get_layers

    Retrieve all layers in the current project

  9. remove_layer

    Remove layer by ID

  10. zoom_to_layer

    Scale to the range of the specified layer

  11. get_layer_features

    Search features from vector layers

  12. execute_processing

    Execute a processing algorithm with a given parameter

  13. save_project

    Save the current project to the specified path

  14. render_map

    Render the current map view as an image file

  15. execute_code

    Execute the provided PyQGIS code string