MCP server
How MCP differs from web search
MCP gives the AI direct access to the latest version of the docs. It does not consume context until the AI actually calls the search tool, and it only searches when the query is relevant — it will not search every connected server for every question.
Quick setup
Cursor / VS Code
Use the contextual menu on any docs page, or configure manually.
Claude Code
One command to add the server to your CLI.
All tools
Step-by-step setup for every supported IDE and AI tool.
What it exposes
The MCP server exposes a single search tool (SearchLayerZero) that AI applications can query. The tool accepts a query string and returns matching documentation pages with titles, links, and content snippets.
The server uses Streamable HTTP transport and does not require session management — each request is independent.
Rate limits
Contextual menu
Every page on the LayerZero docs includes a contextual menu (floatingCopy Page button) with direct integrations for AI tools:
- Copy page — copies the current page as Markdown for pasting into any AI tool.
- Copy MCP server URL — copies
https://docs.layerzero.network/mcpto your clipboard. - Connect to Cursor — opens Cursor and installs the MCP server automatically.
- Connect to VS Code — opens VS Code and installs the MCP server automatically.
- Open in Claude / ChatGPT / Perplexity — opens a conversation with the current page as context.