Skip to main content

What MCP is

MCP (Model Context Protocol) is how AI clients call CurbWaste. The partner endpoint is Streamable HTTP at https://api.curbwaste.com/mcp. Tools use the same company API keys and scopes as the partner REST API and invoke the same services underneath — not a separate data plane. Use REST when your application calls CurbWaste directly. Use MCP when an MCP-compatible agent should discover and invoke those capabilities as tools.

Tools

A tool is available when your key includes the scope in its table row. These are the same resource scopes you pick in the Developer Platform (customers:read, orders:read, reports:read, and so on); see Authentication for the full list. Any one of them is enough to open an MCP session. Keys created before resource scopes may still hold mcp:tools:… scopes, which keep working. Your company needs the Public API and MCP enabled for /mcp to accept requests; otherwise it returns 403. Tools marked MCP only have no REST endpoint. Every other tool lists the REST endpoint it shares; see the API Reference. Reports tools let your assistant query and export your company’s CurbWaste reports and data: customers and locations, orders and dispatch, routes, sales and invoices, payments and AR, sales tax and roll-off profitability. They are read-only and need the Reports permission (reports:read) on your API key, set in the Developer Platform.

Auth and scopes

There are two ways to authenticate to MCP:
  • Sign in from your AI client. Best for a person connecting Claude, Claude Code or Cursor. See Sign in.
  • API key sent as a Bearer token. Best for agents and scripts that run without a person signing in.
Create keys and choose scopes in the Developer Platform under API Keys. Clients authenticate with:
See Authentication for key lifecycle, 401 / 403, and scope meaning. Prefer the minimum scopes the agent needs.

Connect an AI client

The MCP page in the Developer Platform has setup steps for Claude, Claude Code, Cursor, and other clients, each with sign-in or an API key. Step-by-step guides:

Connect Claude

Add a custom connector in Claude and approve a key. Claude Code uses the same endpoint.

Connect Cursor

Click Add to Cursor, then approve a key in the browser.
Endpoint:

Sign in

Sign-in uses OAuth: your client opens a browser, you sign in to the Developer Platform, then pick or create the API key it should use. The client never sees the key. Step-by-step guides: Connect Claude and Connect Cursor. For Claude Code, run claude mcp add --transport http curbwaste https://api.curbwaste.com/mcp, then /mcp and choose Authenticate. Sign-in tokens last one hour and your client refreshes them; the refresh token lasts 21 days. To end access, revoke the API key you picked in the Developer Platform.

API key

  1. Open the Developer Platform
  2. Create an API key under API Keys with the scopes your agent needs
  3. Open MCP and copy the API key configuration for your client
  4. Keep the cw_live_… key in a secure secret store

Safety

MCP tools can perform real actions when the key includes write scopes. Grant only the scopes the agent needs and review tool calls before approving changes.
Successful writes through MCP use the same services as REST, so they can emit the same webhooks (for example customer.created, location.updated). Authenticated MCP tool calls share your company’s partner API rate limit with REST /v1.

Usage

Company rate limits shared by REST and MCP.

Authentication

Company API keys, Bearer auth, and scopes shared with REST.

Customers

Account hub agents work with via customer tools.

API Reference

REST contracts for the resources MCP tools call.