Skip to content

Use Faultline by NXTG.ai in n8n with the MCP Client Tool

Faultline checks the factual claims in a piece of text against live sources. Connect it to n8n and the claims in your workflow, or in your AI agent's output, come back with a verdict for each checked claim and, where Faultline found one, a source URL. Faultline runs as a hosted MCP server at https://faultline-api.fly.dev/mcp, so n8n's MCP nodes reach it with an endpoint, a transport and one header.

Before you start

n8n with the MCP nodes. The MCP nodes ship in the package @n8n/n8n-nodes-langchain. The node and field names on this page are from package 3.4.1 on n8n 2.49.9.

A Faultline API key. API keys are issued by hand during alpha. Request one at https://nxtg.ai/contact?ref=faultline-api-key&src=n8n-docs and a reply comes within one business day.

An API key is $10 a month with 100 billed claims included, then $0.10 per billed claim, up to 1,000 a month.

Option A: give an AI Agent the tool

Use the MCP Client Tool node when an AI Agent node should have Faultline as one of its tools.

  1. Add an MCP Client Tool node as a tool of your AI Agent node.
  2. Fill in the connection fields:
    Endpoint:           https://faultline-api.fly.dev/mcp
    Server Transport:   HTTP Streamable
    Authentication:     Header Auth
  3. Under Credentials, create a new Header Auth credential. Set Name to X-API-Key and Value to your Faultline API key:
    Name:  X-API-Key
    Value: <your Faultline API key>
  4. Set Tools to Include to Selected, then choose verify_claims:
    verify_claims

The MCP Client Tool node takes the same Endpoint, Server Transport and Header Auth credential as the MCP Client node in Option B. The test run for this page used Option B. The MCP Client Tool node was not run inside an AI Agent, since that needs a chat model.

Option B: a plain workflow step

Use the MCP Client node to call verify_claims directly as a regular step, with no AI model involved.

  1. Add an MCP Client node after the step that produces the text.
  2. Fill in the fields. For Credentials, use a Header Auth credential with Name X-API-Key and your Faultline API key as the Value, as in Option A step 3.
    MCP Endpoint URL:   https://faultline-api.fly.dev/mcp
    Server Transport:   HTTP Streamable
    Authentication:     Header Auth
    Tool:               verify_claims (From List, or by ID)
    Input Mode:         JSON
  3. Put the tool input in the JSON field. verify_claims takes two inputs:
    • text (string, required): the text whose factual claims should be verified.
    • max_claims (integer, optional): verify at most this many claims, most important first. Only those are checked and billed.

This is the exact input from the test run:

{
  "text": "NIST published FIPS 204, the Module-Lattice-Based Digital Signature Standard.",
  "max_claims": 1
}

The tested run

On 2026-12-01, n8n 2.49.9 ran this workflow: a Manual Trigger, then the MCP Client node set up as above. It succeeded in about 10 seconds.

What comes back

The result is in the node's output under structuredContent. From the test run, shortened, the top-level fields included:

{
  "overall_risk": "low",
  "risk_score": 15,
  "claims_total": 1,
  "billing": {
    "billedClaims": 1,
    "unbilledClaims": 0
  }
}

The one claim came back with:

{
  "verdict": "VERIFIED",
  "evidence_url": "https://csrc.nist.gov/pubs/fips/204/final"
}

The fields to read:

Billing: cap what is checked

max_claims caps what is checked and billed. Faultline verifies at most that many claims, most important first, and only those are billed. The test run above set max_claims to 1, and its response counted 1 billed claim.

Troubleshooting

"Could not connect to your MCP server. Authentication failed." The key or the header name is wrong. Check the Header Auth credential: the Name must be exactly X-API-Key and the Value must be your Faultline API key. Without a key, the server returns 401.

Also: find Faultline in the MCP Registry

The same n8n package also ships the MCP Registry Client Tool, which reads the official MCP Registry, where Faultline is listed as io.github.nxtg-ai/faultline.