MCP

Connect an AI assistant to TnL CRM with MCP

The TnL CRM MCP server lets an assistant list jobs, update a contact, or read the dispatch board after someone signs in with their CRM email and password.

What you connect to

The server is remote. Clients post JSON-RPC to the resource URL, which is the public MCP origin plus /mcp. Only POST is accepted on that path. A health check is available at /health.

TnL gives you the public origin for your server. It is an https URL. The path is always /mcp. Do not put the API token from Settings into the MCP client. MCP uses OAuth instead.

How sign-in works

The server publishes OAuth metadata at /.well-known/oauth-authorization-server and protected-resource metadata for /mcp. Clients that follow the MCP authorization spec can register themselves, start an authorization-code grant with PKCE (S256), and send the user to a TnL sign-in page.

The user enters the same email and password they use for TnL CRM. Access tokens last one hour. Refresh tokens last 30 days. Failed sign-in attempts are limited. Closing the grant or revoking the token stops the assistant.

All tools run as that user. Another company's jobs are not visible. Ids are UUIDs. Dates are YYYY-MM-DD. Date-times are ISO 8601. List or search before you get or update, so the assistant uses an id that exists.

Client configuration

In a client that asks for a remote MCP URL, paste the https origin plus /mcp. Clients that use a JSON config usually look like this. Replace the host with the URL TnL gave you. Leave authentication to the OAuth flow. The client will open a browser window for the CRM password.

{
  "mcpServers": {
    "tnl-crm": {
      "url": "https://v2.tnlcrm.com/mcp"
    }
  }
}

Tools

These are the tools the server registers. Names are stable. Arguments are described to the client when it connects, so the assistant sees required fields without this page.

ToolWhat the assistant can do
list_jobs Search jobs by text, status, operator, source, tag, contact, company, and date.
get_job Read one job by id. Look up the id with list_jobs first.
create_job Create a job, optionally with a new contact or an existing contact id.
update_job Update fields on one job. Address objects replace the stored address, so read the job first.
list_assigned_jobs Dispatch board: jobs with tasks between two dates, with contact, operator, status, tasks, and products.
assigned_job_stats Month view: for each day, the job ids that have tasks, plus the task count for the range.
list_unassigned_jobs Jobs that still need to be scheduled.
list_contacts Search contacts.
get_contact Read one contact.
create_contact Create a contact.
update_contact Update a contact.
list_invoices Search invoices. Returns the page plus paid and unpaid totals. Does not create invoices.
list_products Active products and services, with category. Filter by type product or service.
create_product Add a product to a category.
update_product Change a product name, price, or SKU.

What to tell the assistant

A useful first instruction is: "Use TnL CRM. Search before you update. Confirm the job number with me before you change a date or a status." The server already tells the model that data is scoped to the signed-in company and that ids are UUIDs.

MCP is for interactive assistants. A website form, a comparison-site webhook, or a nightly sync should use API v3 or the lead integrations instead.

Questions

What is the TnL CRM MCP connection?

MCP (Model Context Protocol) is how an AI assistant calls tools on TnL CRM. The server speaks Streamable HTTP. The assistant signs the user in with OAuth, then calls tools such as list_jobs or list_assigned_jobs. Every call is limited to that user's company.

Which assistants can connect?

Any client that supports a remote MCP server over Streamable HTTP and OAuth, including current versions of Claude, ChatGPT, and Cursor. The client reads the OAuth metadata, registers, and sends the user to the TnL sign-in page.

Does MCP replace the public API?

No. API v3 is a bearer token your integration sends on each request. MCP is for an assistant that picks tools in conversation. Both use the same CRM records. Invoices are list-only in MCP. API v3 can also read expenses, notes, tasks, storage, and warehouse slots, and can write more record types.

Related

talking talking-dark
chatting chatting-dark
star-1
star-2
arrow-1

Streamline Your Moving Business with TnL CRM.

Try TnL CRM today. 60 Days TRIAL