Maplibre MCP logo

Maplibre MCP

Inspect, validate, render, compare, and preview MapLibre styles and map data through MCP tools.

Install Maplibre MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "maplibre-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "maplibre-mcp"
      ],
      "env": {
        "MAPLIBRE_MCP_TOOLSETS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y maplibre-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The maplibre-mcp MCP server lets AI agents inspect, validate, render, compare, and display MapLibre maps and styles. It can read styles from objects, URLs, or local files, inspect source metadata and vector tiles, diagnose why layers do not draw, and look up MapLibre specifications and APIs. Rendering uses MapLibre GL JS with locally installed Chrome, while container images support browser-based use in sandboxes and CI. Reach for it when an agent needs visual feedback on a style or evidence from the actual map data rather than relying on source code alone.

Use cases

  • Validate a MapLibre style against its specification
  • Render a style while editing its visual design
  • Debug layers that fail to draw at a location
  • Inspect vector tile contents and source fields
  • Compare styles or rendering backends

Key features

  • MapLibre style validation and migration
  • PNG rendering and live style previews
  • Vector tile and source inspection
  • Layer rendering diagnostics
  • MapLibre GL JS API and specification lookup
  • Basemap and ecosystem discovery

Tools15

What Maplibre MCP lets your agent do. Expand a tool for its parameters.

Self-reported~54 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 62d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · maplibre-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads498Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed15Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Maplibre MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Maplibre MCP

maplibre-mcp is an MCP server that connects AI agents to MapLibre styles, sources, tiles, and renderers. Its main tools validate and inspect styles, debug layers, render and compare maps, preview changes, look up MapLibre APIs, and find basemaps or ecosystem resources.

Install Node.js 22 or newer, then configure an MCP client to run `npx -y maplibre-mcp`. Claude Code, Codex, Gemini CLI, and VS Code provide command-line registration examples; other clients can use the equivalent stdio JSON configuration.

Yes, Cursor can use the server through the standard MCP JSON configuration. Add a server named `maplibre` with `npx` as the command and `-y maplibre-mcp` as its arguments.

Call `render_style` with a style object, URL, or file path and provide camera settings such as center and zoom, or use bounds or a 3D camera position. The GL JS renderer writes a PNG and reports map errors, missing fonts, and missing icons.

Yes, `debug_layers` checks whether each layer draws at a specified place and zoom. It can identify missing source layers, filters that match no data, empty geometry, transparent paint, missing sprites, and font fallback.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMaplibre MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/maplibre-mcp?style=directory)](https://allmcps.com/mcp/maplibre-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/maplibre-mcp"><img src="https://allmcps.com/api/badge/maplibre-mcp?style=directory" alt="Maplibre MCP on AllMCPs" /></a>