> ## 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.

# Quickstart: connect an AI client to AiLunaPro in 5 minutes

> Create an MCP key, connect Claude Code and ask AiLunaPro your first question in about five minutes.

This guide uses Claude Code because it needs a single command. The key you create works the same way in every other [supported client](https://developers.ailunapro.com/developers/index.md#connect-a-client).

## Prerequisites

* Your organisation has MCP access (the *AI client access (MCP)* card appears in **Settings → Organization**).
* You are an **owner** of that organisation.
* [Claude Code](https://code.claude.com) is installed and signed in. Check with `claude --version`.
* You have completed at least one Audit Express, so the audit tools return data.

**1. Create an MCP key**

1. Sign in at [audit.ailunapro.com](https://audit.ailunapro.com).
2. Open **Settings → Organization** and scroll to **AI client access (MCP)**.
3. Click **Create key**, then **Copy key**.

> [!WARNING]
>
> The key is shown **once**. AiLunaPro stores only a fingerprint of it, so it cannot be shown again. If you lose it, create a new key and revoke the old one.

![The MCP card showing a newly created key and the Copy key button](https://mintlify.s3.us-west-1.amazonaws.com/ailunapro-mcp/images/mcp/card-key-created-light.png)

**2. Store the key in an environment variable**

Keeping the key in a variable means it never appears in a file you might share.

> [tab] Windows (PowerShell)
>
> ```powershell theme={null}
> $env:AILUNAPRO_MCP_KEY = Read-Host -Prompt 'Paste your AiLunaPro MCP key'
> ```

> [tab] macOS / Linux
>
> ```bash theme={null}
> read -s -p "Paste your AiLunaPro MCP key: " AILUNAPRO_MCP_KEY && export AILUNAPRO_MCP_KEY && echo
> ```

The variable lasts for the current terminal window. Run the next step in the same window.

**3. Add AiLunaPro to Claude Code**

> [tab] Windows (PowerShell)
>
> ```powershell theme={null}
> claude mcp add --transport http ailunapro https://api.ailunapro.com/mcp --header "Authorization: Bearer $env:AILUNAPRO_MCP_KEY"
> ```

> [tab] macOS / Linux
>
> ```bash theme={null}
> claude mcp add --transport http ailunapro https://api.ailunapro.com/mcp --header "Authorization: Bearer $AILUNAPRO_MCP_KEY"
> ```

Expected output:

```text theme={null}
Added HTTP MCP server ailunapro with URL: https://api.ailunapro.com/mcp to local config
```

**4. Check the connection**

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

Expected output includes:

```text theme={null}
ailunapro: https://api.ailunapro.com/mcp (HTTP) - ✓ Connected
```

**5. Run a first test that needs no audit**

Start Claude Code with `claude` and type:

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

Claude Code asks permission to run `docs_search_product`. Allow it. The answer quotes AiLunaPro's product help about reports. If you see this, the key, the endpoint and the client all work.

**6. Ask about your own audit**

Once your organisation has a completed Audit Express, type:

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

Claude Code asks permission to run `summary_draft_from_result`, then writes a summary from your score, maturity level and findings.

> [!NOTE]
>
> No completed Audit Express yet? You get "No matching audit was found for your account". That is expected: complete an Audit Express in AiLunaPro, then ask again.

## If something goes wrong

| What you see | Cause | Fix |
| - | - | - |
| `✗ Failed to connect` with HTTP 401 | Key missing, mistyped or revoked | Re-run step 2 and step 3 in the same window; create a new key if needed |
| `✗ Failed to connect` with HTTP 404 | MCP is not enabled for your organisation | [Contact support](https://developers.ailunapro.com/developers/support.md) to request access |
| "No matching audit was found for your account" | You have no completed Audit Express yet | Complete an Audit Express in AiLunaPro, then ask again |

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

## Next steps

> [card] [Tool reference](https://developers.ailunapro.com/developers/reference/tools/index.md)
>
> Inputs, outputs and example prompts for each tool.

> [card] [Manage keys](https://developers.ailunapro.com/developers/security/manage-keys.md)
>
> Create one key per person and device, revoke keys you no longer use.


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