# Claude

PublicWWW is in Claude's connector directory: connect it in two clicks and sign in with OAuth, no token to copy. Claude Code takes the same server from the command line.

## Claude on the web and in the desktop app

1. Open [PublicWWW in the connector directory](https://claude.ai/directory/publicwww), or find it by name under **Customize → Connectors → Browse**, and press **Connect**.
2. PublicWWW opens: sign in with the one-time code from your email and press **Allow** on "Connect Claude to PublicWWW?". You are sent back to Claude.
3. In a chat, turn PublicWWW on in the tools menu of the message box and ask, for example, "Which sites load angular.min.js?".

The same server can also be added by hand, as a custom connector:

1. Open **Customize → Connectors** (in some versions **Settings → Connectors**) and press **Add custom connector**.
2. Name: `PublicWWW`. URL: `https://api.publicwww.com/mcp`. If asked how Claude should identify itself, keep **Use Claude's published identity**; leave OAuth client ID and secret empty. Under Authentication Claude may detect **No sign-in**: keep it, or choose **Sign in now**. The warning that anyone with the address can use the connector is about the open part - the tool list and this documentation; your PublicWWW account stays closed until you press Allow.
3. Press **Add**, then **Connect**, and go on from step 2 of the first list. With **No sign-in** the sign-in comes later: when a search needs an account, Claude shows "Authorization required" - press **Reconnect**.

A connector added on claude.ai is there in the desktop app too. A free Claude plan allows one custom connector. On Team and Enterprise plans an owner adds it once - Organization settings → Connectors → Add → Custom → Web - and then everyone presses Connect for their own PublicWWW account.

Claude now shows under **Connected apps** on your [profile page](https://publicwww.com/profile/api).

## Claude Code

As a plugin - the server, signing in with OAuth, and a skill that teaches Claude the query syntax:

```
/plugin marketplace add publicwww-com/publicwww-mcp
/plugin install publicwww@publicwww
```

Or just the server:

```
claude mcp add --transport http publicwww https://api.publicwww.com/mcp
```

Then, inside Claude Code, run `/mcp`, pick `publicwww` and choose Authenticate. The browser opens the same Allow screen; after it, `claude mcp list` shows the server as connected. Until then the tools are listed and `read_docs` works; a search reports that it needs you to sign in.

With a token from your [profile page](https://publicwww.com/profile/api) instead of OAuth:

```
claude mcp add --transport http publicwww https://api.publicwww.com/mcp \
     --header "Authorization: Bearer YOUR_TOKEN"
```

The server is added to the current project; `--scope user` makes it available in every project. To share it with a team through `.mcp.json` in the repository, keep the token in each person's environment rather than in the file:

```
{
  "mcpServers": {
    "publicwww": {
      "type": "http",
      "url": "https://api.publicwww.com/mcp",
      "headers": { "Authorization": "Bearer ${PUBLICWWW_TOKEN}" }
    }
  }
}
```

Source: https://publicwww.com/docs/mcp/claude/
