Skip to content

TileServer GL

Map tile server for vector and raster maps, serving web, mobile and GIS clients

Permissive (OSI) · BSD-2-Clause
  • Self-hosted

Listed by , founder & editor

63

Health

Active

Overview

Stars

2,924

Last commit

23 days ago

Oct 2026

Repository age

10 years

since Feb 2016

Latest version

v5.7.0

Oct 2026

Contributors

–

6 active in 90 days

Releases

3

last 12 months

Docker pulls

7.1M

maptiler/tileserver-gl

Language

JavaScript

TileServer GL serves map tiles from your own machine. It reads vector tiles, such as MBTiles files from OpenMapTiles, and serves them with GL styles. It can also render raster tiles on the server using MapLibre GL Native.

Clients include MapLibre GL JS, Android, iOS, Leaflet and OpenLayers. GIS software can connect through WMTS. You install it with npm (Node.js 20 or newer, Node 24 recommended) or run the maptiler/tileserver-gl Docker image and mount a folder with your data and configuration.

A lighter variant, tileserver-gl-light, is pure JavaScript with no native dependencies. It runs anywhere but does not do server-side raster rendering. The project is BSD-2-Clause licensed, has been developed since 2016, and its Docker image has over 7 million pulls.

If you set no public URL, response links are built from request headers, so set one when exposing the server. It suits teams replacing hosted map tile services with their own tile hosting.

Who it's for

Developers shipping web or mobile maps

It serves vector and raster tiles to MapLibre, Leaflet, OpenLayers, Android and iOS from one server.

Skip if: You want a hosted tile API with no server to run.

GIS staff who need tiles in desktop tools

WMTS support lets GIS clients consume your tiles directly.

Skip if: You need to author or edit map data, since this only serves tiles.

Teams hosting maps offline or on private networks

You can serve MBTiles files from local disk without calling an external service.

Skip if: You lack the capacity to produce or store your own tile data.

The problem it solves

Hosted map tile services bill by usage and send your users' requests to a third party. TileServer GL lets you serve your own tiles and styles from a server you control.

Strengths

  • Serves vector tiles and renders raster tiles server-side with MapLibre GL Native
  • Works with MapLibre GL JS, Leaflet, OpenLayers, Android, iOS and WMTS clients
  • Official Docker images, including a light image without native dependencies
  • Permissive BSD-2-Clause license and development since 2016

Trade-offs

  • You must source and update your own tile data
  • Raster rendering needs native dependencies, or xvfb on headless Linux
  • The light variant has no server-side raster rendering
  • Set a public URL to avoid Host header poisoning

Self-host TileServer GL

Self-hostable
Yes
Docker image
maptiler/tileserver-gl

Quick start

wget https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/zurich_switzerland.mbtiles
docker run --rm -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-gl:latest --file zurich_switzerland.mbtiles

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free and open source?

Yes. It is released under the BSD-2-Clause license.

Can I self-host it?

Yes. Install it with npm or run the maptiler/tileserver-gl Docker image.

Where do I get tile data?

Vector tiles can be downloaded from OpenMapTiles. You can also supply your own MBTiles file.

Which clients can use it?

MapLibre GL JS, Android, iOS, Leaflet, OpenLayers and GIS tools through WMTS.

Similar tools in Maps and navigation

Organic Maps

Maps and navigation

Offline maps and navigation app for hikers, cyclists and drivers, built on OpenStreetMap

16k 1.7k today Thriving Apache-2.0

Replaces Google Maps

OpenRouteService

Maps and navigation

Self-hosted routing engine for directions, isochrones and matrices on OpenStreetMap data

2k 497 4 days ago Thriving GPL-3.0

OpenStreetMap

Maps and navigation

Ruby on Rails app behind the OpenStreetMap site and editing API, for running your own

2.9k 1.1k today Active GPL-2.0

Replaces Google Maps

TREK

Maps and navigation

Self-hosted collaborative travel planner with maps, bookings, budgets and packing lists

16k 1.4k today Thriving AGPL-3.0

Vela

Maps and navigation

Android maps app on open data for degoogled phones, with no Google account needed

2.8k 157 today Active GPL-3.0

Replaces Google Maps