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

# Setup MCP Access to Docs

> Connect TWICE Docs to your AI tools via the Model Context Protocol (MCP) server for real-time documentation access.

## What is MCP?

The Model Context Protocol (MCP) is an open protocol that creates standardized connections between AI applications and external services like documentation. TWICE Docs automatically provides an MCP server that allows AI tools to query our documentation in real-time.

## Your MCP Server URL

TWICE Docs MCP server is available at:

```
https://twicecommerce.mintlify.app/mcp
```

Copy this URL to connect it to your preferred AI tools below.

## Connect TWICE Docs to your IDE via MCP

Find examples IDE specific examples below.

<Tabs>
  <Tab title="Claude Desktop">
    Connect to Claude Desktop

    <Steps>
      <Step title="Open Claude Settings">
        Navigate to the **Connectors** page in the Claude settings.
      </Step>

      <Step title="Add Custom Connector">
        Select **Add custom connector**.
      </Step>

      <Step title="Configure TWICE Docs">
        Add the following details:

        * **Name**: TWICE Docs
        * **URL**: `https://twicecommerce.mintlify.app/mcp`
      </Step>

      <Step title="Save and Use">
        Select **Add**. When using Claude, click the attachments button (plus icon) and select **TWICE Docs** to query the documentation.
      </Step>
    </Steps>

    <Tip>
      See the [Model Context Protocol documentation](https://modelcontextprotocol.io) for more details.
    </Tip>
  </Tab>

  <Tab title="Cursor">
    Connect to Cursor

    <Steps>
      <Step title="Open MCP Settings">
        Use `Command + Shift + P` (`Ctrl + Shift + P` on Windows) to open the command palette.

        Search for **"Open MCP settings"** and select **Add custom MCP**. This opens the `mcp.json` file.
      </Step>

      <Step title="Add TWICE Docs Server">
        In `mcp.json`, add the following configuration:

        ```json theme={null}
        {
          "mcpServers": {
            "TWICE Docs": {
              "url": "https://twicecommerce.mintlify.app/mcp"
            }
          }
        }
        ```
      </Step>

      <Step title="Verify Installation">
        In the Cursor chat, ask **"What tools do you have available?"**

        Cursor should display the TWICE Docs MCP server as an available tool.
      </Step>
    </Steps>

    <Tip>
      See [Installing MCP servers](https://docs.cursor.com/context/context-mcp) in the Cursor documentation for more details.
    </Tip>
  </Tab>

  <Tab title="VS Code">
    Connect to VS Code

    <Steps>
      <Step title="Create MCP Configuration File">
        Create a `.vscode/mcp.json` file in your workspace.
      </Step>

      <Step title="Configure TWICE Docs Server">
        In `mcp.json`, add the following configuration:

        ```json theme={null}
        {
          "servers": {
            "TWICE Docs": {
              "type": "http",
              "url": "https://twicecommerce.mintlify.app/mcp"
            }
          }
        }
        ```
      </Step>

      <Step title="Start Server">
        Click "Start server" to activate the connection.
      </Step>
    </Steps>

    <Tip>
      See the [VS Code MCP documentation](https://code.visualstudio.com/docs) for more details.
    </Tip>
  </Tab>
</Tabs>

## What Can You Do With MCP?

Once connected, your AI tools can:

* **Search documentation**: Query TWICE Docs content directly from your AI assistant
* **Search API documentation**: Query TWICE API documentation and execute API calls directly (requires API key)
* **Get real-time answers**: Access up-to-date information about TWICE Commerce features and concepts
* **Understand context**: AI tools can reference specific documentation to provide more accurate responses
* **Save time**: No need to switch between your IDE and the documentation website

## Need Help?

<CardGroup cols={2}>
  <Card title="OS Approach" icon="book" href="/docs/concepts/os-approach">
    Learn about TWICE's MCP/OS thinking and architecture
  </Card>

  <Card title="Model Context Protocol" icon="link" href="https://modelcontextprotocol.io">
    Learn more about the MCP standard
  </Card>
</CardGroup>
