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

# MCP Integration

> Connect Gloo AI documentation to your AI tools with the Model Context Protocol.

The [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) is an open standard that lets AI tools search external data sources directly. Gloo AI hosts an MCP server for our documentation, so tools like Claude, Cursor, VS Code, and ChatGPT can look up our APIs, models, and platform docs while generating responses — no copy-pasting or web searching required.

**MCP Server URL:**

```
https://docs.gloo.com/mcp
```

## Quick Setup

The fastest way to connect is from the contextual menu at the top-right of any docs page:

* **Connect to Cursor** — one-click MCP install
* **Connect to VS Code** — one-click MCP install
* **Copy MCP server URL** — for pasting into any MCP-compatible tool
* **Copy MCP install command** — copies `npx add-mcp` for terminal-based install

Or follow the step-by-step instructions below for your preferred tool.

## Claude Code

```bash theme={null}
claude mcp add --transport http gloo-ai-docs https://docs.gloo.com/mcp
```

Verify the connection:

```bash theme={null}
claude mcp list
```

Claude Code will now search Gloo AI documentation when answering questions about the platform, models, APIs, and integration patterns.

## Cursor

<Steps>
  <Step title="Open MCP settings">
    Use <kbd>Command</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> on Windows) to open the command palette, then search for **Open MCP settings**.
  </Step>

  <Step title="Add the Gloo AI MCP server">
    In `mcp.json`, add:

    ```json theme={null}
    {
      "mcpServers": {
        "gloo-ai-docs": {
          "url": "https://docs.gloo.com/mcp"
        }
      }
    }
    ```
  </Step>

  <Step title="Test the connection">
    In Cursor's chat, ask "What models does Gloo AI support?" — Cursor should search the docs via MCP and return an accurate answer.
  </Step>
</Steps>

## VS Code

Create a `.vscode/mcp.json` file in your project:

```json theme={null}
{
  "servers": {
    "gloo-ai-docs": {
      "type": "http",
      "url": "https://docs.gloo.com/mcp"
    }
  }
}
```

<Tip>
  You can also use the **Connect to VS Code** option in the contextual menu at the top of any docs page for one-click setup.
</Tip>

## Claude

<Steps>
  <Step title="Open Claude settings">
    Navigate to the [Connectors](https://claude.ai/settings/connectors) page in Claude settings.
  </Step>

  <Step title="Add the Gloo AI MCP server">
    Select **Add custom connector** and configure:

    * **Name**: `Gloo AI Docs`
    * **URL**: `https://docs.gloo.com/mcp`
  </Step>

  <Step title="Use in conversations">
    When chatting with Claude, select the attachments button (plus icon) and choose the Gloo AI Docs connector. Claude will search our documentation to answer your questions.
  </Step>
</Steps>

## llms.txt

Gloo AI documentation is also available as standardized text files for direct AI consumption:

| File              | URL                                   | Description                                                   |
| :---------------- | :------------------------------------ | :------------------------------------------------------------ |
| **llms.txt**      | `https://docs.gloo.com/llms.txt`      | Structured index of all documentation pages with descriptions |
| **llms-full.txt** | `https://docs.gloo.com/llms-full.txt` | Complete documentation content as a single file               |

These files follow the [llms.txt standard](https://llmstxt.org/) and work with any AI tool that accepts URL-based context.

## Choosing the Right Approach

| Scenario                                  | Recommended       | Why                                                       |
| :---------------------------------------- | :---------------- | :-------------------------------------------------------- |
| Building with Gloo AI APIs in your editor | **MCP**           | Your AI assistant can search docs on demand as you code   |
| Asking an AI assistant about Gloo AI      | **MCP**           | Searches current docs instead of relying on training data |
| Feeding full docs into a single prompt    | **llms-full.txt** | All documentation in one file for maximum context         |
| Finding a specific docs page to read      | **llms.txt**      | Browse the page index and fetch what you need             |
