Skip to content

Connect your AI assistant to CleanLog with MCP

Connect a compatible AI assistant to CleanLog's read-only MCP server using OAuth. See setup steps, access limits, and how to disconnect.

Updated

Search help
On this page
All help topics
Server URLhttps://app.cleanlog.com/mcp
TransportStreamable HTTP
AuthenticationOAuth with automatic client registration
AccessRead-only tools

Before you connect

Use an AI assistant that can add a remote MCP server over Streamable HTTP. For self-serve sign-in, it must support OAuth discovery and Dynamic Client Registration (DCR) as a public client using PKCE. A client that only accepts API keys or requires a client ID and secret you supply does not support this setup. Your AI workspace may have its own rules about adding connectors.

Eligible CleanLog members can connect without asking a CleanLog admin. Standard member access requires at least one active site you can view, and your company must allow external AI connections.

Connect from your AI assistant

  1. In your assistant's connectors or MCP settings, add a remote MCP server. Name it CleanLog, choose Streamable HTTP if asked, and enter https://app.cleanlog.com/mcp.
  2. Choose Connect, Authenticate, or your client's equivalent. Use OAuth with automatic registration if offered. Leave API keys, client secrets, and custom authorization headers blank.
  3. Sign in to CleanLog in the browser. Confirm your CleanLog account, or choose one if several are available. Review what the assistant can read and select Approve access if you agree.
  4. Return to your assistant, enable CleanLog for the conversation if needed, and ask: “List the CleanLog tools I can use.” If your connection includes site access, try: “List my active CleanLog sites.”

For specific controls, see the examples for Claude and Codex.

What your assistant can read

Each connection is tied to one CleanLog account. The consent screen shows what your role and the requested permissions allow. No CleanLog MCP tool can create, change, or delete records.

  • Standard member connection: IDs and names of active sites you can access. It does not include payroll, people records, or other advanced data.
  • Eligible managers and supervisors: When shown on the consent screen, access can also include open and in-progress work orders at approved sites where Work Orders is enabled. The assistant sees IDs, site IDs, status, priority, due dates, and available CleanLog links. It does not see titles, notes, assignments, or photos. Work orders tied to an asset or shift are excluded.
  • Advanced connections: Account admin connections and explicit manager Jobs connections have separate permissions. When scope checkboxes are available, approve only what you need.

Examples of advanced OAuth scopes include:

ScopeWhat it allows
mcp.readDiscover the CleanLog tools available to your AI client.
read:locationsRead location names, status, and other location details.
read:shiftsRead scheduled shifts, assignments, and attendance.
read:inspectionsRead inspections and checkpoint score trends.
read:work_ordersRead complaints, service requests, remediation work orders, and their lifecycle and evidence context.
read:analyticsQuery governed metrics and their available evidence, subject to your account's enabled capabilities.
read:peopleRead active people and teams without employee contact details or pay rates.
read:timesheetsRead timesheets for your selected locations, without pay amounts.
read:payRead account pay setup and rules with get_pay_setup and get_pay_rules. Combine with read:timesheets for saved pay periods and attendance readiness.
read:actionsRead your Actions queue and open the source in CleanLog. Decisions stay in the app.

To read pay setup, reconnect with a client that requests read:pay, approve that scope, and ask the client to call get_pay_setup. The account must have Pay enabled.

Audit and revoke access

Disconnect CleanLog in your AI assistant when you no longer need it. To revoke access in CleanLog, ask an account admin if you aren't one.

  1. Account admins: open Settings → Integrations → Connected AI tools in CleanLog.
  2. Select View access log to review the tool, time, status, latency, and row count for each call.
  3. Select Revoke connection for the client you want to disconnect.
  4. To stop all external AI connections for the company, an account admin can turn them off here. Turning them back on requires fresh consent.

Security and retention

  • OAuth starts in your AI assistant. Your CleanLog password is not shared with the AI provider.
  • CleanLog records every MCP call. The MCP audit record stores an arguments fingerprint, not the raw request arguments; error details are bounded and scrubbed for common personal data.
  • CleanLog retains MCP audit records for 12 months, then hard-deletes them through a scheduled retention policy. Other business records follow the controls and legal limits described in our Privacy Policy.
  • Revocation stops future CleanLog queries. Information already sent to the AI provider remains subject to that provider's retention policy and is not erased by revoking the token.

Troubleshooting

The OAuth screen says you do not have permission. Check that you signed in to the right CleanLog account and can access at least one active site. If your company disabled external AI connections, ask your company admin whether they can enable them.

The authorisation request expired or was already used. Return to your AI assistant and start Authenticate or Connect again. Do not reuse an old consent-page URL.

A tool reports “scope denied”. Revoke and reconnect the client, then approve the scope required for that data. For example, checkpoint trends require read:inspections.

The server is saved, but sign-in does not start. Check that the full server URL and Streamable HTTP transport are correct. Use your client's Connect or Authenticate action and make sure your client and workspace allow custom servers and automatic OAuth registration.

The assistant returns no CleanLog rows. Confirm the requested date or status filters, the approved data scope, and that the connected CleanLog account contains matching records. A CleanLog account admin can check whether the call succeeded or was denied.

You still cannot connect. Include your AI client name and the time you tried to connect, then contact CleanLog support. Never send an OAuth token or password.

Example: Claude

In Claude, open Customize → Connectors. Choose + Add → Add custom connector, enter the CleanLog server URL above, and continue. Use Sign in now and choose Register automatically for the OAuth client. Leave request headers blank and finish adding the connector. Complete the CleanLog sign-in and consent steps above, then enable CleanLog from the conversation's Connectors menu.

On Claude Team or Enterprise, a workspace owner may have to add the connector in Organization settings → Connectors before members can choose it under Customize → Connectors and select Connect. This is separate from CleanLog permissions. See Anthropic's custom connector guide for plan and workspace details.

For Claude Code, add the server and use /mcp within Claude Code to authenticate. See the Claude Code MCP guide.

claude mcp add --transport http cleanlog https://app.cleanlog.com/mcp

Example: Codex

In the Codex CLI, add the server and start OAuth:

codex mcp add cleanlog --url https://app.cleanlog.com/mcp
codex mcp login cleanlog

Complete the browser sign-in, then use /mcp inside Codex to check the connection.

From settings

In the ChatGPT desktop app or Codex IDE extension, open MCP servers → Add server. Choose Streamable HTTP and enter the CleanLog server URL above. Save and restart when prompted, then select Authenticate next to CleanLog if shown.

From config.toml

Alternatively, add this to ~/.codex/config.toml or to .codex/config.toml in a trusted project. Run codex mcp login cleanlog to sign in.

[mcp_servers.cleanlog]
url = "https://app.cleanlog.com/mcp"

ChatGPT web does not read your local Codex configuration. See OpenAI's MCP guide for controls and availability on each surface.

Was this helpful?