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

# Connect Claude Desktop to AiLunaPro (MCP)

> Connect Claude Desktop to the AiLunaPro MCP server with the mcp-remote bridge, pass your key as a bearer header and verify the tools appear.

Claude Desktop's built-in **Connectors** screen requires OAuth sign-in, which AiLunaPro does not offer yet. Until it does, connect Claude Desktop through [`mcp-remote`](https://www.npmjs.com/package/mcp-remote), a small bridge that runs on your computer and sends your MCP key to AiLunaPro.

## Prerequisites

* MCP access for your organisation and the **owner** role.
* An MCP key from **Settings → Organization → AI client access (MCP) → Create key**.
* Claude Desktop installed and signed in.
* [Node.js](https://nodejs.org) 18 or later. Check:

  ```bash theme={null}
  node --version
  ```

## Set up

**1. Open the configuration file**

In Claude Desktop, open **Settings → Developer → Edit Config**. This opens `claude_desktop_config.json`:

| System | Path |
| - | - |
| Windows | `%APPDATA%\Claude\claude_desktop_config.json` |
| macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |

**2. Add the AiLunaPro server**

Add `ailunapro` inside `mcpServers`. Replace `alp_mcp_YOUR_KEY` with your key and keep the word `Bearer` and the space after it.

```json claude_desktop_config.json theme={null}
{
  "mcpServers": {
    "ailunapro": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.ailunapro.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer alp_mcp_YOUR_KEY"
      }
    }
  }
}
```

> [!WARNING]
>
> Write `Authorization:${AUTH_HEADER}` with **no spaces** around the colon. Claude Desktop splits arguments on spaces, so the space lives inside `AUTH_HEADER` instead.

> [!NOTE]
>
> This file holds your key in plain text. Do not share it or put it in a synced folder. If it leaks, [revoke the key](https://developers.ailunapro.com/developers/security/manage-keys.md).

**3. Restart Claude Desktop**

Quit Claude Desktop completely (on Windows, also from the system tray) and open it again.

**4. Check the connection**

In a new chat, open the tools menu. You should see **ailunapro** with three tools: `summary_draft_from_result`, `audit_unanswered_required_count` and `docs_search_product`.

![Claude Desktop tools menu showing the ailunapro server](https://mintlify.s3.us-west-1.amazonaws.com/ailunapro-mcp/images/mcp/claude-desktop-tools-light.png)

**5. Ask a question**

Start with a test that needs no audit:

```text theme={null}
Use the AiLunaPro docs search to tell me how to share a report with stakeholders.
```

The client runs `docs_search_product` and quotes AiLunaPro's product help about reports. If you see that answer, the connection works.

Then ask about your own audit:

```text theme={null}
Use AiLunaPro to summarise my latest audit result for my leadership team.
```

Click **Allow** when Claude asks to use the AiLunaPro tool.

> [!NOTE]
>
> "No matching audit was found for your account" means your organisation has no completed Audit Express yet. Complete one in AiLunaPro, then ask again.

## Troubleshooting

> [accordion] ailunapro does not appear in the tools menu
>
> * Check that the JSON is valid: one missing comma stops every server from loading. Paste the file into a JSON validator.
> * Check that `node --version` works in a new terminal. If not, install Node.js and restart your computer.
> * Open **Settings → Developer**. A server marked *failed* shows its error log there.

> [accordion] The log shows 401 Unauthorized
>
> The key is wrong, revoked, or `Bearer ` is missing in `AUTH_HEADER`. The value must be exactly `Bearer alp_mcp_…`, with one space after `Bearer`.

> [accordion] The log shows 404
>
> MCP is not enabled for your organisation. [Contact support](https://developers.ailunapro.com/developers/support.md) to request access.

> [accordion] Why not use Settings → Connectors → Add custom connector?
>
> That screen signs in with OAuth. AiLunaPro uses MCP keys today, so the connector screen cannot complete sign-in. Use `mcp-remote` as shown above.

More cases: [Troubleshooting](https://developers.ailunapro.com/developers/troubleshooting.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.