# maplibre-mcp [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/birkskyum/maplibre-mcp  
**GitHub Stars:** 3  
**npm Downloads (last month):** 498  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/maplibre-mcp

## Description
An MCP server that lets AI agents check, render and show MapLibre styles

## Tools
Capabilities this server exposes over MCP:

- **validate_style**
- **describe_style_spec**
- **describe_gl_js_api**
- **describe_sources**
- **inspect_tile**
- **debug_layers**
- **render_style**
- **preview_style**
- **render_page**
- **compare_styles**
- **compare_renderers**
- **show_map**
- **martin_list_sources**
- **search_ecosystem**
- **find_basemaps**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "maplibre-mcp": {
    "command": "npx",
    "args": ["-y","maplibre-mcp"],
    "env": {
      "MAPLIBRE_MCP_TOOLSETS": ""
    }
  }
}
```

**Requires environment variables:** `MAPLIBRE_MCP_TOOLSETS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What maplibre-mcp MCP server does

The maplibre-mcp MCP server exposes MapLibre-focused tools for working with styles, sources, tiles, renderers, and related ecosystem resources. It accepts a style as an object, URL, or file path relative to the server process. Agents can validate a style against the MapLibre Style Specification, format or migrate it, and inspect the specification for layer types, properties, source types, and expressions.

It also provides visual and diagnostic workflows. A style can be rendered to PNG at a selected camera position, compared with another style, or compared across renderers. A live preview can follow a style file as it changes, and a map can be shown with GeoJSON layers and markers on an OpenFreeMap basemap when the client supports MCP Apps.

## How it works

The server runs locally through Node.js and communicates with an MCP client over stdio by default. It can also serve Streamable HTTP on a configurable host and port. MapLibre GL JS rendering uses the Google Chrome installation on the machine. If Chrome is unavailable, the initial render reports the installation command for Chromium; container use is available for environments where a browser cannot be installed.

Diagnostic tools inspect the underlying data instead of only examining style JSON. Source inspection reads TileJSON, PMTiles headers, or GeoJSON. Tile inspection reports source layers, geometry types, field values, sample features, zoom information, and absent source layers. Layer debugging evaluates whether each layer draws at a location and zoom, including filters, source-layer mismatches, transparent paint, missing polygons, absent icons, and font fallback.

## Setup and configuration

Install Node.js 22 or newer, then add the server to an MCP client with `npx -y maplibre-mcp`. A typical stdio configuration uses the `maplibre` server name, `npx` as the command, and `-y maplibre-mcp` as its arguments. Claude Code, Codex, Gemini CLI, and VS Code have documented command-line registration examples; Claude Desktop, Cursor, Windsurf, and other clients can use the equivalent JSON configuration.

Tool groups can be selected with `--toolsets` or `MAPLIBRE_MCP_TOOLSETS`. Available groups include `style`, `gl-js`, `native`, `martin`, and `ecosystem`; `all` enables every group. Rendering with MapLibre Native requires an additional package, and Martin rendering requires a Martin build with rendering support. The HTTP mode uses `/mcp` and defaults to port 3100.

## Tools and capabilities

Key capabilities include:

- Validate, format, migrate, and compare MapLibre styles.
- Render PNG images with center, zoom, bearing, pitch, bounds, or 3D camera settings.
- Preview a changing style in a live interactive map.
- Inspect tiles, source metadata, fields, geometry, and available source layers.
- Diagnose layer filters, paint output, sprites, glyphs, and source-layer problems.
- Look up MapLibre GL JS APIs and style specification entries, including supported versions and examples.
- List Martin resources and search the Make with MapLibre catalog for basemaps, libraries, hosted APIs, and related services.

The maplibre-mcp MCP server also exposes command-line equivalents for rendering, comparison, source inspection, tile inspection, layer debugging, and GL JS API lookup.

## Limitations and notes

Rendering requires a browser for the GL JS path, and native or Martin rendering has separate prerequisites. `show_map` depends on client support for MCP Apps. Basemap results from the ecosystem catalog include provider attribution or logo requirements, and those requirements must be respected. Ecosystem search and basemap data carry attribution to Birk Skyum under CC BY 4.0.

Remote HTTP mode, browser installation, and container execution should be evaluated separately for the security and operational constraints of the target environment.

_Full upstream README: https://allmcps.com/mcp/maplibre-mcp/readme_

