Memberikan akses instan bagi AI assistant ke dokumentasi Mapbox, referensi API, spesifikasi style, dan panduan SDK.
Juga dikenal sebagai mapbox/mcp-docs-server, @mapbox/mcp-docs-server
- Stars
- 1
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- 0.4.0
- Commit terakhir
- 11 Nov 2026
- Lisensi
- MIT
Apa itu Mapbox Docs MCP?
Mapbox Docs adalah MCP server. Memberikan akses instan bagi AI assistant ke dokumentasi Mapbox, referensi API, spesifikasi style, dan panduan SDK.
Ringkasan dibuat dari README proyek
Tentang Mapbox Docs MCP server
Fungsi utama dari MCP server ini adalah memberikan akses langsung ke dokumentasi Mapbox dan referensi teknis bagi AI assistant. Developer yang menggunakan Claude Desktop, Claude Code, Cursor, atau VS Code dapat mengintegrasikan tool ini untuk mengambil referensi API, panduan SDK, dan spesifikasi style tanpa memerlukan Mapbox access token. Server ini dapat dijalankan melalui beberapa metode termasuk hosted endpoint, menggunakan npx, Docker container, atau membangunnya dari local source code.
Server ini menyediakan tool spesifik seperti search_mapbox_docs_tool untuk menemukan halaman yang relevan dan get_document_tool untuk mengambil konten lengkap dari sebuah URL. Untuk tugas yang lebih besar, batch_get_documents_tool memungkinkan pengambilan hingga 20 halaman sekaligus. Server ini juga menyediakan berbagai resource seperti mapbox-api-reference, mapbox-sdk-docs, dan mapbox-style-layers, yang memungkinkan AI membaca informasi mendalam tentang REST endpoint, client library, dan properti layer sesuai kebutuhan.
Apa yang bisa Anda lakukan dengannya
- 1Mencari dokumentasi teknisTemukan informasi spesifik mengenai animasi kamera atau contoh API geocoding di dalam ekosistem Mapbox.
- 2Mengambil halaman dokumentasi lengkapAmbil konten lengkap dari halaman dokumentasi Mapbox menggunakan URL spesifiknya.
- 3Melakukan pengambilan dokumentasi secara massalKumpulkan hingga 20 halaman dokumentasi Mapbox yang berbeda secara efisien dalam satu request.
- 4Mengakses referensi SDK dan APIBaca informasi mendetail tentang endpoint REST API, parameter, dan rate limits.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal Mapbox Docs MCP
Format diverifikasi 10 Nov 2026Instal Mapbox Docs MCP di Claude Code
$ claude mcp add mcp-docs-server -- npx -y @mapbox/mcp-docs-serverInstal Mapbox Docs MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-docs-server": {
"command": "npx",
"args": [
"-y",
"@mapbox/mcp-docs-server"
]
}
}
}Instal Mapbox Docs MCP di VS Code
.vscode/mcp.json
{
"servers": {
"mcp-docs-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mapbox/mcp-docs-server"
]
}
}
}Instal Mapbox Docs MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"mcp-docs-server": {
"command": "npx",
"args": [
"-y",
"@mapbox/mcp-docs-server"
]
}
}
}Instal Mapbox Docs MCP di Codex
~/.codex/config.toml
[mcp_servers.mcp-docs-server] command = "npx" args = ["-y", "@mapbox/mcp-docs-server"]
Instal Mapbox Docs MCP di Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"mcp-docs-server": {
"command": "npx",
"args": [
"-y",
"@mapbox/mcp-docs-server"
]
}
}
}Pengecekan otomatis
Berjalan 14 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkaumapbox/mcp-docs-server is public and reachablegithub.com/mapbox/mcp-docs-server ↗Lolos
- Paket menyebut repo ini sebagai sumbernya@mapbox/mcp-docs-server names mapbox/mcp-docs-server as sourcenpmjs.com/package/@mapbox/mcp-docs-server ↗Lolos
- Provenance build (atestasi Sigstore)No build attestation published for this releaseTidak diperiksa
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-11-11github.com/mapbox/mcp-docs-server ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerNo popular package one edit away from @mapbox/mcp-docs-serverLolos
- Tidak ada advisory kritis di paket maupun dependensinyathe package checked; no critical advisoryosv.dev ↗Lolos
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote menjawab handshake MCPinitialize answered with protocol 2025-06-18 in 325 msLolos
README
Lihat di GitHubMapbox MCP Documentation Server
A Model Context Protocol (MCP) server that gives AI assistants instant access to Mapbox documentation and reference materials — no Mapbox access token required.
Quick Start
Hosted (no install required)
Connect directly to the hosted endpoint — nothing to install or maintain:
Claude Code / Claude Desktop / Cursor / VS Code
{
"mcpServers": {
"mapbox-docs": {
"url": "https://mcp-docs.mapbox.com/mcp"
}
}
}
npx (runs locally, no install)
Claude Code — run claude mcp add:
claude mcp add mapbox-docs -- npx -y @mapbox/mcp-docs-server
Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"mapbox-docs": {
"command": "npx",
"args": ["-y", "@mapbox/mcp-docs-server"]
}
}
}
Cursor / VS Code — add the same mcpServers block to your editor's MCP settings file.
Docker
Build the image:
docker build -t mapbox/mcp-docs-server .
Or pull from the registry:
docker pull mapbox/mcp-docs-server
Claude Desktop / Cursor / VS Code — configure your MCP client to run the container:
{
"mcpServers": {
"mapbox-docs": {
"command": "docker",
"args": ["run", "--rm", "-i", "mapbox/mcp-docs-server"]
}
}
}
Local (from source)
git clone https://github.com/mapbox/mcp-docs-server.git
cd mcp-docs-server
npm install
npm run build
Claude Desktop / Cursor / VS Code:
{
"mcpServers": {
"mapbox-docs": {
"command": "node",
"args": ["/absolute/path/to/mcp-docs-server/dist/esm/index.js"]
}
}
}
Tools
get_document_tool — Fetches the full content of a specific Mapbox documentation page by URL. Use this to follow a link from a resource and retrieve the complete page content.
Example prompts:
- "What Mapbox APIs are available?"
- "How do I add a custom layer to a Mapbox style?"
- "What's the latest Mapbox GL JS version?"
batch_get_documents_tool — Fetches multiple Mapbox documentation pages in a single call (max 20). More efficient than calling get_document_tool multiple times. Failed pages include an error message rather than failing the whole batch.
search_mapbox_docs_tool — Searches Mapbox documentation across API reference, GL JS, Help Center, Style Spec, Studio, Search JS, iOS/Android Maps and Navigation SDKs, and Tilesets, returning ranked page URLs and descriptions. Use this to find relevant documentation before fetching full pages with get_document_tool or batch_get_documents_tool.
Example prompts:
- "Find docs about camera animation"
- "Search for geocoding API examples"
- "What documentation exists for custom layers?"
Resources
MCP resources expose reference data that AI assistants can read on demand:
| Resource URI | Contents |
|---|---|
resource://mapbox-api-reference |
REST API reference docs (endpoints, parameters, rate limits) |
resource://mapbox-sdk-docs |
SDK and client library docs (iOS, Android, Flutter, web) |
resource://mapbox-guides |
Tutorials, how-tos, and guides |
resource://mapbox-examples |
Code examples, API playgrounds, and interactive demos |
resource://mapbox-reference |
Tilesets, data products, accounts, and pricing reference |
resource://mapbox-style-layers |
Style layer reference (paint/layout properties for all layer types) |
resource://mapbox-streets-v8-fields |
Mapbox Streets v8 tileset field reference |
resource://mapbox-token-scopes |
All available Mapbox token scopes with descriptions |
resource://mapbox-layer-type-mapping |
Mapping of Mapbox layer types to their properties |
Development
Prerequisites
- Node.js >= 22
- npm
Setup
git clone https://github.com/mapbox/mcp-docs-server.git
cd mcp-docs-server
npm install
Commands
npm run build # Compile TypeScript (ESM + CJS)
npm test # Run test suite (vitest)
npm run lint # ESLint
npm run format # Prettier check
npm run format:fix # Prettier auto-fix
npm run inspect:build # Launch MCP Inspector against built server
npm run inspect:dev # Launch MCP Inspector against source (tsx)
Architecture
The server is a TypeScript MCP server using @modelcontextprotocol/sdk with a dual ESM/CJS build via tshy.
- Tools extend
BaseTool<InputSchema, OutputSchema>insrc/tools/ - Resources extend
BaseResourceinsrc/resources/ - No Mapbox access token required for documentation tools
- HTTP requests use a shared
httpPipelinewith 1-hour caching
Creating a New Tool
- Create a directory
src/tools/my-tool/ - Add
MyTool.input.schema.ts(Zod schema),MyTool.output.schema.ts, andMyTool.ts(extendsBaseTool) - Register in
src/tools/toolRegistry.ts - Add tests in
test/tools/my-tool/
Contributing
Please read CONTRIBUTING.md and VISION.md before submitting a pull request. Contributors using AI coding assistants should also review:
- CLAUDE.md — for Claude Code
- AGENTS.md — for other AI coding assistants (Cursor, Copilot, Aider, etc.)
License
MIT — see LICENSE
Pertanyaan tentang Mapbox Docs MCP
Bagaimana cara menambahkan Mapbox Docs MCP ke Claude Code?
Jalankan claude mcp add mcp-docs-server -- npx -y @mapbox/mcp-docs-server di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan Mapbox Docs MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Bagaimana cara saya mencari dokumentasi Mapbox yang spesifik?
Anda dapat menggunakan search_mapbox_docs_tool untuk mencari di seluruh referensi API, GL JS, Help Center, Style Spec, dan lainnya.
Apakah saya bisa mengambil beberapa halaman dokumentasi sekaligus?
Ya, batch_get_documents_tool memungkinkan Anda mengambil hingga 20 halaman dokumentasi Mapbox dalam satu kali pemanggilan.