---
title: "Connect while to Claude (web and app) over MCP"
url: https://while.sh/en/guides/connect-claude/
author: "Aloïs Oddon, co-founder of Nextmap"
updated: 2026-11-05
---

# Connect while to Claude, on the web or in the app, over MCP

Claude already writes your pages and small tools in the conversation. Connected to while with a connector, it also deploys them, with their database, without leaving the conversation.

## Prerequisites

- A Claude account. The free plan allows one custom connector, paid plans more (source 1).
- On a Team or Enterprise plan, the organization's owner adds the connector, then each person connects to it (source 1).

## Step 1: Add while as a connector

In Claude, open Customize, then Connectors. Click "+", then add a custom connector. Name it while, and paste the address of while's MCP server (source 1):

```text titre="MCP server address"
https://app.while.sh/mcp
```

## Step 2: Authorize it in your browser

Claude offers to sign you in, and a while page opens. Choose "A new app", then click Authorize.

## Step 3: Turn it on in the conversation

In a conversation, click "+" at the lower left, then Connectors, and turn on while (source 1).

## What your agent does

Claude has no terminal: it sends your app's files to while in its tool calls, then deploys it. For a large project, an agent that works in a terminal, like Claude Code, is faster.

## Deploy what Claude just wrote

> You, to your agent: Deploy this page with while.

Claude writes while.yaml, sends the page, and gives you its address, over HTTPS.

## Keep the team's data

> You, to your agent: Keep the team's answers in a database.

Claude adds a PostgreSQL database and a small API next to the page. Everyone's answers stay from one visit to the next.

## Query your database

> You, to your agent: How many answers this week?

Claude reads your database in SQL over MCP, with your permissions on the data, and can't write to it.

## Go back to the previous version

> You, to your agent: Go back to the previous version.

In the 30 minutes after a deployment, the previous version comes back in a second. After that, it takes a few seconds.

## Try without an account

Without a while account, add a connector at `https://app.while.sh/essai` instead, with no authentication. Claude deploys your app as a trial, and gives you a confirmation link to open within the next few minutes.

## Next steps

- [Try while without an account](/en/docs/get-started/try-without-an-account/)
- [Deploy a Claude artifact](/en/guides/deploy-claude-artifact/)
- [Connect Claude Code](/en/guides/connect-claude-code/)

## Sources

1. [Claude, custom connectors using remote MCP](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp), 2026-11-05

## Questions

### Do I need a paid Claude plan?

No: Claude's free plan allows one custom connector (source 1).

### Does my agent see my keys?

No: your keys stay in while, and calls to an external API go through while, which adds the key.

### What can Claude do without me?

It can deploy, and read the logs and the database. Sensitive actions, like deleting a production database, wait for your approval.
