QGIS MCP Server
Enables AI agents to interact with QGIS, supporting project management, layer inspection, spatial queries, styling, and map export in both headless and desktop modes.
README
QGIS MCP Server
An MCP (Model Context Protocol) server that exposes QGIS capabilities to AI agents. Supports both headless mode (stdio) and live QGIS desktop integration (SSE).
Features
- 23 tools covering project management, layer inspection, spatial queries, styling, and map export
- Headless mode — standalone process using
qgis_process-style QGIS session - Desktop mode — live connection to a running QGIS instance via SSE/HTTP
- Zero-friction setup — uses system QGIS Python bindings, no extra dependencies
Tools
| Category | Tools |
|---|---|
| Project | get_project_info, load_project, save_project |
| Layers | list_layers, get_layer_info, get_layer_features, add_layer, export_layer |
| Selection | select_features, extract_selected, count_features |
| Attributes | get_layer_statistics, get_unique_values, run_expression |
| Styling | set_graduated_renderer, set_layer_labels |
| Layout | create_layout, export_layout, list_layouts, get_layout_info |
| Render | render_map |
| Processing | list_algorithms, run_processing |
| CRS | get_crs_info, set_layer_crs, reproject_layer, set_project_crs |
Quick Start
# Install
pip install -e .
# Run headless
qgis-mcp
# Or use with opencode — add to .config/opencode/opencode.jsonc:
{
"mcp": {
"qgis": {
"type": "local",
"command": ["qgis-mcp"]
}
}
}
Desktop Plugin
Install the QGIS plugin from src/qgis_mcp_plugin/ to connect to a live QGIS session:
ln -s $(pwd)/src/qgis_mcp_plugin ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/
Then enable qgis_mcp_plugin in QGIS's Plugin Manager and add to your opencode config:
{
"mcp": {
"qgis-desktop": {
"type": "remote",
"url": "http://127.0.0.1:9876/sse"
}
}
}
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.