Skip to main content
Glama
Magic Lane MCP DevKit Server

Magic Lane MCP DevKit Server

Official
by magiclane

Magic Lane MCP DevKit Server

Introduction

The Magic Lane MCP DevKit Server is a Model Context Protocol (MCP) server for developers who build apps with the Magic Lane SDK and APIs: it lets their AI assistant (Claude, Grok Build, VS Code, Android Studio or any other MCP client) manage the resources of their own Magic Lane developer account.

An account holds three kinds of resources, and the server has a toolset for each: Studio map styles, portal projects with their API keys, and offline maps. Credentials are set in the server configuration, never in the chat.

Magic Lane Studio styles: assistant can look at the account's map styles, change them and check them before they are saved:

  • list_styles - list the account's styles, newest first.

  • list_templates - list the shared templates a new style can start from.

  • get_style - read a style or template, with its JSON and version.

  • download_style - download a style as JSON or as the .style file the SDK loads.

  • create_style - create a style from a template, a document or a file.

  • update_style - save new content; refused if the style changed in Studio meanwhile.

  • edit_style_details - change name, description, tags and purposes.

  • validate_style - check a style against the style schema, offline.

  • get_style_reference - read the style format documentation.

Projects and API keys: assistant can set up the projects an app belongs to and the API keys it ships with:

  • list_projects / get_project - list projects, or read one with its settings.

  • create_project / update_project - create a project, or change its settings.

  • list_api_keys / get_api_key - list a project's keys, or read one; masked unless asked.

  • create_api_key / rename_api_key - create a key (optionally saved to a file), or rename one.

Offline maps: assistant can find and fetch the map data an app uses without a network connection:

  • list_offline_map_versions - list the map versions an SDK can read.

  • list_offline_maps - browse the maps of a version, by continent, country or text.

  • download_offline_map - download a map file, resumable and checksum-verified (local server only).

Transport Options: the server supports both stdio (for MCP-native clients like Claude Desktop) and Streamable HTTP (for web applications and custom integrations).

Magic Lane MCP DevKit Server Demo

Related MCP server: Vibe Coder MCP Server

Getting Started

Prerequisites

  1. Node.js 22.12+ installed (Download here)

  2. npm (comes with Node.js)

  3. A Magic Lane secret key (mlsk_...) for the styles, projects and API key tools (see API Key Setup). A server that offers only the offline maps tools runs without it.

  4. For the offline maps tools only: an application's API token and its secret for the Offline Maps API. To get them, contact Magic Lane through Contact us. They are separate from the secret key, which is used for the portal only.

  5. An MCP-compatible AI client, such as:

Verify Prerequisites:

# Check Node.js version (should be 22.12 or newer)
node --version

# Check npm version
npm --version

API Key Setup

The server needs different credentials for each toolset:

Toolsets

Credentials

Where to get them

styles, projects

Secret key: MAGICLANE_SECRET_KEY

The developer portal

offline_maps

API token and its secret: MAGICLANE_OFFLINE_MAPS_API_KEY, MAGICLANE_OFFLINE_MAPS_SECRET

Magic Lane, on request

Secret key (styles, projects and API keys). To create a secret key, follow our step-by-step guide. The detailed steps are:

  1. Create a free account at developer.magiclane.com/api/register.

  2. Sign in and open the Projects dashboard.

  3. Under CLI & Access, create a secret key. It starts with mlsk_.

  4. Give it the levels for the tools you use: Studio for the style tools, Projects and API keys for the project tools. Read is enough to list and read; Read & write is needed to create and change.

API token and secret (offline maps). The Offline Maps API needs an application's API token and its secret. To get them, Contact Magic Lane. Without them the server runs without the offline maps tools.

Quick Start

For immediate testing, use npx to run the server without installation:

# Set your keys as environment variable
# Secret key for style and project tools
export MAGICLANE_SECRET_KEY="your_secret_key"

# Offline maps tools: the application's API token and its secret
export MAGICLANE_OFFLINE_MAPS_API_KEY="your_token"
export MAGICLANE_OFFLINE_MAPS_SECRET="your_secret"

# Run the server directly
npx -y -p @magiclane/mcp-devkit-server magiclane-devkit-mcp

Installation

In Claude Desktop, as an extension: download magiclane-mcp-devkit-<version>.mcpb from the latest release, drag it into Settings → Extensions and fill in the keys it asks for. The Claude Desktop Setup Guide describes its settings.

From npm:

npx -y -p @magiclane/mcp-devkit-server magiclane-devkit-mcp

From source:

# Clone or navigate to the Magic Lane Devkit MCP Server directory
cd path/to/magiclane-mcp-devkit-server

# Install dependencies
npm install

# Build the TypeScript project
npm run build

# Verify the build was successful
ls dist/  # Should show devkit-server.esm.js and devkit-server-http.esm.js

The package has two commands. magiclane-devkit-mcp is the local (stdio) server that an MCP client starts by itself. magiclane-devkit-mcp-http is the Streamable HTTP server, which you start and clients connect to:

# Set the keys in your shell first, as in Quick Start
npx -y -p @magiclane/mcp-devkit-server magiclane-devkit-mcp-http
# The server listens on http://127.0.0.1:3000/mcp

For complete HTTP server documentation including endpoints, access keys, limits and client integration, see the HTTP Server Setup Guide.

Environment Variables

Variable

Required

Default

Purpose

MAGICLANE_SECRET_KEY

for styles and projects

-

Secret key (mlsk_...) for the developer portal.

MAGICLANE_OFFLINE_MAPS_API_KEY

for offline maps

-

An application's API token for the Offline Maps API.

MAGICLANE_OFFLINE_MAPS_SECRET

for offline maps

-

That application's secret. Set it together with MAGICLANE_OFFLINE_MAPS_API_KEY.

MAGICLANE_TOOLSETS

no

all

Tool groups to offer: styles, projects, offline_maps.

MAGICLANE_FILES_DIR

no

-

The only folder the file tools may use. Unset: any path.

HTTP_TIMEOUT_SECONDS

no

30

Timeout for one outgoing request, in seconds; at most 50 is used.

VERBOSE

no

false

Print info and debug logs to stderr.

Keys are read from the environment only, never from a tool call. When an MCP client starts the server, set the variables in the client's configuration: the server never reads a .env file. For local development, copy .env.example to .env; the npm scripts and the tests read it. A key that does not look like a Magic Lane key, or has a space or a line break in it, stops the server at startup.

A relative path in a tool call is taken from MAGICLANE_FILES_DIR, which the Claude Desktop extension sets to your Documents folder unless you choose another. Without it, a relative path is taken from the folder the client started the server in, so name the whole path.

A MAGICLANE_TOOLSETS of only commas or spaces counts as unset, and so means the default. An HTTP_TIMEOUT_SECONDS above 50 is not refused: 50 is used, so that a tool call still answers in time, and the startup log (with VERBOSE=true) shows the value in use.

Configuration

Configure your MCP client to start the Magic Lane MCP DevKit Server. Follow the setup guide for your client:

Each guide includes where the client keeps its configuration, the server entry to add and how to check that the tools are available.

Docker

No image is published for this release: build the DevKit image from this repository, then run the server in a container:

# Build the Docker image
docker build -t magiclane-mcp-devkit .

# Run the stdio server (-i keeps stdin open for the MCP client). -e NAME with no value takes
# the value from your shell: set the variable there first. A value written on the command
# line can be read by other users of the computer while the container runs.
docker run -i --rm -e MAGICLANE_SECRET_KEY magiclane-mcp-devkit

# Add the offline maps tools: pass the application's API token and its secret too
docker run -i --rm \
  -e MAGICLANE_SECRET_KEY \
  -e MAGICLANE_OFFLINE_MAPS_API_KEY \
  -e MAGICLANE_OFFLINE_MAPS_SECRET \
  magiclane-mcp-devkit

# Offline maps only: no secret key needed
docker run -i --rm \
  -e MAGICLANE_TOOLSETS=offline_maps \
  -e MAGICLANE_OFFLINE_MAPS_API_KEY \
  -e MAGICLANE_OFFLINE_MAPS_SECRET \
  magiclane-mcp-devkit

# Or pass the variables from an env file
docker run -i --rm --env-file .env magiclane-mcp-devkit

# Keep the files the tools save (style files, API key files, offline maps): mount a folder
# and make it the one folder the file tools use. Create the folder first, so that it is yours.
mkdir -p devkit-files
docker run -i --rm \
  -e MAGICLANE_SECRET_KEY \
  -e MAGICLANE_FILES_DIR=/data \
  -v "$PWD/devkit-files:/data" \
  magiclane-mcp-devkit

Without a mounted folder, a tool cannot save to a relative path: the container's working folder, /app, belongs to root, so the save is refused. A file saved to an absolute path elsewhere in the container, such as under /tmp or /home/node, is gone when the container is removed (--rm). With the mount above, a relative path in a tool call lands in devkit-files on your computer, and the tools can use no other folder. The server runs as the unprivileged node user (uid 1000), which must be able to write to the folder: on Linux, a folder that Docker creates by itself belongs to root.

Available Tools

The tools are grouped by category. Each category below starts with a summary table. Under it, a collapsed section holds one entry per tool with its parameters and example prompts; click it to open.

Every tool also declares an output schema and returns its result as structured content next to the JSON text. How failures are reported is the same for all of them; see Common Error Messages.

IMPORTANT

Text in tool results can be written by other people: style, template, project and API key names, descriptions and tags, and the reference pages. Such a text can be made to look like an instruction.

  • The server tells the model to treat it as data, and removes control, bidirectional and invisible characters from it.

  • A style's own JSON is passed on unchanged, so the server tells the model that everything inside a style is data too.

  • Keep your client asking before it runs a write tool (the tools marked readOnlyHint: false), above all create_api_key with revealToken, update_project and the style writes. Then no such text can make a change or send a key out unseen.

Magic Lane Studio styles

  • Toolset: styles (9 tools, plus the style resources)

  • API: Styles Access API, on the developer portal

  • Credentials: MAGICLANE_SECRET_KEY. Studio: Read is enough for the read tools; create_style, update_style and edit_style_details need Studio: Read & write, and answer insufficient_scope without it.

  • Not possible here: publishing, reverting and deleting styles are done in Studio.

Tool

What it does

Changes the style

list_styles

Lists your styles, newest first

no

list_templates

Lists the shared templates a new style can start from

no

get_style

Reads one style or template, with its JSON and version

no

download_style

Downloads a style as JSON or as the .style file the SDK loads

no

create_style

Creates a style from a template, a document or a file

yes

update_style

Replaces the whole content of a style

yes

edit_style_details

Changes name, description, tags and purposes

yes

validate_style

Checks a style document against the style schema, offline

no

get_style_reference

Reads the style format documentation

no

The usual way to change a style:

  1. get_style to read the JSON and note its version.

  2. Edit the JSON, then validate_style to check it.

  3. update_style with that version as baseVersion.

Versions protect your work. Every style has a version that changes on each save, here or in Studio. The write tools require it as baseVersion. If the style was saved in the meantime, the write is refused with a conflict, nothing changes, and the tool returns the current version so the agent can read again.

Working with files (local server only). A style is 170–190 KB of JSON. Instead of passing it through the conversation, the agent can keep it in a file:

  1. get_style with includeData: false notes the style's version.

  2. download_style with a path writes the style to a file.

  3. The agent edits only the lines it needs.

  4. validate_style with that path checks it.

  5. update_style with that path and the version from step 1 as baseVersion saves it.

Read the version before the download, not after the edit: if the style is saved in Studio after step 1, step 5 is refused with a conflict, so that save is not overwritten. A version read after the edit would already include it.

  • Prefer absolute paths; a relative one is taken from the folder MAGICLANE_FILES_DIR names when it is set, otherwise from the server's working directory.

  • A path whose first folder is ~ or ~user (~/styles/night.json, ~\styles\…, ~root/…), or that is ~ alone, is refused on every system: the server does not read ~ as a home folder. Give an absolute path, or one relative to the MAGICLANE_FILES_DIR folder (or the working directory). A file name that only starts with ~ (~backup.json) is fine, and a folder really named ~ is reached as ./~/….

  • With MAGICLANE_FILES_DIR set, a path that leaves that folder, by .. or through a link, is refused, and so is a path through a link to something that is not there, for reads and writes. Just before a write is accepted (for download_offline_map, after the catalog has been read), where it leads is checked once more, so a link that now leads out of the folder is refused. A link that another program changes after that check is not guarded against.

  • A network path (on Windows, \\server\share\night.json) is refused without being opened. The one exception is a path inside MAGICLANE_FILES_DIR when you set that folder to a network share yourself, such as a Documents folder kept on a file server.

  • No answer about a file carries its content: broken JSON is reported by line and column only.

  • A style file (validate_style, and create_style or update_style with a path) is read through one open file, and reading stops just past 40 MiB, the most a style can have, whatever size the system reports for the file (0 for the files under /proc on Linux). A pipe or a device is refused without being read.

  • download_style writes style files only: the path must end in .json or .style, and may not be a file other programs run commands from, such as package.json, tasks.json, Jupyter's kernel.json or cdk.json, nor the info file of a map download (<map>.part.json). It also refuses any folder or file that starts with a dot, such as .vscode or .mcp.json, and any name that holds a character that shows as nothing: inside the folder MAGICLANE_FILES_DIR names when it is set, otherwise inside the folder the server was started in, and anywhere in a path that leads elsewhere. Nor does it write into the folders where programs keep their settings without a dot: ~/Library on macOS, %APPDATA%, %LOCALAPPDATA% and %PROGRAMDATA% on Windows, and the XDG config, data and state folders when they are set. A MAGICLANE_FILES_DIR inside one of them is allowed, and so is the temporary folder.

  • The HTTP server has no path on any tool, because there a path would name a file on the server. download_style returns the download in the result instead.

