maproll

Make production-ready static maps. Every map is a URL you can embed anywhere.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
99%
命名品質
95%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~3,623Token(工具定義)
~8.9 KB典型回應大小
顯著的注意力影響(128k 上下文的 2.83%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "maproll": {
      "command": "npx",
      "args": [
        "@maproll/mcp"
      ]
    }
  }
}

可執行的套件

npm@maproll/mcp0.2.7stdio

遠端端點

https://mcp.maproll.io/mcpstreamable-http

它能做什麼

工具清單

工具(4)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢create_map(scope, values, highlight, title, subtitle, ...)

Make a production-ready static map and return its URL plus a rendered preview. The map is a URL: the returned svg_url renders the same image forever, embeds in an <img> tag with no JavaScript, and is the handle the other maproll tools accept. Use it for choropleths (numeric values per region), flat colour paints, qualitative category maps, and plain highlight maps. Region ids are ISO 3166-1 alpha-2 at the "world" scope ("US", "DE", "BR") and ISO 3166-2 inside a country scope ("RO-B", "RO-CJ"). Numeric values and text categories cannot appear in the same map — pick one. Do not use it for interactive or zoomable maps, driving directions, or street-level detail; maproll renders static statistical maps, not a slippy map.

輸入結構描述

{
  "type": "object",
  "properties": {
    "scope": {
      "type": "string",
      "description": "Geography to draw. \"world\", a group (\"EU\", \"NATO\", \"G20\", \"ASEAN\", \"AFRICA\"), or a country code for its subnational regions (\"RO\"). Read maproll://catalog/scopes, or call describe_options with kind \"scopes\", for the full list."
    },
    "values": {
      "description": "Per-region data. Give `value` for a choropleth, `color` to paint a region flat, or `category` for qualitative buckets.",
      "maxItems": 5000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 2,
            "description": "Region id. ISO 3166-1 alpha-2 for the world scope (\"US\", \"DE\"); ISO 3166-2 for subnational scopes (\"RO-B\", \"RO-CJ\")."
          },
          "value": {
            "description": "Numeric value driving the choropleth colour.",
            "type": "number"
          },
          "color": {
            "description": "Explicit fill as a 6-digit hex (\"#ff0000\"). With `value`, overrides the scale for this region. Without one, paints the region flat.",
            "type": "string"
          },
          "category": {
            "description": "Qualitative bucket (\"NATO\", \"BRICS\"). Selects a categorical scale and names the bucket in the legend. Cannot be combined with numeric values.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "highlight": {
      "description": "Region ids to highlight with no data behind them. Use instead of `values` when the point is which regions, not how much.",
      "maxItems": 5000,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "title": {
      "description": "Headline above the map.",
      "type": "string",
      "maxLength": 120
    },
    "subtitle": {
      "description": "Smaller line under the title.",
      "type": "string",
      "maxLength": 160
    },
    "legendTitle": {
      "description": "Caption above the legend.",
      "type": "string",
      "maxLength": 120
    },
    "legend": {
      "description": "Show the legend. Defaults true; set false for flat colour paints, which have no scale to show.",
      "type": "boolean"
    },
    "legendNoData": {
      "description": "Label for an extra legend swatch, in the map's land colour, covering the regions with no value — so a reader can tell the lowest band from absent data. Pass the label itself, and make it say what blank means on THIS map: \"No data\" when the regions are simply missing from the dataset, \"None recorded\" when blank is a real zero (a banana-production map). Omit it for no swatch.",
      "type": "string",
      "maxLength": 32
    },
    "legendItems": {
      "description": "Your own legend, for maps whose colours you chose with `color` instead of letting the scale pick them: `;`-separated `color:label` pairs, drawn in that order, e.g. \"#1d4ed8:Democrat by 15 or more;#93c5fd:Democrat by under 5;#b91c1c:Republican by 15 or more\". Up to 20 entries, 40 characters per label. Replaces the computed legend; works in every theme.",
      "type": "string",
      "maxLength": 1200
    },
    "theme": {
      "description": "Colour theme. Defaults to dark.",
      "type": "string",
      "enum": [
        "dark",
        "dark-blue",
        "dark-mono",
        "light",
        "light-blue",
        "light-mono"
      ]
    },
    "colorScale": {
      "description": "Sequential for magnitudes, diverging for values around a midpoint, categorical for buckets.",
      "type": "string",
      "enum": [
        "sequential",
        "diverging",
        "categorical"
      ]
    },
    "classification": {
      "description": "How numeric values are binned. Ignored for diverging and categorical scales.",
      "type": "string",
      "enum": [
        "quantile",
        "jenks",
        "equal",
        "custom"
      ]
    },
    "breaks": {
      "description": "Bin upper bounds. Required when classification is custom.",
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "projection": {
      "description": "Map projection. Each scope has a sensible default; override only with a reason.",
      "type": "string",
      "enum": [
        "naturalEarth1",
        "albersUsa",
        "conicConformal",
        "mercator",
        "equalEarth"
      ]
    },
    "legendLayout": {
      "type": "string",
      "enum": [
        "vertical",
        "horizontal",
        "continuous"
      ]
    },
    "width": {
      "description": "Pixel width. Defaults to 1200.",
      "type": "integer",
      "minimum": 1,
      "maximum": 8000
    },
    "height": {
      "description": "Pixel height. Defaults to the projection's aspect ratio.",
      "type": "integer",
      "minimum": 1,
      "maximum": 8000
    },
    "bbox": {
      "description": "Crop to \"minLon,minLat,maxLon,maxLat\"; the projection refits to the rectangle.",
      "type": "string"
    },
    "detail": {
      "description": "Geometry detail. Defaults to \"low\" on world and group scopes, \"medium\" elsewhere. Set \"medium\" when `bbox` zooms into the world, or coastlines look coarse. \"high\" is slow and makes a multi-MB SVG; use it only for a PNG.",
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "disputed": {
      "description": "World and group scopes only (a country scope is rejected). Hatches disputed or occupied areas on top of the map, with transparent stripes so the controlling country's colour shows through. \"all\", or a list of ids. KASHMIR-PK and KASHMIR-IN are the two sides of the Line of Control; give both to stay neutral.",
      "anyOf": [
        {
          "type": "string",
          "const": "all"
        },
        {
          "minItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "CRIMEA",
              "WESTERN-SAHARA",
              "GOLAN",
              "NORTHERN-CYPRUS",
              "SOUTH-OSSETIA",
              "ABKHAZIA",
              "TRANSNISTRIA",
              "KURILS-SOUTH",
              "KASHMIR-PK",
              "KASHMIR-IN",
              "AKSAI-CHIN",
              "SHAKSGAM"
            ]
          }
        }
      ]
    },
    "borders": {
      "description": "Shared borders to draw as heavy lines: region-id pairs joined by \"-\", e.g. [\"IN-PK\", \"AF-PK\"] (subnational: \"US-CA-US-NV\"). Both regions must be in the scope and actually touch. Do not list a pair twice or reversed.",
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "borderColor": {
      "description": "Hex colour of the `borders` lines (\"#22d3ee\"). Defaults to the theme's text colour.",
      "type": "string"
    },
    "borderWidth": {
      "description": "Width of the `borders` lines in px. Defaults to 2.5, clamped to 0.5-12.",
      "type": "number"
    },
    "graticule": {
      "description": "Draw a 10-degree lat/lon grid.",
      "type": "boolean"
    },
    "northArrow": {
      "description": "Compass arrow, top right.",
      "type": "boolean"
    },
    "scaleBar": {
      "description": "Kilometre scale bar, bottom left.",
      "type": "boolean"
    },
    "attribution": {
      "description": "OpenStreetMap credit. On by default and should stay on.",
      "type": "boolean"
    },
    "labels": {
      "description": "\"ISO\" labels every region above the size threshold; an array labels only those ids.",
      "anyOf": [
        {
          "type": "string",
          "const": "ISO"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "extra": {
      "description": "Escape hatch for documented parameters without a field here (patterns, annotations, proportional, labelMinArea, ...). Passed through verbatim.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    }
  },
  "required": [
    "scope"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "svg_url": {
      "type": "string",
      "description": "Embeddable SVG. This is also the handle other tools take."
    },
    "png_url": {
      "type": "string",
      "description": "The same map as PNG, 900 px wide unless you set width. The SVG has no such default and renders at 1200, so pass width when the two must match exactly."
    },
    "editor_url": {
      "type": "string",
      "description": "Open in the maproll editor."
    },
    "embed": {
      "type": "string",
      "description": "Ready-to-paste <img> tag."
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Non-fatal problems, e.g. region ids the renderer did not recognise."
    }
  },
  "required": [
    "svg_url",
    "png_url",
    "editor_url",
    "embed",
    "warnings"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢add_layers(map, markers, routes, proportional, patterns, ...)

Add markers, routes, proportional circles, pattern fills, annotations or labels to an existing map, and return the new URL. Takes the svg_url of a map you already made. Everything on it is kept — this appends rather than replaces, so it is also how you build a map up over several turns. Resolve coordinates with find_places before adding a marker. Guessed lat/lon lands in the wrong country and the render will not complain. Use sea routes for shipping: they follow the lanes through Suez, Panama and Malacca instead of drawing a straight line over land.

輸入結構描述

{
  "type": "object",
  "properties": {
    "map": {
      "type": "string",
      "description": "A map URL from a previous call. Everything already on it is kept."
    },
    "markers": {
      "description": "Points to add.",
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "icon": {
            "description": "One of the 30 built-in icons (\"pin\", \"airport\", \"ship\", \"factory\", \"warning\"…). Read maproll://catalog/icons or call describe_options with kind \"icons\"; an invented name renders nothing.",
            "type": "string"
          },
          "sidc": {
            "description": "A 20- or 30-digit APP-6 / MIL-STD-2525 code, instead of `icon`.",
            "type": "string"
          },
          "label": {
            "type": "string",
            "maxLength": 120
          },
          "labelPosition": {
            "description": "Caption placement. Use \"bottom\" for military symbols.",
            "type": "string",
            "enum": [
              "top",
              "bottom",
              "left",
              "right"
            ]
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          },
          "color": {
            "description": "Icon colour as \"#rrggbb\". Ignored for military symbols, which take their affiliation colour.",
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "rotation": {
            "description": "Degrees clockwise, e.g. a ship's heading. On a military symbol it draws the direction-of-movement arrow.",
            "type": "number",
            "minimum": -360,
            "maximum": 360
          }
        },
        "required": [
          "lat",
          "lon"
        ],
        "additionalProperties": false
      }
    },
    "routes": {
      "description": "A→B lines to add.",
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "ISO code (\"RO\") or a \"lat,lon\" literal."
          },
          "to": {
            "type": "string"
          },
          "color": {
            "description": "6-digit hex, e.g. \"#ff0000\".",
            "type": "string"
          },
          "width": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 100
          },
          "style": {
            "type": "string",
            "enum": [
              "solid",
              "dashed"
            ]
          },
          "arrow": {
            "type": "boolean"
          },
          "sea": {
            "description": "Follow shipping lanes through Suez / Panama / Malacca instead of cutting a great circle over land.",
            "type": "boolean"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "additionalProperties": false
      }
    },
    "proportional": {
      "description": "Circles at region centroids, area proportional to value.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "value": {
            "type": "number"
          },
          "color": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "value"
        ],
        "additionalProperties": false
      }
    },
    "patterns": {
      "description": "Per-region texture fills, for hatching a category onto a choropleth.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "pattern": {
            "type": "string",
            "enum": [
              "stripes",
              "stripes-diagonal",
              "dots",
              "crosshatch",
              "solid-outline"
            ]
          }
        },
        "required": [
          "id",
          "pattern"
        ],
        "additionalProperties": false
      }
    },
    "annotations": {
      "description": "Per-region tooltip text.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string",
            "maxLength": 200
          }
        },
        "required": [
          "id",
          "text"
        ],
        "additionalProperties": false
      }
    },
    "labels": {
      "description": "\"ISO\" labels every large region; an array labels only those ids.",
      "anyOf": [
        {
          "type": "string",
          "const": "ISO"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    }
  },
  "required": [
    "map"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "svg_url": {
      "type": "string"
    },
    "png_url": {
      "type": "string",
      "description": "The same map as PNG, 900 px wide unless the map sets width. The SVG has no such default and renders at 1200."
    },
    "editor_url": {
      "type": "string"
    },
    "embed": {
      "type": "string"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "svg_url",
    "png_url",
    "editor_url",
    "embed",
    "warnings"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢find_places(query, kind, limit)

Resolve a place name to real coordinates and the region id maproll uses. Searches countries, regions, cities and airports, and returns each hit's ISO 3166-1 / 3166-2 / IATA code alongside its latitude and longitude. Use it before placing any marker or lat,lon route endpoint. Coordinates recalled from memory are frequently wrong by degrees, and a map renders a wrong marker exactly as confidently as a right one.

輸入結構描述

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 2,
      "description": "Place name to resolve, e.g. \"Constanța\", \"Suez\", \"Heathrow\"."
    },
    "kind": {
      "description": "Narrow the search. Omit to search all four.",
      "type": "string",
      "enum": [
        "country",
        "region",
        "city",
        "airport"
      ]
    },
    "limit": {
      "description": "Default 10.",
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "places": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "id": {
            "description": "ISO 3166-1 / 3166-2 / IATA code.",
            "type": [
              "string",
              "null"
            ]
          },
          "lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "lon": {
            "type": [
              "number",
              "null"
            ]
          },
          "country": {
            "type": "string"
          },
          "countryId": {
            "type": "string"
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "regionId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "kind",
          "id",
          "lat",
          "lon",
          "country",
          "countryId",
          "region",
          "regionId"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "places"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢describe_options(kind)

Return the exact accepted values for scopes, themes, marker icons, projections, pattern fills, or the URL grammar. The same content is published as the maproll:// resources; this tool is for hosts that do not read resources. Check it rather than guessing a name — an icon or theme that does not exist renders nothing and reports no error.

輸入結構描述

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "scopes",
        "themes",
        "icons",
        "projections",
        "patterns",
        "grammar"
      ],
      "description": "Which catalog to return."
    }
  },
  "required": [
    "kind"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本4 個工具