leaflet-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_mapA | Generate complete Leaflet map initialization code with HTML, CSS, and JavaScript. Includes tile layer setup and basic configuration. |
| add_markerB | Generate code for adding markers to a Leaflet map with optional popups, tooltips, and custom icons. |
| create_layerB | Generate code for creating various Leaflet layers: polylines, polygons, circles, rectangles, and other vector layers. |
| add_popupC | Generate code for creating and customizing Leaflet popups with various options and content. |
| create_geojson_layerA | Generate code for loading and displaying GeoJSON data on a Leaflet map with custom styling and interactions. |
| create_choroplethB | Generate code for creating an interactive choropleth (data visualization) map with color scales and legends. |
| convert_coordinatesA | Convert between different coordinate formats (decimal degrees, DMS, various notations) and validate coordinates. |
| suggest_pluginA | Get recommendations for Leaflet plugins based on desired functionality or use case. |
| search_examplesA | Search through official Leaflet examples and documentation for specific functionality or patterns. |
| debug_common_issuesB | Get help debugging common Leaflet issues like map not displaying, tiles not loading, or marker icons missing. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Leaflet API Reference | Complete Leaflet API documentation with all classes, methods, and options |
| Leaflet Quick Start Guide | Getting started with Leaflet - basic setup and initialization |
| All Leaflet Examples | Collection of all official Leaflet examples and tutorials |
| Leaflet Plugins Directory | Curated list of popular Leaflet plugins by category |
TDQS
Scored across 10 tools
Each tool targets a distinct aspect of Leaflet map creation: adding markers, popups, layers, choropleth, GeoJSON, map initialization, coordinate conversion, debugging, and documentation search. No two tools have overlapping purposes.
All tool names follow a consistent verb_noun snake_case pattern (add_, convert_, create_, debug_, search_, suggest_), making it easy to predict functionality.
10 tools is well-scoped for a Leaflet code generation server. It covers core map creation, various layer types, data visualization, coordinate conversion, debugging, and plugin search without being overwhelming.
The tool set covers common map operations, but missing tools for custom tile layers, map interaction events (click, zoom), and layer removal. However, the core CRUD and lifecycle for map objects are present.