list_styles

Lists your styles, newest first. Returns summaries only (id, name, description, resolution, tags, purposes, updated, published, version), never the style JSON.

Parameter

Type

Required

Default

Description

resolution

"high_res" | "low_res"

no

-

Only styles with this resolution.

nameContains

string

no

-

Only styles whose name contains this text (any case).

limit

integer 1–500

no

50

Most styles returned.

Example prompts:

  • "List my Studio styles."

  • "Do I have a style with 'night' in its name?"

  • "Which of my styles have never been published?"

list_templates

Lists the shared, read-only templates as rows of group, variation, id and description. A row's id is what create_style takes as templateId.

No parameters.

Example prompts:

  • "Which templates can I start a new style from?"

  • "What variations does the Basic 1 template have?"

get_style

Reads one style or template: its details, its current version and, by default, the full style JSON as data.

  • The version is what the write tools need as baseVersion.

  • With data comes dataFormat, a short note on the traps of the format (see Style resources).

Parameter

Type

Required

Default

Description

id

UUID

yes

-

Style id from list_styles, or template id from list_templates.

includeData

boolean

no

true

false returns only the details and version.

Example prompts:

  • "Open my style Night mode and tell me which sections it has."

  • "Show me how the water layers are defined in my Night mode style."

download_style

Downloads a style as the style JSON, or as the .style file the Magic Lane SDK loads.

  • The download is the last saved content, published or not.

  • Without path, JSON is returned in the result; a .style file only when it is 2 MiB or smaller, base64-encoded.

  • A path must end in .json for the JSON and in .style for the .style file.

  • An existing file is never replaced without overwrite: the call is refused before anything is downloaded.

  • When the portal cannot build the .style file, the result carries what it reported, which says what to fix.

Parameter

Type

Required

Default

Description

id

UUID

yes

-

Style or template id.

format

"json" | "proto"

no

"json"

json: the style JSON. proto: the .style file.

path

string

no

-

File to write to. Local server only.

overwrite

boolean

no

false

Replace the file at path if it exists. Local server only.

Example prompts:

  • "Download the .style file of my Night mode style to styles/night.style."

  • "Download my Night mode style as a .style file and tell me whether the portal reports any errors."

create_style

Creates a style from exactly one of: a template (templateId), a full document (data) or a style JSON file (path).

  • Calling it twice creates two styles.

  • Description, tags and purposes are applied with a second write, because the portal ignores them on create.

  • After a timeout the tool does not retry. It reads the style list before the request, and afterwards takes a style as the new one only if it has the name, was not in that first list and is not published. Its description, tags and purposes are then left for edit_style_details, and the result says to check the style before writing to it.

Parameter

Type

Required

Default

Description

name

string, 1–100 chars

yes

-

No line breaks or tabs.

templateId

UUID

one of three

-

Template id from list_templates. A style id is not accepted.

data

object

one of three

-

Full style document, with sources_list, map_schemes_section and icons_section.

path

string

one of three

-

A style JSON file with the same three sections. Local server only.

description

string, ≤ 1000 chars

no

-

Description.

tags

string[] (≤ 20, 1–16 chars each)

no

-

No commas; duplicates removed.

purposes

enum[]

no

-

Any of browse, navigation-car, navigation-truck, navigation-bike, navigation-pedestrian, satellite, elevation.

Example prompts:

  • "Create a style called Night mode from the Basic 1 Modern template."

  • "Duplicate my Night mode style as Night mode v2."

update_style

Replaces the whole content of one of your styles. Send the complete document and the version you read.

  • Name, description, tags and purposes are not touched; use edit_style_details for those.

  • If the style was saved since you read it, the write is refused with a conflict and nothing changes.

  • A save only saves. Publishing is done in Studio.

Parameter

Type

Required

Default

Description

id

UUID

yes

-

Style id. Templates cannot be written.

baseVersion

string

yes

-

The version you last read, unchanged.

data

object

one of two

-

The complete new document. Partial documents are not merged.

path

string

one of two

-

A style JSON file with the complete new document. Local server only.

validateOffline

boolean

no

true

Check the document against the style schema before sending.

Example prompts:

  • "Make the water in my Night mode style darker and save it."

  • "Download my Night mode style to a file, make the parks lighter in the file, and save it from the file."

edit_style_details

Changes the name, description, tags and purposes of one of your styles. The style content is not touched.

  • Only the fields you send change. Send at least one of the four.

Parameter

Type

Required

Default

Description

id

UUID

yes

-

Style id. Templates cannot be edited.

baseVersion

string

yes

-

The version you last read, unchanged.

name

string, 1–100 chars

at least one

-

No line breaks or tabs.

description

string, ≤ 1000 chars

at least one

-

"" clears it.

tags

string[] (≤ 20, 1–16 chars each)

at least one

-

Replaces the whole list; [] clears it.

purposes

enum[]

at least one

-

Replaces the whole list; same values as in create_style.

Example prompts:

  • "Rename my style Night mode to Night mode v2."

  • "Tag my Night mode style with night, dark and city."

validate_style

Checks a style document against the published style schema, without calling the portal, and lists every problem with its JSON path. Give exactly one source.

  • The portal reports only the first problem; this tool reports all of them.

  • warnings lists what to fix before saving. It holds the rules the schema cannot express, and filters with an empty condition list (which Studio shows as "Filter unreadable"). The rules checked:

    • layer ids go down from each layer to the next and end at 1;

    • every group_id and parent_id names a group, and no group sits inside itself;

    • every custom_icon names an image of the style, and image ids are unique;

    • minzoom is not above maxzoom;

    • a layer on the satelliteExternal source has it declared in sources_list.

  • Each warning has the path, id and name of what it is about, a message, and one of three: a fix (a JSON Patch that does not change the map), askUser: true when every fix would change the map, or neither, when the message names the change to make.

  • At most 20 warnings are listed; warningsTruncated counts the rest. create_style and update_style list them too after a save.

  • Some shared templates have warnings, so a style made from one starts with them.

  • Not checked: that background is the last layer, that image or font data is a real file, and image sizes. checksNotInSchema lists every rule the schema cannot express, checked here or not.

  • Paint that Studio does not offer for a layer's type is a note (notes), not a problem: several shared templates have it, and Studio hides it.

  • A very large document (more than 50,000 values, five times a Studio style) gets only its first problem, with a note. A font or an image counts as one value.

