leaflet-mcp-server

philgebauer/leaflet-mcp-server

3.2

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

A Model Context Protocol (MCP) server that provides comprehensive documentation, code generation, and interactive tools for Leaflet.js - the leading open-source JavaScript library for mobile-friendly interactive maps.

Tools

Functions exposed to the LLM to take actions

create_map

Generate complete Leaflet map initialization code with HTML boilerplate.

add_marker

Generate code for adding markers with popups, tooltips, and custom icons.

create_layer

Generate code for creating vector layers (polylines, polygons, circles, rectangles).

add_popup

Generate code for creating and customizing popups.

create_geojson_layer

Generate code for loading and displaying GeoJSON data with custom styling.

create_choropleth

Generate code for creating interactive choropleth maps.

convert_coordinates

Convert between different coordinate formats and validate coordinates.

suggest_plugin

Get recommendations for Leaflet plugins based on functionality or category.

search_examples

Search through official Leaflet examples for specific functionality.

debug_common_issues

Get help debugging common Leaflet problems.

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources