maptaste-mcp
Provides tools for checking MapLibre style JSON against taste heuristics, validating basic style structure, and locating a local map showcase, helping agents flag common style issues before visual review.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agents ship the same default MapLibre look everywhere.
Pick one named taste, check a MapLibre style against that school, and use its tokens. Not one shared palette.
npx maptaste check style.json --taste ink-paper
Tastes
Taste | School | What stays different with the colors removed |
| Print cartography | Flat plate, hairline roads, no casings, roman labels. |
| Dark operations | Extruded buildings, bold type, steep pitch, major roads, contrast ≥ 7 |
| Open-data choropleth | North-up plan, boundaries heavier than streets, admin labels |
| Magazine story map | Street network removed, one italic headline, ≤ 3 text layers, ≤ 2 line layers |
| Chinese city and transit | Thick routes, minor streets hidden, bold admin labels. |
| Hillshade | Relief frame, roads nearly gone, translucent fills, muted ground |
npx maptaste tastes
npx maptaste tokens --taste editorial
npx maptaste example --taste night-ops
npx maptaste apply --taste civictastes lists the catalog. tokens --taste prints that school's colors and the rules sentence the checker uses. example --taste prints a style that scores 100 under that taste. apply --taste writes <taste>.tokens.json and <taste>.style.json (default directory maptaste/). Each taste is a plate: which roads stay, roman or bold or one italic headline, flat or extruded, plus the color tokens. Swapping a color array onto the same street atlas is not the taste.
Related MCP server: art-director-mcp
Pack aliases
| Taste |
|
|
|
|
--pack still works. --taste and --pack together are an error when they name different schools. With neither flag, the check is ink-paper.
Check
npx maptaste check style.json --taste civic
npx maptaste check style.json --pack cn
npx maptaste check style.json --taste cn-metro --format jsonNode 20 or newer. The rules are heuristics. Render the map before trusting a score.
From a checkout:
pnpm install
pnpm build
node dist/cli.js check test/fixtures/bad-style.json --taste ink-paperThat fixture prints:
ERROR MT001 layers[1].paint.fill-color: Rainbow choropleth obscures ordering; use a restrained sequential or diverging scale.
evidence: 6 hue sectors from #ff0000 #ffff00 #00ff00 #00ffff #0000ff #ff00ff
WARN MT002 layers[2].paint: Low-contrast labels need a contrasting halo or stronger text color.
evidence: 1.92 < 4.5
…
INFO MT003 metadata: Missing dark-mode consideration; provide a dark background or declare theme variants in metadata.
WARN MT004 layers: ink-paper allows 8 text layers; this style has 10. Prioritize places by zoom and reduce large default text sizes.
WARN MT006 layers[1].paint.fill-color: ink-paper keeps fills quiet; a fill here is past saturation 0.55.
evidence: saturation 1 > 0.55
WARN MT007 layers[1].paint.fill-color: ink-paper uses a sequential scale; fill lightness should move in one direction.
evidence: lightness 0.213 0.928 0.715 0.787 0.072 0.285
Taste: ink-paper
Score: 50/100 — 1 errors, 13 warnings, 1 info
Coverage: Blocking taste errors: 1. Unresolved values: 0. Not a MapLibre style validation.The skipped lines are the same MT002 warning, each with evidence: 1.92 < 4.5, on layers[3] through layers[11]. evidence: is what the document contained. remedy: is one edit, and it is omitted when the message already is that edit. --format json puts the same fields on each finding, plus coverage.
Exit 0 when no finding is an error, 1 when any finding is an error, 2 when the file or the flags are invalid. Warnings and info are printed and leave the exit code at 0. Exit 0 means no blocking taste error. It does not mean the style was validated. --format json prints { findings, score, summary, taste, coverage }. coverage.statement is the same sentence as the Coverage: line. coverage.unresolved counts MT014. A finding keeps id, severity, message, and path. evidence is what the document contained. remedy is one edit, when there is a concrete one.
The score starts at 100. Each error subtracts 10, each warning 3, each info 1, with a floor of 0. A score of 100 means this subset raised no finding. The Coverage: line is the place to read that: unresolved values are outside the score, and the result is not a MapLibre style validation. The checker never sees features, a legend, or a framebuffer.
Supported colors are #rgb, #rgba, #rrggbb, #rrggbbaa, rgb(), rgba() with a 0–1 alpha, and the names white, black, red, orange, yellow, green, blue, purple, and cyan. Inside step, interpolate, interpolate-hcl, interpolate-lab, match, and case, only the outputs are colors. A match label is not a color, even when the label is the word red. Stops are the numbers written in the style. 0 is a real stop, and a negative stop is a real stop. hsl() and any branch the subset cannot read (get, feature-state, coalesce into data) are MT014: the score does not prove that property. Omitted fill-opacity is the MapLibre default 1, which is not the same as 0. Omitted background-color on a background layer is #000000, not white. A missing background layer is unproven ground, not white. fill-extrusion-color is read the same way as fill-color: outputs only, not the height expression. A layer whose visibility is the literal none is not painted. A visibility expression stays in scope.
import { check } from 'maptaste';
const result = check({ version: 8, layers: [] }, { taste: 'civic' });{ pack: 'global' } checks ink-paper. { pack: 'cn' } checks cn-metro.
Skills
npx skills add FelixFangX/maptaste --skill maptastemaptaste is the selector: it lists the six tastes and tells the agent to check with --taste. maptaste-global is the ink-paper alias (--pack global). maptaste-cn is the cn-metro alias (--pack cn).
npx skills add FelixFangX/maptaste --skill maptaste-global
npx skills add FelixFangX/maptaste --skill maptaste-cnOr copy skills/maptaste into the agent's skills directory and tell it to follow that skill.
Rules
Caps below are the taste's own numbers (npx maptaste tokens --taste <name>). MT001 is an error in every taste.
ID | Default | Name | Heuristic |
MT001 | error | rainbow-choropleth | Painted fill or fill-extrusion colors span at least four saturated hue sectors |
MT002 | warn | label-contrast | Static label contrast is below the taste minimum (4.5, or 7 for night-ops) |
MT003 | info | dark-mode | No dark background or theme declaration in metadata |
MT004 | warn | label-density | More text layers than the taste allows, or 3 or more numeric text sizes of 24 or higher |
MT005 | warn, error on night-ops | ground | Background luminance disagrees with the taste (paper, night, or muted) |
MT006 | warn | fill-saturation | A fill color is more saturated than the taste allows |
MT007 | warn | class-discipline | More distinct fill colors than the taste allows, or sequential lightness reverses |
MT008 | warn | label-hierarchy | Editorial only: more than one headline, or labels without a size step |
MT009 | warn | line-weight | A numeric line width is heavier than the taste's stroke cap |
MT010 | warn | fill-opacity | terrain-quiet only: a fill is too opaque for a hillshade to read |
MT011 | warn | line-chroma | Line colors span more hue sectors than the taste allows |
MT012 | warn | line-count | More line layers than the plate allows |
MT013 | warn | typeface | Declared |
MT014 | info | unresolved | A checked value is outside the subset above, or the style has no background layer. Not a pass |
MT015 | warn | scale-domain | Step or interpolate stops decrease or repeat, an interpolate has fewer than two stops, or a width, size, or opacity is outside the range MapLibre paints |
ink-paper allows 8 text layers and 6 line layers, set in roman. editorial allows 3 text layers, 2 line layers, and one italic headline. night-ops is bold. A style can pass one taste and fail another with the same colors, because the plate is different. Missing text-font is not a finding. A face that is set and wrong is.
Showcase
The first screen is the catalog: six tastes, each with a before ramp, that taste's after ramp, and a plate mark (stroke weight, label ranks). Choosing one opens the city study on that plate's camera. Before is the noisy rainbow atlas. After drops casings, minor streets, or the whole street network, changes the type, and — for night-ops — stands the buildings up. Terrain opens on the hillshade, not the towers. Classes, label size, label count, and stroke are knobs on the map. The score beside the map checks the style object currently set on that map. The style specimen below is a separate JSON. It is not drawn on the map, and its score does not describe the city.

Tiles, glyphs, and sprites come from OpenFreeMap with no API key. The page needs a network connection and WebGL. Attribution stays on the map.
Presets: San Francisco, Tokyo, 上海, 外滩, London, Paris. Other place names can be English, Chinese, or another local name. lang sets the caption language. Workers AI expands informal names, and names Nominatim misses or mismatches (2,000 per day, 40 per IP). Sessions are capped at 5,000 per day and 20 per IP.
Try check runs this same check against the selected taste, on the rainbow fixture, that taste's specimen, or style JSON you paste. Copy style copies the current city and camera as MapLibre style JSON.
cd showcase
pnpm install
pnpm devDeploy stays on Wrangler: pnpm deploy builds the showcase and runs wrangler deploy.
MCP
Published as maptaste@0.0.2.
npx -y maptaste mcpCursor or Claude Desktop:
{
"mcpServers": {
"maptaste": {
"command": "npx",
"args": ["-y", "maptaste", "mcp"]
}
}
}maptaste-mcp is the same server (npx -y --package maptaste maptaste-mcp). From a checkout: pnpm install && pnpm build, then node dist/cli.js mcp or node dist/mcp/server.js.
list_tastesreturns the catalog: id, school, tokens, composition, and the rules sentence.check_tastetakes{ "style": {} }or{ "styleJson": "..." }, plus optionaltasteandpack. The default taste isink-paper.validate_stylechecks for an object withversionand alayersarray.preview_placetakesplaceorll(lng,lat), and optionalzoom,mode(beforeorafter),theme(lightordark),taste, andlang. It returns ahttps://maptaste.ledring.dev/URL. A name is resolved in the browser, socenteris null until then.preview_infopoints at the local showcase:cd showcase && pnpm install && pnpm dev.
0.0.2. Thresholds can change in any 0.x release. Input is MapLibre style JSON. See CHANGELOG.md.
License
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Design intelligence for coding agents: audits, design systems, and a taste profile agents consult.
Design-style library for AI agents: find a style by use or mood, preview it, apply its spec.
On-demand drift checks: declared CSS color, radius, spacing & type vs your own tokens or a pack
Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI coding agents to inspect a project's design tokens and component catalog, audit React/Tailwind files against seven static UI quality rules, score overall UI health, and apply auto-fixes that are re-audited and reverted on regression. It works both locally over filesystem access and remotely on raw TSX/JSX or CSS snippets passed directly as strings.-
- AlicenseNot gradedqualityBmaintenanceProvides coding agents with local tools to inspect project UI inventories, propose and compare visual direction boards, compile versioned design contracts and DTCG tokens, retrieve section-specific blueprints, and audit running interfaces with browser evidence including screenshots, accessibility findings, and overflow measurements.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to validate, inspect, render, and compare MapLibre map styles locally, and to show interactive maps to users in supporting chat apps.11129 npm3MIT
- AlicenseNot gradedqualityBmaintenanceExposes a check tool (plus a list tool) that lets coding agents verify their own UI fixes against element-anchored assertions and before/after rendering diffs captured from the user's already-open Chrome, returning machine-judged verdicts and artifact paths instead of prose. Judgment runs without a model in the path, so agents can loop independently until their edits actually satisfy the annotation.2MIT