# Google Chat: Disconnect — MCP tool

**Google Chat MCP tool:** Revokes the stored token at Google and deletes the local login; environment credentials are left untouched.

Technical name: `logout`

## What task it solves

> I want to disconnect this server from my Google account.

Removes the locally stored tokens and client credentials, so the server stops acting as that account.

## When to use it

Use it when handing the machine to someone else, when switching Google accounts, or when a secret may have leaked. Check [`auth_status`](./auth-status.md) first to see what is about to be removed.

## What to provide

No parameters.

## What it returns

Whether stored data was actually removed, and whether environment credentials remain in effect after the deletion.

## What changes in Google Chat

No Chat data changes. The stored token is revoked at Google's revoke endpoint and the local credentials are deleted irreversibly. If the revoke call fails, the deletion still happens and the grant can be removed at https://myaccount.google.com/permissions.

## Example request

> Disconnect Google Chat and delete the saved credentials.

## Errors and limitations

Marked destructive because deletion cannot be undone — reconnecting means walking through [`start_login`](./start-login.md) and [`finish_login`](./finish-login.md) again. Credentials supplied through `GOOGLE_CHAT_*` environment variables keep working: those live in the MCP client's configuration and must be removed there.

## Related MCP tools

- [Connection status](./auth-status.md) — `auth_status`
- [Start the login](./start-login.md) — `start_login`
- [Finish the login](./finish-login.md) — `finish_login`

## Technical details

- **Impact:** destructive operation
- **Group:** Connection
- **Source:** `logout` registered by `@a1-x-tech/mcp-google-auth` via `src/tools/auth.ts`
- [Full technical reference](../TOOLS.md)
- [All MCP capabilities](./index.md)
