mcp-docs-server

AI access to Mapbox docs, API references, style specs, and guides. No token required.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
100%
命名质量
93%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~578token 数(工具定义)
~982 B典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.45%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "mcp-docs-server": {
      "command": "npx",
      "args": [
        "@mapbox/mcp-docs-server"
      ]
    }
  }
}

可运行的软件包

npm@mapbox/mcp-docs-server0.3.1stdio

远程端点

https://mcp-docs.mapbox.com/mcpstreamable-http

它能做什么

工具清单

工具(3)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢get_document_tool(url)

Fetch the full content of a specific Mapbox documentation page by URL. Use this after get_latest_mapbox_docs_tool to follow a link from the index and retrieve the complete page content. For fetching multiple pages at once, use batch_get_documents_tool instead.

输入模式

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL of a Mapbox documentation page to fetch. Must be a mapbox.com URL (e.g. https://docs.mapbox.com/api/search/geocoding/)."
    }
  },
  "required": [
    "url"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢batch_get_documents_tool(urls)

Fetch the full content of multiple Mapbox documentation pages in a single call (max 20). More efficient than calling get_document_tool multiple times. Returns an array of results — failed pages include an error message rather than failing the whole batch.

输入模式

{
  "type": "object",
  "properties": {
    "urls": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "Array of Mapbox documentation page URLs to fetch (max 20). All must be mapbox.com URLs."
    }
  },
  "required": [
    "urls"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_mapbox_docs_tool(query, limit)

Search Mapbox documentation by keyword or natural language query. Searches across API reference, GL JS, Help Center, Style Spec, Studio, Search JS, iOS/Android Maps and Navigation SDKs, and Tilesets. Returns ranked results with titles, URLs, and descriptions. Use get_document_tool to fetch the full content of a result page.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Search query for Mapbox documentation (e.g. \"add a marker\", \"camera animation\", \"geocoding API\")."
    },
    "limit": {
      "default": 5,
      "description": "Maximum number of results to return (1–20, default 5).",
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    }
  },
  "required": [
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本3 个工具
已验证未记录版本3 个工具