Parameter

Type

Required

Default

Description

data

object

one of three

-

The style JSON to check.

path

string

one of three

-

A .json style file to check. Local server only.

id

UUID

one of three

-

A style or template to fetch and check.

maxProblems

integer 1–500

no

50

Most problems listed; the rest are counted.

Example prompts:

  • "Validate the style file styles/night.json and list what is wrong."

  • "Check my Night mode style against the style schema."

get_style_reference

Reads the style format documentation as Markdown. Without arguments it returns the short style editing essentials.

  • The essentials are built into the server; the other pages come from developer.magiclane.com.

  • A long page (the layer types reference) comes back as its introduction and list of headings, unless section is given.

Parameter

Type

Required

Default

Description

page

"style-essentials" | "style-file-format" | "map-data-sources" | "layer-types-reference"

no

"style-essentials"

The page to read.

section

string

no

-

Only the sections whose heading contains this text (any case).

Example prompts:

  • "How are colours stored in a style file?"

  • "Which paint properties does a symbol layer take?"

Style resources

The same documentation is also offered as MCP resources, for clients that read them:

URI

What it holds

magiclane://docs/style-essentials

The style editing essentials, built in (about 7 KB).

magiclane://docs/style-file-format

The style file format page (about 34 KB).

magiclane://docs/map-data-sources

Which data a layer draws by type and sourcedata_id, and the POI categories (about 26 KB).

magiclane://docs/layer-types-reference

Every layer type and the paint properties it takes (about 166 KB).

magiclane://schemas/engine-style

The style JSON Schema that validate_style applies.

magiclane://studio/templates

