Use the docs with AI
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.
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
- Claude Code
- Claude
- Cursor
- VS Code
- Windsurf
- JetBrains
- Codex
- Gemini CLI
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.
{
"mcpServers": {
"magiclane-docs": {
"type": "http",
"url": "https://developer.magiclane.com/docs-mcp"
}
}
}
Run claude mcp list to check that the server is connected.
In claude.ai, open Settings › Connectors, choose Add custom connector, give it a name such as Magic Lane Docs, and paste the server's address. On Team and Enterprise plans, an Owner adds the connector for the whole organisation. A connector added on claude.ai also appears in Claude Desktop.
The button opens Cursor, which asks you to confirm the install. To add the server by hand, put this in ~/.cursor/mcp.json, or in .cursor/mcp.json for one project:
{
"mcpServers": {
"magiclane-docs": {
"url": "https://developer.magiclane.com/docs-mcp"
}
}
}
VS Code 1.100 or later, with GitHub Copilot:
On macOS and Linux you can also add it from a terminal (bash or zsh):
code --add-mcp '{"name":"magiclane-docs","type":"http","url":"https://developer.magiclane.com/docs-mcp"}'
On Windows, run MCP: Add Server from the Command Palette, choose HTTP and paste the server's address, or put this in .vscode/mcp.json in your project:
{
"servers": {
"magiclane-docs": {
"type": "http",
"url": "https://developer.magiclane.com/docs-mcp"
}
}
}
The tools are available in Copilot Chat's agent mode.
Put this in ~/.codeium/windsurf/mcp_config.json, then refresh the MCP servers in Windsurf's Cascade panel:
{
"mcpServers": {
"magiclane-docs": {
"serverUrl": "https://developer.magiclane.com/docs-mcp"
}
}
}
In your JetBrains IDE, with AI Assistant, open Settings › Tools › AI Assistant › Model Context Protocol (MCP), add a server, choose As JSON and paste:
{
"mcpServers": {
"magiclane-docs": {
"url": "https://developer.magiclane.com/docs-mcp"
}
}
}
In OpenAI Codex CLI, run:
codex mcp add magiclane-docs --url https://developer.magiclane.com/docs-mcp
Or add this to ~/.codex/config.toml:
[mcp_servers.magiclane-docs]
url = "https://developer.magiclane.com/docs-mcp"
In Gemini CLI, run:
gemini mcp add --transport http -s user magiclane-docs https://developer.magiclane.com/docs-mcp
Or add this to ~/.gemini/settings.json. Gemini CLI reads url as an SSE server, so the address goes under httpUrl:
{
"mcpServers": {
"magiclane-docs": {
"httpUrl": "https://developer.magiclane.com/docs-mcp"
}
}
}
Don't add --trust: it lets Gemini CLI call the server's tools without asking you first.
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:
| Tool | What it does | Useful options |
|---|---|---|
search_docs | Searches the documentation and ranks the pages, with excerpts from the page text | source to search one SDK or the Cloud APIs, limit for more results |
read_doc | Reads one page as Markdown, from its URL or its /docs/... path | offset and maxChars to page through a long page |
read_docs_batch | Reads up to 20 pages in one call | |
list_docs | Lists the sections of a source, or its pages | source, section, mode (sections or pages) |
get_code_examples | Returns only the code blocks of a page, each with the heading above it | language (such as dart, kotlin, swift, ts), caption (such as request or response on a REST API page) |
find_across_sdks | Finds the same topic in every SDK, side by side | limitPerSource for more than one page per SDK |
get_product_guide | Returns the guides of the Magic Lane MCP Server and Magic Lane Studio | product, section |
list_recent_updates | Lists the pages updated in the last days, newest first | days, 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 --versionshows 22 or newer and thatnpxis on your path. Some clients on Windows need the command written ascmdwith 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.