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

# MCP Examples

> Example uses of Lexful via MCP.

This page collects example configurations and prompts that use Lexful through MCP.

<Callout type="warning">
  MCP examples are provided as part of a <b>preview</b> experience. Client UIs and settings paths can change, so treat these as guides and adapt to the latest version of your tools.
</Callout>

## Example: Claude (claude.ai)

Claude’s chat interface supports MCP via **Connectors**.

1. Go to **Settings → Connectors**.
2. Click **Add custom connector**.
3. Enter a name (for example, `Lexful`) and paste your MCP URL:

```text theme={null}
https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}
```

4. Click **Add** and complete the OAuth flow when prompted.
5. Lexful will then be available as a connector in your chats.

## Example: Claude Desktop

Claude Desktop supports remote MCP servers through the same **Connectors** UI as claude.ai.

1. Go to **Settings → Connectors**.
2. Click **Add custom connector**.
3. Enter a name (for example, `Lexful`) and paste your MCP URL:

```text theme={null}
https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}
```

4. Complete the OAuth flow when prompted.
5. Restart Claude Desktop so it picks up the new connector.

<Callout>
  If you prefer to configure via JSON, you can use the <code>mcp-remote</code> wrapper in <code>claude\_desktop\_config.json</code>:

  ```json theme={null}
  {
    "mcpServers": {
      "lexful": {
        "command": "npx",
        "args": ["mcp-remote", "https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}"]
      }
    }
  }
  ```
</Callout>

## Example: Claude Code

Claude Code has built-in MCP support. Add Lexful as a server from the CLI:

```bash theme={null}
claude mcp add --transport http lexful https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}
```

By default this applies to the current project. Use `--scope user` to make it available globally, or `--scope project` to share it with your team via `.mcp.json`.

You can also manage MCP servers interactively by typing `/mcp` inside a Claude Code session.

## Example: Cursor

1. Open **Cursor Settings** (`Cmd/Ctrl + ,`).
2. Navigate to **Tools & MCP**.
3. Click **New MCP Server** and add the following configuration:

```json theme={null}
{
  "mcpServers": {
    "lexful": {
      "url": "https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}"
    }
  }
}
```

This can also be added directly to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project-level).

## Example: ChatGPT

ChatGPT supports MCP via **Apps & Connectors** on eligible plans (Plus, Pro, Team, Enterprise, Edu).

1. Ensure **Developer Mode** is enabled under **Settings → Apps & Connectors → Advanced settings**.
2. Click **Add new connector**.
3. Enter a name (for example, `Lexful`) and paste your MCP URL:

```text theme={null}
https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}
```

4. Set the auth mode to **OAuth** and complete the authorization when prompted.
5. In a new chat, enable the connector via the apps menu.

## Example: Microsoft Copilot Studio

Copilot Studio supports MCP as a tool type for agents.

<Steps>
  <Step title="Navigate to the Agents page">
    In Copilot Studio, go to the <b>Agents</b> page. Create a new agent or select an existing one.
  </Step>

  <Step title="Open the Tools tab">
    Inside your agent, click the <b>Tools</b> tab, then click <b>+ Add a tool</b>.
  </Step>

  <Step title="Select Model Context Protocol">
    In the "Add tool" dialog, select <b>Model Context Protocol</b> under "Create new."
  </Step>

  <Step title="Configure the Lexful MCP server">
    Fill in the following details:

    <ul>
      <li><b>Server name:</b> <code>Lexful MCP</code></li>
      <li><b>Server description:</b> <code>Lexful is our IT documentation and asset management platform</code></li>
      <li><b>Server URL:</b></li>
    </ul>

    ```text theme={null}
    https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}
    ```

    <ul>
      <li><b>Authentication:</b> Select <b>OAuth 2.0</b>, then choose <b>Dynamic discovery</b> as the type.</li>
    </ul>
  </Step>

  <Step title="Create and enable the tool">
    Click <b>Create</b>. The tool will appear in your agent's Tools list. Ensure the <b>Enabled</b> toggle is on, then test in the "Test your agent" panel.
  </Step>
</Steps>

## Example: VS Code

VS Code supports MCP servers through GitHub Copilot’s Agent mode. Add a `.vscode/mcp.json` file to your workspace:

```json theme={null}
{
  "servers": {
    "lexful": {
      "type": "http",
      "url": "https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}"
    }
  }
}
```

Reload VS Code so the change takes effect. Lexful tools will be available when using Copilot in Agent mode.

## Example: Generic MCP client

For other MCP-aware tools that accept a JSON configuration, the standard format is:

```json theme={null}
{
  "mcpServers": {
    "lexful": {
      "url": "https://api.us.lexful.app/mcp/{YOUR_ACCOUNT_ID}"
    }
  }
}
```

Refer to your client’s documentation for the exact config file location and key names, as these vary between tools.
