# Connect a client

One URL, and a browser sign-in:

```
https://mcp.vitalsentinel.com/mcp
```

Most clients handle the rest. You paste the URL, the client discovers the authorization server, opens a browser tab, you approve the connection, and the tools appear.

## Before you start [#before-you-start]

- You need a VitalSentinel account with at least one domain being monitored.
- The connection reaches only the workspaces you select on the consent screen.
- A connection made this way is **not read-only**. The consent screen requests read, write, and run scopes together, so review it before approving. For a narrower connection, see [Option B](#option-b-connect-with-an-api-key).

## Option A: connect with your account (recommended) [#option-a-connect-with-your-account-recommended]

This is the OAuth 2.1 flow. No secret is ever stored in a configuration file.

### Claude [#claude]

Claude supports remote MCP servers as custom connectors. Add the connector on claude.ai or in Claude Desktop. It then also works in the mobile apps.

1. Go to **Customize** > **Connectors**.
2. Click **+ Add**, then **Add custom connector**.
3. Enter the name `VitalSentinel`.
4. Enter the URL `https://mcp.vitalsentinel.com/mcp`, then click **Continue**.
5. Review the detected authentication settings, then click **Continue**.
6. Under **Authentication**, select **Sign in now**. Under **OAuth client**, keep the identity that Claude publishes, or select **Register automatically**. VitalSentinel supports both options.
7. Click **Add**.
8. When the VitalSentinel sign-in page opens, sign in if necessary.
9. On the consent screen, **choose which workspaces to grant access to**, review the permissions, and approve.

To use the connector in a chat, click **+** at the lower left, then **Connectors**, and turn on VitalSentinel.

<Callout type="info">
  On a Claude Team or Enterprise plan, an owner adds the connector in **Organization settings** > **Connectors**. Members then click **Connect** on it in **Customize** > **Connectors**. On the Free plan, you can add one custom connector. Claude can change these menu names. If they are different, see the Claude help center.
</Callout>

### Claude Code [#claude-code]

```bash
claude mcp add --transport http vitalsentinel https://mcp.vitalsentinel.com/mcp
```

Then run `/mcp` inside Claude Code and follow the authentication prompt. It opens a browser for the same consent flow.

### ChatGPT [#chatgpt]

ChatGPT adds a remote MCP server as a custom plugin.

1. Go to [ChatGPT Plugins](https://chatgpt.com/plugins).
2. Select the plus button, then **Add custom MCP server**.
3. Enter the name `VitalSentinel` and a description.
4. Under **Connection**, enter `https://mcp.vitalsentinel.com/mcp`.
5. Select OAuth authentication, read the risk warning, and select **I understand and want to continue**.
6. Select **Create as a plugin**.
7. Complete the browser sign-in and approve the workspaces.

<Callout type="info">
  Your ChatGPT plan, or the settings of your ChatGPT workspace, can prevent custom MCP servers. OpenAI can change these menu names. If they are different, see the OpenAI help center.
</Callout>

### Cursor [#cursor]

Add the server to `~/.cursor/mcp.json` for all projects, or `.cursor/mcp.json` inside one project:

```json
{
  "mcpServers": {
    "vitalsentinel": {
      "url": "https://mcp.vitalsentinel.com/mcp"
    }
  }
}
```

Cursor supports OAuth for remote servers. Make sure that the server is enabled under **Customize** in the sidebar. When Cursor asks you to sign in, a browser opens for the consent flow.

### VS Code [#vs-code]

Add `.vscode/mcp.json` to your workspace:

```json
{
  "servers": {
    "vitalsentinel": {
      "type": "http",
      "url": "https://mcp.vitalsentinel.com/mcp"
    }
  }
}
```

Start the server from the editor and complete the browser sign-in when prompted.

### Any other MCP client [#any-other-mcp-client]

The server implements the standard remote MCP contract, so a spec-compliant client needs nothing bespoke:

| Property | Value |
|---|---|
| Endpoint | `https://mcp.vitalsentinel.com/mcp` |
| Transport | Streamable HTTP (`POST` for requests, `GET` for the server-to-client stream, `DELETE` to end a session) |
| Authorization | `Authorization: Bearer <token>` |
| Discovery | `GET https://mcp.vitalsentinel.com/.well-known/oauth-protected-resource` (RFC 9728) |
| Authorization server | Advertised in that document, and in the `WWW-Authenticate` header on any `401` |
| Resource identifier | `https://mcp.vitalsentinel.com` |

If you are implementing the flow by hand, see [Authentication](/api/authentication#oauth-21). Make sure that you send the correct `resource` parameter: it must be `https://mcp.vitalsentinel.com` for a token used here. A token minted for the REST API is rejected with a `401`. The reverse is not true, so an MCP token also works against the REST API. See [Resource binding](/api/authentication#resource-binding-is-mandatory).

## Option B: connect with an API key [#option-b-connect-with-an-api-key]

Use this when you want a narrower connection than the browser sign-in gives, with only the scopes that you select. Also use it when you connect from an automated context where a browser flow is not practical.

1. Create an API key on the [API access](/account/api-access) page of your account settings. See [Quick start](/api/quick-start#1-create-an-api-key).
2. Grant the scopes matching the tools you want. Every `write:` or `run:` scope you grant makes the corresponding tools visible.
3. Configure your client to send the key as a bearer token.

```json
{
  "mcpServers": {
    "vitalsentinel": {
      "url": "https://mcp.vitalsentinel.com/mcp",
      "headers": {
        "Authorization": "Bearer vsk_live_your_key_here"
      }
    }
  }
}
```

The exact configuration shape depends on your client; the header is what matters.

<Callout type="warning">
  An API key is a long-lived secret in a configuration file. Keep it out of version control, scope it to the minimum the assistant needs, and set an expiry. If a browser sign-in is possible, use [Option A](#option-a-connect-with-your-account-recommended) instead: it stores no secret anywhere.
</Callout>

An API key reaches exactly one workspace. For several workspaces, use the OAuth flow, which can span every workspace you select at consent.

## Confirming it worked [#confirming-it-worked]

Ask the assistant:

> List my VitalSentinel workspaces and domains.

That calls `list_workspaces` and `list_domains`, the two cheapest tools. Both are free of credit cost, so it is a safe smoke test.

Then try something real:

> Give me a health snapshot for example.com.

## Which tools you will see [#which-tools-you-will-see]

The tool list is built once per connection, from what your credential can do:

| Credential | Tools available |
|---|---|
| OAuth connection (browser sign-in) | All 265, once you approve the scopes the consent screen requests |
| API key with read scopes only | The read tools matching those scopes |
| API key with `write:` and `run:` scopes | Read tools, plus the matching write and run tools |

A tool you cannot use is not shown, rather than shown and failing. If a tool you expected is missing, the credential does not carry the scope, or the creator's workspace role strips it. To see your effective scopes, call `GET /me` on the API with the same credential.

## Reconnecting [#reconnecting]

Sessions are held in memory and are not persisted across restarts. If the server restarts, your client reconnects and re-authenticates transparently. You will not usually notice.

Access tokens last 60 minutes and refresh automatically. You only sign in again if you revoke the connection or leave it unused past the 90-day refresh window.

## Disconnecting [#disconnecting]

**In VitalSentinel:** open the [Connected apps](/account/connected-apps) page of your account settings. It lists every app that you connected, with the workspaces that it reaches. A revoke has an immediate effect. It stops tokens that were already issued, not only future refreshes.

**In your client:** remove the connector or the configuration entry. Do both if you want the grant gone as well as the client entry.

## Next [#next]

<Cards>
  <Card title="Tool reference" href="/mcp/tools">
    What each of the 265 tools answers.
  </Card>
  <Card title="Troubleshooting" href="/mcp/troubleshooting">
    Connection failures, missing tools, and empty results.
  </Card>
</Cards>

## Related [#related]

- [MCP introduction](/mcp/introduction) - what the MCP server does
- [Tool reference](/mcp/tools) - next step: what each tool answers
- [Connected apps](/account/connected-apps) - review and disconnect OAuth clients
- [API access](/account/api-access) - create a key for an API-key connection
- [Authentication](/api/authentication) - the OAuth flow behind the connection
- [MCP troubleshooting](/mcp/troubleshooting) - fix connection failures
