Martin (maintained by the MapLibre open-source organization under the MIT / Apache-2.0 dual open-source license) is an ultra-fast, lightweight vector tile server written in Rust. Built for GIS developers, spatial database engineers, and web mapping platforms, Martin connects directly to PostgreSQL/PostGIS databases, PMTiles archives, and MBTiles files to serve live Mapbox Vector Tiles (MVT), sprites, fonts, and TileJSON endpoints with minimal memory footprint and zero manual layer configuration.
1. In-Depth Review: Why Web GIS & PostGIS Developers Use Martin
- Zero-Config Dynamic PostGIS Vector Tiles: Automatically discovers spatial tables, views, and PostGIS SQL functions (`ST_AsMVT`) on startup and exposes them immediately as live vector tile endpoints—so edits made in QGIS or SQL appear on your web map in real time.
- Unified Server for PostGIS, PMTiles & MBTiles: Serves live database layers alongside static PMTiles and MBTiles archives, style sprites, and glyph fonts from a single compact Rust binary or Docker container.
- High Concurrency & Low Memory Footprint: Built on Rust and Actix Web with built-in connection pooling and tile caching, handling thousands of concurrent MapLibre GL JS, OpenLayers, or Deck.gl tile requests efficiently.

2. Key Features & Capabilities
- Automatic PostGIS Table & Function Discovery: Introspects PostgreSQL schemas to publish geometry columns and custom parameterized PostGIS functions as MVT endpoints automatically.
- Native PMTiles & MBTiles Hosting: Serves cloud-optimized PMTiles and local SQLite MBTiles archives alongside live database tiles.
- Built-In Sprite & Font Glyph Generation: Generates MapLibre-compatible sprite sheets from SVG directories and serves PBF font glyphs out of the box.
- TileJSON 3.0 & Catalog API: Exposes `/catalog` and per-source `.json` TileJSON metadata endpoints for instant plug-and-play loading in MapLibre GL JS and QGIS.
- Cross-Platform Single Binary & Docker Images: Deploys easily via official Docker images, Homebrew, Cargo, or pre-compiled binaries on Linux, macOS, and Windows.
- 100% Free & Open-Source (MIT / Apache-2.0): Free to self-host in personal, government, and commercial GIS architectures.
- Official Links: Free Trial, Free / Education & Pricing
Always download Martin binaries, Docker tags, and documentation directly from official MapLibre portals:
- Official Martin Documentation & Quickstart: https://maplibre.org/martin/
- Official Martin GitHub Repository (MapLibre): https://github.com/maplibre/martin
- Official Martin Releases & Pre-Compiled Binaries: https://github.com/maplibre/martin/releases
- Official Martin Docker Deployment Guide: https://maplibre.org/martin/run-with-docker.html
4. Step-by-Step Installation Guide
- Check Operating System & Database Requirements: Confirm you have a Linux, macOS, or Windows (64-bit) machine with Docker installed (or download the pre-compiled release binary) and access to a PostgreSQL + PostGIS database or `.pmtiles`/`.mbtiles` files.
- Download Binary or Pull the Official Docker Image: Visit https://github.com/maplibre/martin/releases to download the binary for your OS, or pull the official container image (`ghcr.io/maplibre/martin`).
- Configure Database Connection or Tile Paths: Provide your `DATABASE_URL` environment variable (such as `postgres://user:password@localhost:5432/gisdb`) and/or file paths to `.pmtiles` and `.mbtiles` archives.
- Start the Martin Server & Verify `/catalog`: Run `martin` (default port `3000`) and open `http://localhost:3000/catalog` in your browser to confirm all discovered PostGIS tables and tile sources are listed.
5. How to Use Martin Tile Server: Beginner Workflow
- Prepare Spatial Layers in PostGIS (or PMTiles/MBTiles): Ensure your PostgreSQL table has a valid geometry column (`SRID` defined, e.g., `EPSG:4326` or `EPSG:3857`) and a spatial `GIST` index for fast bounding-box queries.
- Launch Martin Pointing to PostGIS: Start Martin with `DATABASE_URL=postgres://postgres:secret@localhost:5432/mydb martin` so it auto-detects your spatial tables and functions.
- Inspect TileJSON Metadata: Open `http://localhost:3000/<table_name>` in a browser to view the auto-generated TileJSON endpoint, bounds, zoom range, and attribute fields.
- Add the Vector Tile Source to MapLibre GL JS or OpenLayers: Reference the TileJSON URL (`http://localhost:3000/<table_name>`) as a `vector` source in your web map and style polygons, lines, or points.
- Add Caching or Reverse Proxy for Production: Place Nginx or Caddy in front of Martin for HTTPS/CORS headers and enable built-in tile caching for high-traffic production web maps.
6. Frequently Asked Questions (FAQ)
- Is Martin completely free for commercial GIS systems?Yes. Martin is an official open-source project under the MapLibre organization, dual-licensed under MIT and Apache-2.0 licenses at zero cost.
- Do I need to pre-generate tiles before using Martin with PostGIS?No. Martin queries PostGIS dynamically on each tile request using `ST_AsMVT`, meaning any land-plot or infrastructure updates saved to PostGIS are reflected immediately on the map without re-tiling.
- Can Martin serve PMTiles and MBTiles without a PostgreSQL database?Yes. You can run Martin standalone pointing solely to local `.pmtiles` or `.mbtiles` files without connecting to PostgreSQL.