The template list (same data as list_templates).

  • The essentials are written for agents and need no network: file layout, drawing order, the data numbers of common layers, colours, text codes, icons and fonts, Studio's shared colours and the checks before saving.

  • The three full pages are read from the website (https://developer.magiclane.com/docs/guides/map-studio/reference/<page>.md) when a client reads the resource or calls get_style_reference, cleaned of the site's page header, and kept in memory for an hour, so documentation edits reach agents without a new release. No secret key is sent. If a later download fails, the copy already in memory is served; if there is none, the read fails with the page's URL.

  • The format's traps are also said inline, in the server instructions and in get_style's dataFormat, because not every client reads resources:

    • colours are ABGR integers;

    • the first layer draws on top, and the background layer carries the sea colour;

    • a layer's data is its type plus sourcedata_id;

    • POI icons come from metaCategoryID;

    • fonts must be real TTF or OTF files;

    • Studio keeps its shared colours in a top-level metadata section.

Projects and API keys

  • Toolset: projects (8 tools)

  • API: External API v1, on the developer portal

  • Credentials: MAGICLANE_SECRET_KEY, with the level each tool needs (see the table). A missing level answers insufficient_scope and names the level to add.

  • Not possible here: deleting or disabling projects and API keys, and reading the offline maps key, are done in the portal.

Tool

What it does

Secret key level

list_projects

Lists your projects

Projects: Read

get_project

Reads one project

Projects: Read

create_project

Creates a project

Projects: Read & write

update_project

Changes a project's settings

Projects: Read & write

list_api_keys

Lists a project's API keys, masked

API keys: Read

get_api_key

Reads one API key

API keys: Read

create_api_key

Creates an API key in a project

API keys: Read & write

rename_api_key

Renames an API key

API keys: Read & write

API keys are secrets. The tools keep them out of the conversation unless you ask:

  • By default a key is shown masked: … plus its last 4 characters.

  • revealToken: true (local server only) puts the full key in the result. Use it only when you ask to see the key. The HTTP server never shows the full key: see it in the developer portal.

  • tokenPath (local server only) writes the full key to a file instead, readable only by you where the system supports it.

  • An existing file is replaced only with overwrite: true. A network path, a folder or a read-only file is refused. So is a path that starts with ~/ or ~user/, a path through a link to something that is not there (for example a drive that is not mounted), a path the system will not look at (a name too long, a loop of links, a NUL byte), and on Windows a name longer than 255 characters or one holding < > " | ? * or a control character. In each case the call stops before a key is read or created.

  • A new project has no API key; create one with create_api_key. A project can have at most 2 API keys.

list_projects

Lists the visible projects of your account with their origins and settings. Disabled and hidden projects are not listed.

No parameters.

Example prompts:

  • "List my Magic Lane projects."

  • "Do I already have a project called Fleet tracker?"

get_project

Reads one project: name, description, origins, allowEmptyOrigin and hasOfflineMapsKey.

Parameter

Type

Required

Default

Description

projectId

UUID

yes

-

Project id, from list_projects or create_project.

Example prompts:

  • "Show the settings of my Fleet tracker project."

  • "Which origins can use the keys of project 6f1c…?"

create_project

Creates a project. No API key is created with it.

  • The offline maps key is write-only: results show only hasOfflineMapsKey.

  • After a timeout the tool does not retry. It looks the project up by name before reporting a failure.

Parameter

Type

Required

Default

Description

name

string, 6–64 chars

yes

-

Unique in the account; no line breaks or tabs.

description

string, ≤ 1000 chars

no

-

Free text.

origins

string[] (≤ 100)

no

[]

http(s)://host[:port], or a wildcard such as *.example.com.

allowEmptyOrigin

boolean

no

true

Allow requests without an Origin header (native apps, servers).

offlineMapsKey

string

no

-

Letters, digits and -._~. Only for accounts with offline maps.

Example prompts:

  • "Create a project called Fleet tracker for our delivery web app on https://fleet.example.com."

  • "Create a project Mobile app demo that only accepts requests without an Origin."

update_project

Changes a project. Only the fields you send change.

Parameter

Type

Required

Default

Description

projectId

UUID

yes

-

Project id.

name

string, 6–64 chars

at least one

-

Unique in the account.

description

string, ≤ 1000 chars

at least one

-

"" clears it.

origins

string[] (≤ 100)

at least one

-

Replaces the whole list; [] clears it.

allowEmptyOrigin

boolean

at least one

-

Allow requests without an Origin header.

offlineMapsKey

string

at least one

-

Replaces the offline maps key.

Example prompts:

  • "Add https://app.example.com to the origins of my Fleet tracker project."

  • "Stop accepting requests without an Origin on my Fleet tracker project."

list_api_keys

Lists the API keys of a project, masked, with their expiry. Active and disabled keys are listed separately.

Parameter

Type

Required

Default

Description

projectId

UUID

yes

-

Project id.

Example prompts:

  • "Which API keys does my Fleet tracker project have?"

  • "Are any keys of project 6f1c… expired or about to expire?"

get_api_key

Reads one API key, masked unless you ask otherwise.

Parameter

Type

Required

Default

Description

projectId

UUID

yes

-

Project id.

keyId

string

yes

-

Key id from list_api_keys (the id, not the key itself).

revealToken

boolean

no

false

Put the full key in the result. Local server only.

tokenPath

string

no

-

Write the full key to this file instead. Local server only.

overwrite

boolean

no

false

Replace the file at tokenPath if it exists. Local server only.

Example prompts:

  • "Save the Production key of my Fleet tracker project to keys/fleet.txt."

  • "When does the key Web staging expire?"

create_api_key

Creates an API key in a project.

  • The new key can be read again later with get_api_key.

  • A project can have at most 2 API keys. With two there, the create is refused with api_key_not_created: free a place in the developer portal first, or put the new key in another project.

  • After a timeout the tool does not retry. It looks the key up by name before reporting a failure.

Parameter

Type

Required

Default

Description

projectId

UUID

yes

-

Project id.

name

string, 6–64 chars

yes

-

Unique in the project.

expiresAt

ISO 8601 date

no

6 months ahead

2027-05-01 or 2027-05-01T12:00:00Z; at most 10 years ahead.

revealToken

boolean

no

false

Put the full key in the result. Local server only.

tokenPath

string

no

-

Write the full key to this file instead. Local server only.

overwrite

boolean

no

false

Replace the file at tokenPath if it exists. Local server only.

Example prompts:

  • "Create a key Production for my Fleet tracker project, valid until the end of 2027, and save it to keys/fleet-production.txt."

  • "Create a key Web staging in project 6f1c… that expires in three months and show it to me."

rename_api_key

Renames an API key. The key itself and its expiry do not change.

Parameter

Type

Required

Default

Description

projectId

UUID

yes

-

Project id.

keyId

string

yes

-

Key id.

name

string, 6–64 chars

yes

-

Unique in the project.

Example prompts:

  • "Rename the key Web staging of my Fleet tracker project to Web testing."

Offline maps

  • Toolset: offline_maps (3 tools; download_offline_map on the local server only)

  • API: Offline Maps API, at https://api.magiclane.net/api/v1

  • Credentials: MAGICLANE_OFFLINE_MAPS_API_KEY (an application's API token) and MAGICLANE_OFFLINE_MAPS_SECRET (its secret), which Magic Lane support gives you (Contact us). They are sent only in the Authorization header, never in a URL and never as tool inputs. The secret key (MAGICLANE_SECRET_KEY) is not used and is never sent to this API.

  • Errors: a missing token or secret answers config, a wrong one key_invalid.

  • Without them: the three tools are not offered.

Tool

What it does

Writes a file

list_offline_map_versions

Lists the map versions an SDK can read

no

list_offline_maps

Lists the downloadable maps of one version

no

download_offline_map

Downloads one map file to disk

yes

The usual way to get maps:

  1. list_offline_map_versions to pick a version.

  2. list_offline_maps with a filter to find the maps.

  3. download_offline_map for the basemap, then for each map.

Rules to keep in mind:

  • Pass the map capability of the SDK the maps are for. The default, latest, may list versions an older SDK cannot read.

  • Every map on a device must have the same map version as its basemap. When upgrading, download the new basemap first, then every regional map again.

  • All maps on a device must come from the same catalog. An account with a custom catalog gets it automatically; standardCatalog: true asks for the standard Magic Lane catalog.

list_offline_map_versions

Lists the offline map versions an SDK of the given capability can read, newest first, and names the latest.

Parameter

Type

Required

Default

Description

capability

integer or "latest"

no

"latest"

Map capability of the SDK.

standardCatalog

boolean

no

false

Use the standard catalog instead of the account's custom one.

Example prompts:

  • "Which offline map versions can an SDK with capability 15 use?"

list_offline_maps

Lists the downloadable maps of one version: the world basemap and the per-country and per-state files, with content id, continent, country, state, file path and size.

  • The catalog has hundreds of maps, so filter it.

  • The result always counts the maps per continent, whatever the filter and limit.

  • A catalog is kept in memory and used for up to 10 minutes; at most 20 catalogs are kept at once.

Parameter

Type

Required

Default

Description

capability

integer or "latest"

no

"latest"

Map capability of the SDK.

mapVersion

"major.minor" or "latest"

no

"latest"

Map version, for example "7.546".

continent

string

no

-

Only this continent (any case).

country

string

no

-

ISO code (NLD) or name (any case).

state

string

no

-

Only this state or region.

query

string

no

-

Text in the country, state, continent or file name.

limit

integer 1–500

no

50

Most maps returned.

includeChecksums

boolean

no

false

Add crc32, md5 and sha256 to each map.

standardCatalog

boolean

no

false

Use the standard catalog instead of the account's custom one.

Example prompts:

  • "List the offline maps of Europe in the latest map version, with their sizes."

  • "Which map files does Australia have?"

download_offline_map

Downloads one map file to disk. Local server only. Choose the map with exactly one of file, contentId and country.

  • Maps are large: the basemap is about 190 MB, a country up to several GB. They are never returned in the result.

  • The download is written as <path>.part first, with a small <path>.part.json beside it that says which map file it holds. If the download is cancelled, stalls (no data for 60 s) or breaks, both are kept, and the same call resumes it. When the connection breaks, the answer says how many MB are kept and that calling again with the same arguments resumes.

  • Only the same map file of the same version is resumed. A .part of another map or version is started again from the beginning.

  • A .part or .part.json file that this tool did not write is never touched: the call is refused until you remove the file or give another path.

  • One call at a time downloads to a path: a second call for the same path is refused while the first is running. Other paths download at the same time.

  • When complete, the file is checked against the catalog's size and sha256 (or md5), then put in place. A file that fails the check is deleted. When the catalog gives neither checksum, only the size is checked and the result says so; the catalog's crc32 is not checked.

  • An existing file is never replaced without overwrite, also when it appears while the map is downloading.

  • On Windows a network or device path (\\server\share\…) is refused, unless it is inside a MAGICLANE_FILES_DIR that is itself on a network share.

  • A path to an existing folder, or one that ends in /, saves the map in that folder under the catalog's file name; a folder that is not there yet is created. Only Windows takes \ as a folder separator: on Linux and macOS a path that ends in a backslash is refused.

  • Clients that ask for progress get progress notifications.

Parameter

Type

Required

Default

Description

mapVersion

"major.minor" or "latest"

yes

-

The version the device uses.

file

string

one of three

-

The map's path from list_offline_maps, or "basemap".

contentId

integer

one of three

-

The map's contentId from list_offline_maps.

country

string

one of three

-

ISO code or name.

state

string

with country

-

State or region, for a country split into states.

path

string

yes

-

File to write, or a folder to keep the catalog's file name.

overwrite

boolean

no

false

Replace an existing file.

capability

integer or "latest"

no

"latest"

Map capability of the SDK.

standardCatalog

boolean

no

false

Use the standard catalog instead of the account's custom one.

Example prompts:

  • "Download the world basemap and the Netherlands map of version 7.546 to maps/."

  • "Download New South Wales for capability 15, map version 7.546, into ./maps/."


Troubleshooting

Common Issues

Server Won't Start

# Check that the Node.js version is 22.12 or newer
node --version

# Check that the secret key is set and starts with mlsk_
# This prints neither the key nor any part of it: a terminal keeps what it shows
case "$MAGICLANE_SECRET_KEY" in mlsk_*) echo "set, a secret key" ;; "") echo "not set" ;; *) echo "set, but not a secret key" ;; esac

