> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerzero.network/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server for LayerZero Docs

> Connect AI tools directly to LayerZero documentation using the Model Context Protocol (MCP). Search docs in real-time from Cursor, VS Code, Claude, ChatGPT, and more.

MCP (Model Context Protocol) is an open protocol that standardizes how AI tools connect to external data sources. LayerZero documentation includes a hosted MCP server that any compatible AI tool can query in real-time.

## MCP server

```
https://docs.layerzero.network/mcp
```

Any MCP-compatible AI tool (Claude Code, Cursor, VS Code Copilot, Windsurf, ChatGPT, Codex, and others) can connect to this server and search LayerZero documentation while generating responses. The AI determines when to search based on conversation context -- no manual triggering needed.

## How MCP differs from web search

|             | MCP                                  | Web Search                            |
| :---------- | :----------------------------------- | :------------------------------------ |
| Source      | Current indexed docs directly        | Whatever search engines have crawled  |
| Freshness   | Updates with the latest deployment   | May be stale                          |
| Noise       | Only LayerZero documentation content | Includes SEO-ranked unrelated results |
| Integration | Inline during AI response generation | Separate step                         |

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

<Columns cols={3}>
  <Card title="Cursor / VS Code" icon="code" href="/v2/tools/mcp/ide-setup#ides">
    Use the contextual menu on any docs page, or configure manually.
  </Card>

  <Card title="Claude Code" icon="terminal" href="/v2/tools/mcp/ide-setup#ai-assistants">
    One command to add the server to your CLI.
  </Card>

  <Card title="All tools" icon="wrench" href="/v2/tools/mcp/ide-setup">
    Step-by-step setup for every supported IDE and AI tool.
  </Card>
</Columns>

## 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

| Scope             | Limit                 |
| :---------------- | :-------------------- |
| Per user (IP)     | 200 requests / hour   |
| Per site (domain) | 1,000 requests / hour |

## Contextual menu

Every page on the LayerZero docs includes a contextual menu (floating `Copy 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/mcp` to 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.

<Tip>
  The fastest way to get started is to visit any docs page and use the contextual menu to connect your IDE directly.
</Tip>

## Next steps

See the [IDE Setup Guide](/v2/tools/mcp/ide-setup) for step-by-step instructions for every supported tool.
