Qgis
by pacphi
>
Skill Details
Repository Files
4 files in this skill directory
name: qgis description: > Geospatial analysis and GIS operations via QGIS. Use for calculating distances, buffering zones, coordinate transforms (EPSG:4326 to EPSG:3857), layer operations, geoprocessing (intersect, union, clip), and exporting map images. Requires QGIS running on Display :1 with MCP plugin enabled. version: 2.0.0 author: turbo-flow-claude mcp_server: true protocol: fastmcp entry_point: mcp-server/server.py port: 9877 dependencies:
- qgis
QGIS Skill
Geospatial analysis and GIS operations via FastMCP protocol, communicating with QGIS instance via TCP socket.
When to Use This Skill
- Calculate distances between geographic points
- Create buffer zones around features (proximity analysis)
- Transform coordinates between CRS (GPS to Web Mercator)
- Load and manipulate geospatial layers (Shapefile, GeoJSON, GeoPackage)
- Perform geoprocessing operations (intersect, union, difference, clip)
- Export map images for reports or web display
- Query features with spatial filters
- Style layers with categorized or graduated symbology
Architecture
┌─────────────────────────────┐
│ Claude Code / VisionFlow │
│ (MCP Client) │
└──────────────┬──────────────┘
│ MCP Protocol (stdio)
▼
┌─────────────────────────────┐
│ QGIS MCP Server (FastMCP) │
│ Port: stdio │
└──────────────┬──────────────┘
│ TCP Socket
▼
┌─────────────────────────────┐
│ QGIS Desktop (Display :1) │
│ MCP Plugin on Port 9877 │
└─────────────────────────────┘
Tools
| Tool | Description |
|---|---|
load_layer |
Load geospatial layer (Shapefile, GeoJSON, GeoPackage, WMS) |
buffer_analysis |
Create buffer zones around features |
calculate_distance |
Calculate distance between two points |
transform_coordinates |
Transform between coordinate systems |
export_map |
Export map view as PNG, JPG, or PDF |
query_features |
Query layer features with filter expression |
list_layers |
List all loaded layers |
set_layer_style |
Apply styling (simple, categorized, graduated) |
geoprocessing |
Intersect, union, difference, dissolve, clip |
get_layer_extent |
Get bounding box of a layer |
health_check |
Verify QGIS connection |
Examples
# Load a GeoJSON layer
load_layer({
"path": "/data/cities.geojson",
"name": "Cities"
})
# Create 10km buffer around points
buffer_analysis({
"layer_name": "Cities",
"distance": 10000, # meters
"output_name": "city_buffers"
})
# Transform GPS coordinates to Web Mercator
transform_coordinates({
"coordinates": [-122.4194, 37.7749], # San Francisco
"source_crs": "EPSG:4326",
"target_crs": "EPSG:3857"
})
# Export map image
export_map({
"output_path": "/output/map.png",
"width": 1920,
"height": 1080,
"dpi": 150
})
Environment Variables
| Variable | Default | Description |
|---|---|---|
QGIS_HOST |
localhost |
QGIS MCP plugin host |
QGIS_PORT |
9877 |
QGIS MCP plugin port |
QGIS_TIMEOUT |
60 |
Socket timeout in seconds |
Troubleshooting
Connection refused:
# Check QGIS is running on Display :1
supervisorctl status qgis
# Verify MCP plugin is loaded
# In QGIS: Plugins → Manage Plugins → Search "MCP"
VisionFlow Integration
This skill exposes qgis://capabilities and qgis://status resources for discovery by VisionFlow's MCP TCP client.
Related Skills
Attack Tree Construction
Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.
Grafana Dashboards
Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.
Matplotlib
Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.
Scientific Visualization
Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.
Seaborn
Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.
Shap
Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Query Writing
For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Scientific Visualization
Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.