# Check for build errors (when running from source)
npm run build

The server also stops at startup, with a message that names the problem, when:

  • MAGICLANE_SECRET_KEY does not start with mlsk_, or is missing while MAGICLANE_TOOLSETS names styles or projects, or while the offline maps token and secret are not set either

  • MAGICLANE_TOOLSETS has a name it does not know. The message quotes a name of up to 24 letters, digits, _, . or -, and toolset names joined by something other than a comma (such as styles;projects). Any other name, a secret key pasted there by mistake among them, is given only by its length

  • only one of MAGICLANE_OFFLINE_MAPS_API_KEY and MAGICLANE_OFFLINE_MAPS_SECRET is set, or MAGICLANE_TOOLSETS names offline_maps without them

  • MAGICLANE_FILES_DIR names no folder that exists

Key Issues

  • Ensure your secret key is valid and active in the Magic Lane Dashboard, under CLI & Access

  • Verify the environment variable is correctly set: MAGICLANE_SECRET_KEY=mlsk_your_key

  • Check for extra spaces or quotes in the key

  • For the offline maps tools, set both MAGICLANE_OFFLINE_MAPS_API_KEY (the application's API token) and MAGICLANE_OFFLINE_MAPS_SECRET (its secret)

  • The portal counts requests with a missing, invalid or revoked key and, past its limit, answers them with too_many_failed_attempts for a while. A valid key is never refused by that limit, so fix the key rather than wait

Missing Tools

  • A toolset left out of MAGICLANE_TOOLSETS is not offered at all

  • The offline maps tools are offered only when their token and secret are set

  • download_offline_map and the path / tokenPath inputs exist on the local (stdio) server only

Connection Problems

  • Verify your MCP client configuration matches the server path

  • Ensure the server is running before connecting the client

  • Check firewall settings if using remote connections

  • Set VERBOSE=true to see a line for every tool call and its result in the client's MCP log

Rate Limiting

  • The portal allows 120 reads and 30 writes per minute per account, across all its keys

  • The server paces itself below those limits and waits out a short 429 once; a longer wait comes back as an error with retry_after_seconds

Common Error Messages

Every tool error is JSON with error (a sentence that says what went wrong), status_code and code, and where it helps details, retry_after_seconds, request_id and current_version.

  • Unauthorized (401, key_invalid / key_expired): Invalid or expired secret key. Check your configuration.

  • Forbidden (403, insufficient_scope): The secret key lacks the level the tool needs; the message names the level to add.

  • Not found (404, style_not_found / project_not_found / api_key_not_found): The id does not exist in your account. List the items again.

  • Conflict (409, conflict): The style was saved since you read it. Read it again and retry with the new version.

  • Too many requests (429, rate_limited): Rate limit exceeded. Wait the time given in retry_after_seconds.

  • Bad request (400, validation / invalid_parameter): Invalid parameters. Check your input format.

  • api_key_not_created: The key service refused the create or failed. The usual reason is that the project already has 2 API keys, the most a project can have: list them with list_api_keys, and free a place in the developer portal or use another project. With fewer keys the key service failed: try again later.

  • Offline maps (config / key_invalid): The API token or its secret is missing or was rejected. Check MAGICLANE_OFFLINE_MAPS_API_KEY and MAGICLANE_OFFLINE_MAPS_SECRET.

  • Offline maps (integrity / cancelled): A downloaded map did not match its catalog checksum and was deleted, or the download was cancelled and its .part file was kept for resuming.

  • network / timeout: The service could not be reached or did not answer in time. A read can be tried again later. A create or a save may have been carried out all the same: the tool then looks for the item or reads the style back, and its answer says what it found. Follow that answer, and after a create list the items (list_styles, list_projects, list_api_keys) before creating again.

  • non_json: The answer was not JSON. With a 5xx status the service is down or being updated: try a read again later, and treat a create or a save as above, since it may have been carried out. With a 4xx status a web server or proxy in front of the portal refused the request, and trying again unchanged will not help. A 429 or a 408 from such a server is reported as rate_limited or timeout instead.

  • result_mismatch: The call completed, but its result does not match the tool's output schema; the result is in details.result. For a tool that changes something, the change was made: do not repeat it.

Development

To build, test or change the server, clone the repository:

npm install
npm run build
npm test            # the unit tests need no key and no network
npm run check       # types, lint, format, spelling and tests with coverage
npm run inspect:dev # the MCP Inspector against the server from source

CONTRIBUTING.md has the commands, the tests and how to propose a change. Report a security problem as SECURITY.md says, not in an issue.

Privacy Policy

Magic Lane is committed to protecting your privacy and handling your data responsibly. For complete privacy information, See our Full Privacy Policy.

Data Collection

  • Your account data: This server works on resources of your own Magic Lane account. The styles, projects and API keys you read, create or change through it are sent to and stored by the Magic Lane developer portal, as they are when you use the portal or Studio yourself.

  • Secret key: Your secret key is sent with every portal request, solely for authentication. It is read from the environment, is never a tool input and is never written to the server's logs.

  • Offline maps credentials: The API token and its secret are sent only to the Offline Maps API, in the Authorization header.

  • Documentation requests: The style reference pages are read from the public developer website without any key.

How Data Is Used

  • Requests are made only when a tool is called, to carry out that call.

  • The server keeps no database. It holds the style reference pages for an hour and up to 20 offline maps catalogs, each used for at most ten minutes, in memory only.

  • API keys are masked in results unless you ask to see one.

Data Storage & Retention

  • The server writes a file to your computer only when you give a tool a path: a downloaded style, an API key or an offline map.

  • With VERBOSE=true the server logs each tool call with summarized arguments to its standard error output; secret inputs are masked and request bodies are not logged.

  • What the developer portal and the Offline Maps API retain is described in the privacy policy linked above.

Third-Party Data

  • The server contacts Magic Lane services only: the developer portal, the developer website and the Offline Maps API.

  • Your AI client and its model provider see the tool inputs and results that pass through the conversation, under their own terms.

For detailed information, review our Terms of Service and Privacy Policy.


Support

License

Copyright 2026 Magic Lane International B.V. Licensed under the Apache License, Version 2.0. REUSE.toml gives the license of every file, third-party content included, such as the Cursor interface in a screenshot. The Magic Lane name, logo and icon are trademarks of Magic Lane International B.V. and are not licensed under Apache-2.0; see LICENSES/LicenseRef-MagicLane-Trademark.txt.

Available Tools

17 tools
create_api_keyCreate API KeyA
Destructive

Create an API key for a project (the key apps use with the Magic Lane SDK and APIs; not the secret key this server runs with). Name 6–64 characters, unique in the project; optional expiry as an ISO date, default 6 months. The key is masked unless revealToken is true; set that only when the user asks to see the key. To hand the key to the user without showing it here, give tokenPath and it is written to that file (a new file; an existing one is replaced only with overwrite: true). A tokenPath that is refused stops the call before the key is created. The key can be read again later with get_api_key. A project can have at most 2 API keys: with that many there the create fails (check with list_api_keys first), and a place is freed only in the developer portal. Not idempotent. Requires "API keys: Read & write".

Inputs: name (required), projectId (required), expiresAt, overwrite, +2 more. Returns: key, notes

create_projectCreate ProjectA

Create a project in the account. Only the name is required (6–64 characters, unique in the account); optional description, allowed web origins (e.g. "https://app.example.com", "*.example.com"), allowEmptyOrigin (default true: native apps and servers without an Origin header) and offlineMapsKey (only for accounts with offline maps). No API key is created with the project: call create_api_key next if the user needs one. Fails when the plan allows no more projects. Not idempotent. Requires "Projects: Read & write". Disabling or deleting projects, hidden projects and reading the offline maps key itself are only possible in the developer portal.

Inputs: name (required), origins, description, offlineMapsKey, +1 more. Returns: notes, project

create_styleCreate StyleA

Create a Magic Lane Studio style in the account from a template (templateId from list_templates) or from full style JSON, given inline (data) or as the path of a JSON file on this computer (path). Exactly one of the three. To duplicate one of your own styles, get_style it and pass its data (a style id is not accepted as templateId). Returns the new style's summary and version; description, tags and purposes, when given, are applied with a second write. Requires a key with "Studio: Read & write". Not idempotent: two calls with the same name create two styles; after a timeout the tool checks the list before reporting failure. Some templates have layers to fix: the result lists them as warnings, each with its fix or the change to make (checked once per template per hour); fix them with update_style and tell the user what you fixed; if one cannot be fixed or the user keeps it, say so and leave it. Style JSON follows the style format, with its traps (colours are ABGR integers): get_style_reference: the essentials with no arguments (resource magiclane://docs/style-essentials), the full format with page "style-file-format" (https://developer.magiclane.com/docs/guides/map-studio/reference/style-file-format/). Publishing, reverting and deleting styles, previews, thumbnails and privacy settings are Studio actions (https://developer.magiclane.com/studio) and are not available through these tools; a save here only saves.

Inputs: name (required), data, path, tags, +3 more. Returns: from, notes, style, warnings, +3 more

download_styleDownload StyleA
DestructiveIdempotent

Download a Magic Lane Studio style as a file: format "json" (the style JSON, byte-for-byte the "data" of get_style) or "proto" (the .style file the Magic Lane SDK loads, which the portal builds on request in about a second). Give a path to write the file to disk — required in practice for "proto", which is otherwise returned base64-encoded only when small. The file is new: an existing one is replaced only with overwrite: true. The download reflects the last saved content whether or not the style was published in Studio. When the portal cannot build the .style file, the result carries what it reported, which says what to fix.

Inputs: id (required), path, format, overwrite. Returns: id, data, note, path, +5 more

edit_style_detailsEdit Style DetailsA
DestructiveIdempotent

Change the name, description, tags and/or purposes of one of your Magic Lane Studio styles. Only the fields sent change: "" clears description, [] clears tags or purposes (never send null). The style content is not touched (use update_style for that). Send the "version" last read as baseVersion; a conflict means the style was saved since — read it again and resend. Limits: name 1–100 characters without line breaks; description up to 1000; up to 20 tags of 1–16 characters without commas; purposes only from the fixed list. Templates cannot be edited. Requires "Studio: Read & write". Publishing, reverting and deleting styles, previews, thumbnails and privacy settings are Studio actions (https://developer.magiclane.com/studio) and are not available through these tools; a save here only saves.

Inputs: id (required), baseVersion (required), name, tags, +2 more. Returns: The style as saved, without its JSON.

get_api_keyGet API KeyA
DestructiveIdempotent

Read one API key of a project, enabled or disabled: name, expiry, active, last 4 characters. The key is masked unless revealToken is true; set that only when the user asks to see the key. To hand the key to the user without showing it here, give tokenPath and it is written to that file (a new file; an existing one is replaced only with overwrite: true). Requires "API keys: Read".

Inputs: keyId (required), projectId (required), overwrite, tokenPath, +1 more. Returns: key, notes

get_projectGet ProjectA
Read-onlyIdempotent

Read one project of the account: name, description, allowed web origins, allowEmptyOrigin and hasOfflineMapsKey (the offline maps key itself is never returned). Requires "Projects: Read". Disabled and hidden projects are reported as not found.

Inputs: projectId (required). Returns: id, name, origins, description, +2 more

get_styleGet StyleA
Read-onlyIdempotent

Read one Magic Lane Studio style (or template) of the account: its metadata, its current "version" string and, by default, its full style JSON as "data" (170–190 KB). Call this before update_style or edit_style_details to obtain the version to send as baseVersion; set includeData=false when only the metadata is needed. A style of another account is reported as not found. "dataFormat", next to "data", lists the format traps (colours are ABGR integers); before editing, read the essentials with get_style_reference (no arguments, also resource magiclane://docs/style-essentials).

Inputs: id (required), includeData. Returns: id, data, name, tags, +9 more

get_style_referenceGet Style ReferenceA
Read-onlyIdempotent

Read the Magic Lane Studio style reference, as Markdown. Without arguments: the style editing essentials (built in, about 7 KB): file layout, drawing order, the data numbers of common layers, paint stop lists, ABGR colours, text codes, icons and fonts, Studio's shared colours, checks before saving. Read them before editing style JSON. The full pages come from developer.magiclane.com: "style-file-format" (the whole format), "map-data-sources" (every layer data number and the POI categories by metaCategoryID) and "layer-types-reference" (every layer type and the paint properties it takes; long, so without "section" you get its outline). "section" returns only the parts whose heading contains it. The same pages are resources magiclane://docs/.

Inputs: page, section. Returns: page, outline, section, markdown

list_api_keysList API KeysA
Read-onlyIdempotent

List a project's API keys, active and disabled, masked: id, name, expiry (ISO), whether it has expired and the last 4 characters. The full keys are never listed; get_api_key returns one when the user asks for it. Requires "API keys: Read". Disabling or deleting keys is only possible in the developer portal.

Inputs: projectId (required). Returns: note, active, disabled, projectId

list_projectsList ProjectsA
Read-onlyIdempotent

List the account's active, visible projects (applications that own API keys): id, name, description, allowed web origins, allowEmptyOrigin and whether an offline maps key is set. Use a project id with get_project, update_project and the API key tools. Requires "Projects: Read". Disabling or deleting projects, hidden projects and reading the offline maps key itself are only possible in the developer portal.

Inputs: no named parameters. Returns: note, total, projects

list_stylesList StylesA
Read-onlyIdempotent

List the Magic Lane Studio styles of the account that owns the secret key, newest first. Returns summaries only (id, name, description, resolution, tags, purposes, updated, published or "never published", version) — never the style content; use get_style for that. Templates are not included (see list_templates). Optional server-side filter by resolution and client-side filter by name.

Inputs: limit, resolution, nameContains. Returns: total, styles, returned

list_templatesList Style TemplatesA
Read-onlyIdempotent

List the shared, read-only Magic Lane Studio style templates as flat rows (group, variation, id, description). A row's id is what create_style takes as templateId and what get_style / download_style accept to inspect the template. Templates cannot be changed through this server.

Inputs: no named parameters. Returns: note, groups, templates

rename_api_keyRename API KeyA
DestructiveIdempotent

Rename an API key of a project, enabled or disabled (name 6–64 characters, unique in the project). Nothing else about a key can be changed here; disabling or deleting keys is only possible in the developer portal. Requires "API keys: Read & write".

Inputs: name (required), keyId (required), projectId (required). Returns: id, name, token, active, +4 more

update_projectUpdate ProjectA
DestructiveIdempotent

Change a project: name, description, origins, allowEmptyOrigin and/or offlineMapsKey (at least one). Only the fields sent change; origins replaces the whole list (read the project first with get_project and send the full new list to add or remove one origin); "" clears the description. Requires "Projects: Read & write". Disabling or deleting projects, hidden projects and reading the offline maps key itself are only possible in the developer portal.

Inputs: projectId (required), name, origins, description, +2 more. Returns: id, name, origins, description, +2 more

update_styleUpdate Style ContentA
DestructiveIdempotent

Saves the new content of the style in Magic Lane Studio: replaces the complete style JSON of one of your styles. Always send the full document (edit the "data" from get_style and send it back) and the "version" you read as baseVersion; if the style was saved since (for example in Studio) the write is refused with a conflict and nothing changes — read again, compare, and resend deliberately, never automatically. For a large style, send a file instead of data: first read the "version" with get_style (includeData: false), then download_style it with a path, edit the file, and pass that path here (exactly one of data and path) with that version as baseVersion. The document then never has to pass through the conversation, and a save made in Studio after the download is refused, not overwritten. A version read after the edit would let that save be overwritten. By default the document is validated offline first, reporting every schema problem with its path. A saved document that still has something to fix comes back with warnings: fix them, save again and tell the user what you fixed; if one cannot be fixed or the user keeps it, say so and leave it (warnings never block a save). Name, description, tags and purposes are untouched (use edit_style_details). Requires "Studio: Read & write". The style format, with its traps (colours are ABGR integers): get_style_reference: the essentials with no arguments (resource magiclane://docs/style-essentials), the full format with page "style-file-format" (https://developer.magiclane.com/docs/guides/map-studio/reference/style-file-format/). Publishing, reverting and deleting styles, previews, thumbnails and privacy settings are Studio actions (https://developer.magiclane.com/studio) and are not available through these tools; a save here only saves.

Inputs: id (required), baseVersion (required), data, path, +1 more. Returns: id, from, note, saved, +4 more

validate_styleValidate StyleA
Read-onlyIdempotent

Validate a Magic Lane style JSON document offline against the published engine style schema, without calling the portal (unless an id is given, which fetches the style first). Reports every problem with its JSON path, unlike the portal which reports only the first. Of the rules the schema cannot express ("checksNotInSchema" lists them all), it checks layer id order, group and icon references, unique image ids, minzoom ≤ maxzoom and the declared satellite source, and reports them as warnings; it does not check that the background layer comes last, that image and font data are real files, nor image sizes. "warnings" lists what to fix before saving, also when it came from a template: apply each "fix", ask the user where "askUser" is true, make the change the message names where there is neither, and tell the user what you fixed. If one cannot be fixed, or the user keeps it, say so and leave it: warnings never block a save. "warnings" holds only the checks this server makes, so an empty list does not mean Studio shows no warning. "notes" need no change. Use it before update_style or create_style with data. Reference: get_style_reference: the essentials with no arguments (resource magiclane://docs/style-essentials), the full format with page "style-file-format" (https://developer.magiclane.com/docs/guides/map-studio/reference/style-file-format/)

Inputs: id, data, path, maxProblems. Returns: notes, valid, source, problems, +5 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 17 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource+action (list/get/create/update per resource). The only mild overlaps are get_style vs download_style (both fetch style content, differing only in output medium) and update_style vs edit_style_details, but the descriptions clearly delimit content vs metadata, so an agent can choose correctly.

    Naming Consistency5/5

    Every tool follows a consistent verb_noun snake_case pattern grouped by resource (style, project, api_key), e.g. list_styles, create_project, rename_api_key. The only variation (edit_style_details) is still readable and predictable within the convention.

    Tool Count4/5

    17 tools sits at the upper end but is justified: it cleanly spans three related domains (styles, projects, API keys) with proportionate operations each. No redundant tools inflate the count; slightly heavy but well-scoped.

    Completeness4/5

    Read/list/create/update coverage exists for styles, projects, templates, and API keys, with the documented omissions (delete, disable, publish, preview) explicitly delegated to the developer portal, so agents are not left guessing. These are real but clearly-signposted gaps that agents can work around.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers