Overview
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. - 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
- Go to Customize, then Connectors.
- Select + Add, then Add custom connector.
- Name it Truli, paste the server URL, and select Add.
- 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
- Turn on developer mode for apps and connectors in ChatGPT’s settings.
- Create an app with the server URL and OAuth authentication.
- 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 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.
{
"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:
https://app.trytruli.com/.well-known/oauth-protected-resource/api/mcp
Calls to searchTopics and getRegulation are free and unlimited. The others count toward your monthly allowance. Results are JSON.
searchTopics
Not countedReturns 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.
| Parameter | Type | Description |
|---|
queryrequired | string | The compliance topic, for example "net quantity of contents declaration". |
|---|
source_ids | string[] | Limit the search to specific sources, for example ["21-cfr-101"] for FDA food labeling or ["mx-nom-051"] for Mexico’s NOM-051. |
|---|
jurisdictions | string[] | 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
CountedSearches 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.
| Parameter | Type | Description |
|---|
queryrequired | string | What to search for, in plain language. |
|---|
source_ids | string[] | Limit the search to specific sources, for example ["21-cfr-101", "9-cfr-317"]. |
|---|
jurisdictions | string[] | 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 countedReturns 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.
| Parameter | Type | Description |
|---|
coderequired | string | The section code, for example "101.9", "317.2" or "B.01.350". |
|---|
source_id | string | The 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
CountedLooks 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.
| Parameter | Type | Description |
|---|
ingredientrequired | string | The ingredient or substance, for example "carrageenan" or "titanium dioxide". |
|---|
limit | number | Results per database. Defaults to 5. |
|---|
{
"ingredient": "titanium dioxide"
}
checkStateBans
CountedScreens 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.
| Parameter | Type | Description |
|---|
ingredientsrequired | string[] | The whole ingredient list, in one call. |
|---|
states | string[] | 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
CountedSearches a registry of branded ingredient trademarks by mark, generic ingredient name or owner.
| Parameter | Type | Description |
|---|
queryrequired | string | A mark, ingredient or owner, for example "KSM-66" or "ashwagandha". |
|---|
limit | integer | Rows to return. Defaults to 5. |
|---|
{
"query": "ashwagandha"
}
getBillDetails
CountedReturns 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.
| Parameter | Type | Description |
|---|
billIdrequired | integer | The numeric LegiScan bill ID. |
|---|
{
"billId": 1234567
}
openBillText
CountedReturns 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”.
| Parameter | Type | Description |
|---|
billIdrequired | integer | The numeric LegiScan bill ID. |
|---|
offset | integer | Where to start, in characters from the beginning of the text. |
|---|
section | string | A heading to start at, instead of an offset. |
|---|
length | integer | Characters to return, from 1 to 8,000. |
|---|
{
"billId": 1234567,
"section": "Section 2"
}
getPolicyPipeline
CountedShows what is proposed, in consultation, before a court or phasing in, with dates and official links, including a registry of sugar taxes by country.
| Parameter | Type | Description |
|---|
jurisdictionsrequired | string[] | At least one code or name, for example ["MX", "Chile", "US"]. |
|---|
topic | string | An area such as "front-of-pack-warnings", "sugar-tax" or "nutrient-content-claims", or free text. Leave it out for every record. |
|---|
since | string | An 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
| Response | What it means |
|---|
401 | The access token is missing, expired or for another server. The response carries a WWW-Authenticate header; sign in again from your client. |
|---|
403 | The token lacks the profile scope. Remove the server and add it again so the client requests it. |
|---|
| Error result | The 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.