# Connect an AI assistant

> Add the Fledge MCP server to Claude, Claude Code or VS Code, so your assistant can answer questions about your Fledge data.

The Fledge MCP server gives an AI assistant read access to Fledge: it can look up orders, articles, stock, hours and more, and find the right user guide. It cannot change anything in Fledge.

Its [skills](https://docs.fledge.nl/en/mcp/skills) teach the assistant how Fledge works. That also helps developers: connect the server to your coding assistant when you build on the API, see [Build with an AI assistant](https://docs.fledge.nl/en/api/ai-assistant).

|  |  |
| --- | --- |
| URL | `https://mcp.fledge.nl/mcp` |
| Transport | Streamable HTTP |
| Authentication | Your personal Fledge API key |

## Before you start

You need your personal Fledge API key. The assistant acts as you: it sees the same administrations and data as you do in Fledge. Do not share the key, and do not add it to a connector that other people use.

> **Important:** The API key gives access to your Fledge data. Keep it in your assistant's settings or a password manager, never in a shared file or repository.

## Add the server

**Claude**

1. Open **Settings**, then **Connectors**, and click **Add custom connector**.
2. Enter `https://mcp.fledge.nl/mcp` as the URL.
3. Choose **No sign-in** as the authentication.
4. Add a request header `X-Api-Key` with your API key as its value.
5. Save, and turn the connector on in a new chat.

Add the connector to your own account, not to your organization: it acts as you.

**Claude Code**

Run this once in a terminal:

```bash
claude mcp add --transport http fledge https://mcp.fledge.nl/mcp \
  --header "Authorization: Bearer <your Fledge API key>"
```

Check the connection with `/mcp` in a Claude Code session.

**VS Code**

Add the server to `.vscode/mcp.json`. VS Code asks for the key once and stores it safely:

```json
{
  "inputs": [
    { "id": "fledge-key", "type": "promptString", "description": "Fledge API key", "password": true }
  ],
  "servers": {
    "fledge": {
      "type": "http",
      "url": "https://mcp.fledge.nl/mcp",
      "headers": { "Authorization": "Bearer ${input:fledge-key}" }
    }
  }
}
```

Other clients work when they can send a header to a remote MCP server: use `Authorization: Bearer <key>` or `X-Api-Key: <key>`. Clients that only offer an OAuth login are not supported yet.

## Try it

Ask your assistant a question about your own data, for example:

- "Which sales orders are due for delivery this week?"
- "What is the stock of article 10045?"
- "How do I approve a purchase order in Fledge?"

The assistant shows which data it used. For how-to questions it links to the guide on this site.

---

Source: https://docs.fledge.nl/en/mcp/connect
