Truli MCP

Setup and tool reference

How to connect the Truli MCP server to your AI client, and what each of its tools takes and returns.

Overview

Server URL
https://app.trytruli.com/api/mcp

Transport
Streamable HTTP
Sign-in
OAuth with your Truli account. Your client registers with Truli automatically and uses PKCE; there is no API key to copy. The profile scope is required.
Account
Create a free account or sign in. Your connect page in the app shows your usage this month.
Access
Every tool is read-only and reads Truli’s shared regulatory library. None of them read your products or account data.

Connect a client

Each client asks you to sign in to Truli the first time it connects. Menu names can change between client versions; the linked guides have the current steps.

Claude

  1. Go to Customize, then Connectors.
  2. Select + Add, then Add custom connector.
  3. Name it Truli, paste the server URL, and select Add.
  4. Select Connect and sign in to Truli.

On Team and Enterprise plans, an owner adds the connector and members select Connect. Anthropic’s guide

ChatGPT

  1. Turn on developer mode for apps and connectors in ChatGPT’s settings.
  2. Create an app with the server URL and OAuth authentication.
  3. Sign in to Truli when prompted, then turn the app on in a chat.

Developer mode depends on your plan and workspace permissions. OpenAI’s guide

Claude Code

Add the server from your terminal:

Claude Code command
claude mcp add --transport http truli https://app.trytruli.com/api/mcp

Then run /mcp in Claude Code, select truli and follow the browser sign-in. Claude Code’s MCP guide

Cursor

Add Truli to ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one. Merge it with any servers already in the file.

Cursor mcp.json
{
  "mcpServers": {
    "truli": {
      "url": "https://app.trytruli.com/api/mcp"
    }
  }
}

Cursor then shows a sign-in for Truli in its MCP settings. Cursor’s MCP guide

Other clients

Any client that supports remote servers over streamable HTTP with OAuth can connect to the server URL. It discovers the authorization server from:

Protected resource metadata
https://app.trytruli.com/.well-known/oauth-protected-resource/api/mcp

Tools

Calls to searchTopics and getRegulation are free and unlimited. The others count toward your monthly allowance. Results are JSON.

searchTopics

Not counted

Returns the curated list of regulation sections for a compliance topic, such as serving size or net quantity, in each jurisdiction searched. Start here when a question names a compliance area, then open the sections with getRegulation.

ParameterTypeDescription
queryrequiredstringThe compliance topic, for example "net quantity of contents declaration".
source_idsstring[]Limit the search to specific sources, for example ["21-cfr-101"] for FDA food labeling or ["mx-nom-051"] for Mexico’s NOM-051.
jurisdictionsstring[]Country or state codes or names, for example ["US", "Mexico"] or ["US-NY"]. ["ALL"] searches every jurisdiction. Leave it out to search the whole library.
{
  "query": "ingredient list order of predominance",
  "jurisdictions": [
    "US"
  ]
}

searchFoodRegulations

Counted

Searches the regulation library by meaning and returns matching sections with their citation, agency, source and a link to the official text. Covers US federal and state law, Canada, the UK, the EU, Australia and New Zealand, Japan, Switzerland, Singapore, Latin American front-of-pack rules and Codex.

ParameterTypeDescription
queryrequiredstringWhat to search for, in plain language.
source_idsstring[]Limit the search to specific sources, for example ["21-cfr-101", "9-cfr-317"].
jurisdictionsstring[]As for searchTopics. Coverage of state law varies by state and topic, so no result does not prove there is no law.
{
  "query": "front-of-pack warning label size",
  "jurisdictions": [
    "Mexico",
    "Chile"
  ]
}

getRegulation

Not counted

Returns the full text of one regulation section by its code. Use it to read a section found by searchTopics or searchFoodRegulations, or one cited in another section.

ParameterTypeDescription
coderequiredstringThe section code, for example "101.9", "317.2" or "B.01.350".
source_idstringThe source, when the same code exists in more than one, for example "21-cfr-101" or "mx-nom-051".
{
  "code": "101.4",
  "source_id": "21-cfr-101"
}

checkGrasStatus

Counted

Looks up an ingredient across FDA’s GRAS and food additive records: GRAS notices, 21 CFR 182 and 184, SCOGS reviews, EAFUS, color additives and post-market NOT-GRAS enforcement. Returns each matching record with its status, citation and a link to the official text.

ParameterTypeDescription
ingredientrequiredstringThe ingredient or substance, for example "carrageenan" or "titanium dioxide".
limitnumberResults per database. Defaults to 5.
{
  "ingredient": "titanium dioxide"
}

checkStateBans

Counted

Screens a full ingredient list against US state and federal bills that ban, restrict or require disclosure of ingredients. Matches naming variants, such as “FD&C Red No. 3” and “Red Dye 3”, and returns bill numbers, states, effective dates and whether each bill is enacted, in force or proposed.

ParameterTypeDescription
ingredientsrequiredstring[]The whole ingredient list, in one call.
statesstring[]Two-letter state codes, or "US" for federal bills. Leave it out to check every state.
{
  "ingredients": [
    "Red 40",
    "Titanium Dioxide",
    "Sugar"
  ]
}

search_branded_ingredients

Counted

Searches a registry of branded ingredient trademarks by mark, generic ingredient name or owner.

ParameterTypeDescription
queryrequiredstringA mark, ingredient or owner, for example "KSM-66" or "ashwagandha".
limitintegerRows to return. Defaults to 5.
{
  "query": "ashwagandha"
}

getBillDetails

Counted

Returns a bill’s stored provisions, with quotes, sections and effective dates. A provision is not proof the bill passed, so check its status. An empty list with extractionComplete set to false means the bill has not been processed yet, not that it has no provisions.

ParameterTypeDescription
billIdrequiredintegerThe numeric LegiScan bill ID.
{
  "billId": 1234567
}

openBillText

Counted

Returns part of a bill’s stored full text. Read on with the nextOffset value in the result, or jump to a heading such as “Section 2”.

ParameterTypeDescription
billIdrequiredintegerThe numeric LegiScan bill ID.
offsetintegerWhere to start, in characters from the beginning of the text.
sectionstringA heading to start at, instead of an offset.
lengthintegerCharacters to return, from 1 to 8,000.
{
  "billId": 1234567,
  "section": "Section 2"
}

getPolicyPipeline

Counted

Shows what is proposed, in consultation, before a court or phasing in, with dates and official links, including a registry of sugar taxes by country.

ParameterTypeDescription
jurisdictionsrequiredstring[]At least one code or name, for example ["MX", "Chile", "US"].
topicstringAn area such as "front-of-pack-warnings", "sugar-tax" or "nutrient-content-claims", or free text. Leave it out for every record.
sincestringAn ISO date. Only records on or after it are returned.
{
  "jurisdictions": [
    "MX"
  ],
  "topic": "front-of-pack-warnings"
}

Usage limits

  • The free plan includes 250 counted calls a month. The count resets at midnight UTC on the first of each month.
  • searchTopics and getRegulation never count.
  • A failed call to a counted tool still counts.
  • Past the limit, counted tools return an error result with the limit, the reset time and the tools you can still use. Topic lookups and regulation text keep working.

For more calls or a team plan, talk to us.

Errors

ResponseWhat it means
401The access token is missing, expired or for another server. The response carries a WWW-Authenticate header; sign in again from your client.
403The token lacks the profile scope. Remove the server and add it again so the client requests it.
Error resultThe monthly limit is reached, or the arguments did not match the tool’s parameters. The message says which.

Truli is an information tool, not legal advice. Final sign-off stays with your qualified compliance or legal team.