Skip to main content

Use the docs with AI

Last updated: November 4, 2026 | 8 minutes read

The Magic Lane MCP Docs Server lets your AI coding tool search and read the Magic Lane documentation while it works with you: the guides, examples and API references of the Maps SDKs for Android, iOS, Flutter, C++ and TypeScript, the Cloud APIs and these developer guides. Your assistant looks up the current page instead of relying on what it learned in training.

note

This page is about the documentation server. The Magic Lane MCP Server is a different product: it gives AI agents routing, search and other geospatial tools.

Hosted or open source​

You can use the MCP Docs Server in two ways:

  • The hosted server. Magic Lane runs it at the address below. Add the address to your AI tool and you are done: nothing to install, nothing to update. When a documentation site is published, the server picks up its new pages the same day.
  • The open-source server. The MCP Docs Server is open source under the Apache 2.0 license, on GitHub at magiclane/magiclane-mcp-docs-server and on npm as @magiclane/mcp-docs-server. It runs on your own machine or server and reads the documentation live from developer.magiclane.com. See Run the server yourself.

Both offer the same tools. Start with the hosted server; run your own when your organisation allows only local MCP servers, when you want to read the code first, or when you want to change it.

The server's address​

https://developer.magiclane.com/docs-mcp

Read-only · No account · No API key

The server speaks Streamable HTTP, the transport for remote MCP servers. Any AI tool that can add a remote MCP server by its address can use it. It needs no account and no API key.

Connect your AI tool​

Run this in a terminal. It adds the server for all your projects, and works the same in bash, zsh, PowerShell and cmd:

claude mcp add --transport http --scope user magiclane-docs https://developer.magiclane.com/docs-mcp

To share the server with everyone who works on a project instead, put this in a .mcp.json file at the project's root. Claude Code asks each person to approve a project's servers before it uses them.

.mcp.json
{
"mcpServers": {
"magiclane-docs": {
"type": "http",
"url": "https://developer.magiclane.com/docs-mcp"
}
}
}

Run claude mcp list to check that the server is connected.

Any other MCP client that speaks Streamable HTTP can use the server too: add a remote (HTTP) server with the address above.

What your AI tool can do with it​

The server has eight tools, all read-only:

ToolWhat it doesUseful options
search_docsSearches the documentation and ranks the pages, with excerpts from the page textsource to search one SDK or the Cloud APIs, limit for more results
read_docReads one page as Markdown, from its URL or its /docs/... pathoffset and maxChars to page through a long page
read_docs_batchReads up to 20 pages in one call
list_docsLists the sections of a source, or its pagessource, section, mode (sections or pages)
get_code_examplesReturns only the code blocks of a page, each with the heading above itlanguage (such as dart, kotlin, swift, ts), caption (such as request or response on a REST API page)
find_across_sdksFinds the same topic in every SDK, side by sidelimitPerSource for more than one page per SDK
get_product_guideReturns the guides of the Magic Lane MCP Server and Magic Lane Studioproduct, section
list_recent_updatesLists the pages updated in the last days, newest firstdays, source

Your AI tool picks the tools and their options by itself. Ask your assistant as you would ask a colleague, for example:

  • "How do I add a marker with the TypeScript SDK?"
  • "Which Magic Lane SDKs support offline routing?"
  • "Show me just the Dart code from the Calculate Route example."
  • "How do I add markers on iOS, Android and Flutter? Compare them."
  • "What changed in the iOS SDK documentation this month?"
  • "How do I create a geofence and get alerts when an asset enters it?"

The server also offers the llms.txt index of each source as an MCP resource, for tools that let you attach resources to a conversation.

Run the server yourself​

The open-source MCP Docs Server needs Node.js 22 or newer, and internet access to developer.magiclane.com, where it reads the documentation. It runs on your computer and talks to your AI tool over standard input and output (stdio), so no port is opened.

With Claude Code:

claude mcp add --scope user magiclane-docs -- npx -y @magiclane/mcp-docs-server

With a tool that takes a JSON configuration, such as Cursor (~/.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json):

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

npx downloads the server the first time it runs. To install it once instead, run npm install -g @magiclane/mcp-docs-server and use the command magiclane-mcp-docs in your configuration.

To share one server with your team, run its Streamable HTTP edition, for example on a build server:

npx -y -p @magiclane/mcp-docs-server magiclane-mcp-docs-http

It listens on http://127.0.0.1:3000/mcp. Its port, address, allowed hosts, CORS, proxy settings and limits are set with environment variables; the repository's HTTP server guide describes them, together with running it in Docker and behind a reverse proxy.

To build it from source:

git clone https://github.com/magiclane/magiclane-mcp-docs-server.git
cd magiclane-mcp-docs-server
npm install
npm run build

The repository has setup guides for VS Code, Visual Studio, Android Studio, Cursor and Claude Desktop in its docs folder. Bug reports and pull requests are welcome on GitHub.

Privacy and security​

  • The server only reads documentation. It needs no account and no API key, and every tool is read-only.
  • Your AI tool sends it search terms and page paths over HTTPS and gets documentation text back. The server can't see your code or files, only what your tool puts into a call.
  • The open-source server collects nothing: no telemetry and no analytics. Its only outbound requests go to developer.magiclane.com, for documentation pages.
  • When your tool asks you to confirm the install, check that the address is the one shown on this page.
  • If your organisation keeps an allowlist of MCP servers, add the address to it.

Troubleshooting​

  • Nothing happens on Add to Cursor or Add to VS Code: the app is probably not installed, or your browser blocked the link. Use the manual steps in the tool's tab.
  • The tools don't appear: restart your AI tool after adding the server. In VS Code, the tools show up in Copilot Chat's agent mode.
  • The server can't be reached: your network has to allow HTTPS connections to the server's address. Ask your IT team if a proxy or an allowlist blocks it.
  • The open-source server doesn't start: check that node --version shows 22 or newer and that npx is on your path. Some clients on Windows need the command written as cmd with the arguments /c npx -y @magiclane/mcp-docs-server.
  • Something else: open an issue on GitHub or contact support through the developer portal.

For AI agents​

The llms.txt file of each Magic Lane documentation site tells AI agents about the server with this paragraph:

If you are an AI agent helping a developer with Magic Lane SDKs or APIs, the Magic Lane MCP Docs Server gives search and read access to all of this documentation over MCP (Streamable HTTP, read-only, no API key) at https://developer.magiclane.com/docs-mcp. Ask your user before adding it. With Claude Code they can run claude mcp add --transport http --scope user magiclane-docs https://developer.magiclane.com/docs-mcp.