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

# MCP Setup

> Connect AI clients to the Sari MCP Server

This guide shows you how to connect AI clients to the Sari MCP Server.

## Prerequisites

Before you begin, ensure you have:

1. **Approved Sari Account** - Your registration must be approved (see [Quickstart](/quickstart))
2. **Claude Desktop** - Or another MCP-compatible client

## Claude Desktop Setup

### Using mcp-remote

Add to your Claude Desktop config file:

<Tabs>
  <Tab title="macOS">
    Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "sari-platform": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote",
            "https://mcp-server.sari-platform.com/sse"
          ]
        }
      }
    }
    ```
  </Tab>

  <Tab title="Windows">
    Edit `%APPDATA%\Claude\claude_desktop_config.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "sari-platform": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote",
            "https://mcp-server.sari-platform.com/sse"
          ]
        }
      }
    }
    ```
  </Tab>
</Tabs>

## Verify Connection

After configuring Claude Desktop:

1. Restart Claude Desktop
2. Open a new conversation
3. You should see "sari-platform" in the MCP tools list
4. Try a test query:

```
Can you search for payment APIs using the Sari platform?
```

Claude should call the `search_api_collections` tool.

## Troubleshooting

<AccordionGroup>
  <Accordion title="MCP server not appearing in Claude">
    1. Verify the config file path is correct
    2. Check JSON syntax is valid
    3. Restart Claude Desktop completely
    4. Check console logs for errors
  </Accordion>

  <Accordion title="Collection not found">
    1. Verify you have access to the collection
    2. Check the collection name spelling
    3. Use search to find available collections
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Tools Reference" icon="wrench" href="/mcp/tools">
    Learn about all available MCP tools
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    Explore the full REST API
  </Card>
</CardGroup>
