mcp-docs-server
AI access to Mapbox docs, API references, style specs, and guides. No token required.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"mcp-docs-server": {
"command": "npx",
"args": [
"@mapbox/mcp-docs-server"
]
}
}
}可執行的套件
0.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#"
}社群
證據