Back to Browse

Deeppvmapper MCP Server

Developer ToolsUse Caution4.2MCP RegistryLocalRemote
Free

Server data from the Official MCP Registry

Open registry of 1.14M+ rooftop-solar detections across France, queryable by natural language.

About

Open registry of 1.14M+ rooftop-solar detections across France, queryable by natural language.

Remote endpoints: streamable-http: https://zelhliylrlktnasircwp.supabase.co/functions/v1/mcp/mcp

Security Report

4.2
Use Caution4.2High Risk

The codebase is a legitimate scientific research project (DeepPVMapper) with an associated MCP server for querying solar panel detection results. The MCP server itself exposes a read-only public API with no authentication requirements, which is appropriate for a public dataset. Python pipeline code is well-structured with proper error handling and no malicious patterns detected. Minor concerns around input validation in coordinate conversion functions and broad exception handling do not materially impact security. Supply chain analysis found 14 known vulnerabilities in dependencies (4 critical, 3 high severity).

5 files analyzed ยท 20 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

process_spawn

Check that this permission is expected for this type of plugin.

system_info

Check that this permission is expected for this type of plugin.

How to Install & Connect

Available as Local & Remote

This plugin can run on your machine or connect to a hosted endpoint. during install.

Documentation

View on GitHub

From the project's GitHub README.

DeepPVMapper

License: MIT HF Models HF Dataset HF Space DOI

Large-scale rooftop PV detection pipeline for France. Classifies IGN aerial tiles with InceptionV3, segments positive patches with FCN/DeepLab, and extracts panel characteristics (surface, tilt, azimuth, installed capacity) via pypvroof.

๐Ÿ—บ๏ธ Explore the map and results โ†’
๐ŸŽฎ Try the interactive demo โ†’

Work carried out by Gabriel Kasmi as part of his PhD at Mines Paris-PSL (2020โ€“2024).

DeepPVMapper โ€” detected rooftop PV installations


MCP Server

DeepPVMapper's detection registry is also exposed as a public MCP (Model Context Protocol) server over Streamable HTTP, so any MCP-compatible client (Claude, etc.) can query the 1.14M+ rooftop-solar detections directly via natural language: search detections, aggregate installed capacity by department, explore an area, track yearly deployment, and check data-quality signals.

No install required โ€” add the endpoint as a custom connector in any MCP client.


Mapping data

Pre-computed detection results for French departments are available on Zenodo:

DOI


Installation

GDAL must be installed system-wide first, then via pip to match the running Python version:

# Ubuntu/Debian
apt-get install -y gdal-bin libgdal-dev libopenjp2-7

pip install "GDAL==$(gdal-config --version)"
pip install -r requirements.txt

GPU required. CUDA 11.8+, 8 GB VRAM minimum.


Data and model weights

Download model weights and runtime data from Zenodo:

DOI

Model weights are also available on Hugging Face:

HF Models

The training dataset (BDAPPV):

HF Dataset

Fill in the source paths in config.yml before running:

config keywhat goes there
source_images_dirIGN JP2 tiles + dalles.shp index shapefile
source_topo_dirBDTOPO folder (BATIMENT.shp, ZONE_D_ACTIVITE_OU_D_INTERET.shp)
source_commune_dirfolder containing communes-20210101.shp
model_dirfolder containing model_bdappv_cls.pth and model_bdappv_seg.pth

Usage

python main.py --dpt 06

--count sets tiles per classification batch (default 16 โ€” reduce if OOM):

python main.py --dpt 06 --count 8

--config points to an alternative config file (useful for RunPod deployments):

python main.py --dpt 06 --config /workspace/config_runpod.yml

To process a subset of tiles (local testing), set tiles_list in config.yml:

tiles_list:
  - 01-2024-0850-6565-LA93-0M20-E080
  - 01-2024-0850-6570-LA93-0M20-E080

Force a full rerun (wipe prior progress):

python main.py --dpt 06 --clean

Pipeline

Four steps run sequentially inside main.py:

stepwhat happens
InitBuilds per-department auxiliary files (buildings, plants, communes) into temp/. Skipped if already present โ€” safe to rerun after a crash.
ClassificationTiles loaded fully in memory. InceptionV3 classifies 299ร—299 patches; positives saved as GeoTIFFs to temp/segmentation/.
SegmentationFCN/DeepLab segments each positive patch. LAMB93 polygons extracted, sorted by tile, merged into pseudo-arrays.
Aggregationpypvroof extracts tilt/azimuth/kWp per polygon. Building filter applied. Results written to outputs_dir.

On success: temp/ is deleted automatically.
On crash: temp/ is kept. Rerun the same command to resume from where it stopped.


Outputs

Written to outputs_dir (default: data/):

filedescription
arrays_{dpt}.geojsonDetected PV polygons in WGS84
characteristics_{dpt}.csvPer-installation registry: surface (mยฒ), tilt (ยฐ), azimuth (ยฐ), kWp, city code, lat, lon
aggregated_characteristics_{dpt}.csvCity-level aggregation: count, total kWp, avg surface, avg kWp
arrays_characteristics_{dpt}.geojsonPolygons enriched with all characteristics

Only residential-scale installations (1.7โ€“36.1 kWp) located on buildings are retained.


Configuration reference

parameterdefaultdescription
temp_dirtempWorking directory. Deleted on success, kept on crash.
outputs_dirdataFinal outputs directory.
cls_threshold0.4Classification confidence threshold
cls_batch_size512Patches per GPU batch (classification)
decode_workers3Concurrent JP2 decode processes feeding the GPU โ€” tune to your real CPU quota, not host core count
decode_stagger_s35Gap between initial decode submissions, to avoid lockstep bursty waits โ€” rule of thumb: decode_time / decode_workers
seg_threshold0.46Segmentation binarization threshold
seg_batch_size64Images per GPU batch (segmentation)
filter_buildingTrueDiscard detections not on a building
tilt_methodlutpypvroof tilt method (lut or constant)
azimuth_methodbounding-boxpypvroof azimuth method
ic_methodclusteredpypvroof installed-capacity regression type
tiles_list(empty)Optional tile subset for partial runs

Contributing

Contributions are welcome โ€” both code (performance, new imagery sources, models, building filters) and registry corrections via the interactive map, no coding required.

See CONTRIBUTING.md for the contribution areas, setup instructions and workflow. Issues labelled good first issue are the best entry points.


Known issues

GDAL is fragile to install, for two distinct reasons โ€” and the fix below handles both.

  1. The pip GDAL binding must match the system libgdal version exactly. pip install GDAL fails to build, or segfaults at import, if its version differs from the system library.
  2. On images that ship a pre-installed python3-gdal apt package (common on RunPod/cloud GPU images), that package bundles its own osgeo/, which takes priority over the pip-installed one in sys.path โ€” and its .so is often broken, regardless of what pip installs.

Run this in place of a plain pip install, e.g. right when deploying the pipeline, around the pip install -r requirements.txt step:

#!/usr/bin/env bash
set -e

# --- native GDAL lib (gdal-config must exist before pip can build the python binding) ---
apt-get update
apt-get install -y --no-install-recommends gdal-bin libgdal-dev

# --- purge python3-gdal if present: this apt package ships its own osgeo/,
#     which takes priority over the pip-installed one in sys.path, and its
#     .so is often broken ---
dpkg -l | grep -q python3-gdal && apt-get remove --purge -y python3-gdal || true
rm -rf /usr/lib/python3/dist-packages/osgeo

# --- python deps ---
pip install -r requirements.txt

# --- repin the pip GDAL binding to exactly match the native lib version
#     (requirements.txt only pins GDAL>=3.0, so pip can grab a newer
#     version than the one apt just installed -> ABI mismatch at import) ---
GDAL_VERSION=$(gdal-config --version)
pip install --no-cache-dir --force-reinstall "GDAL==${GDAL_VERSION}"

# --- check ---
python -c "
import torch
from osgeo import gdal
print('torch', torch.__version__, '| cuda', torch.cuda.is_available())
print('gdal', gdal.__version__, '| GTiff driver:', gdal.GetDriverByName('GTiff') is not None)
"

Citation

@phdthesis{kasmi2024enhancing,
  title={Enhancing the Reliability of Deep Learning Models to Improve the Observability of French Rooftop Photovoltaic Installations},
  author={Kasmi, Gabriel},
  year={2024},
  school={Universit{\'e} Paris sciences et lettres}
}

License

MIT

Reviews

No reviews yet

Be the first to review this server!