Truthroute logo

Truthroute

Compares OpenAI, Anthropic, and Gemini responses and returns a locally computed divergence score through CLI or MCP.

Install Truthroute

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "truthroute": {
      "command": "npx",
      "args": [
        "-y",
        "truthroute-cli"
      ],
      "env": {
        "OPENAI_API_KEY": "YOUR_VALUE_HERE",
        "ANTHROPIC_API_KEY": "YOUR_VALUE_HERE",
        "GEMINI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y truthroute-cli

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The truthroute MCP server sends one prompt to selected OpenAI, Anthropic, and Gemini models, then returns their responses and a divergence score. It runs as a stateless MCP server over stdio and exposes a typed `compare` tool for agent calls. Scoring uses local sentence embeddings, excludes refusals, and normalizes formatting before comparison. Reach for it when an evaluation pipeline or agent needs a measurable provider-agreement signal without hosting a database or gateway.

Use cases

  • Compare provider answers in an evaluation pipeline
  • Measure response divergence in a CI job
  • Call multiple LLMs from an MCP-capable agent
  • Estimate provider agreement before spending on API calls
  • Generate confidence bands from repeated comparisons

Key features

  • Parallel comparison across OpenAI, Anthropic, and Gemini
  • Local sentence-embedding divergence scoring
  • Refusal exclusion and response normalization
  • Typed MCP compare tool over stdio
  • Structured JSON output
  • Dry runs and repeated comparisons with confidence bands

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 95d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · truthroute-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads353Package downloads in the last 30 days.
Last commit16d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Truthroute works

What truthroute MCP server does

The truthroute MCP server compares answers from multiple LLM providers to the same prompt. It supports OpenAI, Anthropic, and Gemini, with the provider list supplied by the caller. Results include the provider responses, completion status, and a divergence score from 0.0 to 1.0. Lower values indicate more similar answers; higher values indicate greater semantic difference.

This is a comparison primitive rather than a fact-checker, model router, or consensus system. It reports how much responses differ, not which response is correct. The implementation is stateless: it does not provide accounts, persistent storage, debate workflows, failover, or cost optimization.

How it works

The truthroute MCP server calls the requested providers in parallel, using temperature=0 for each provider request. It strips markdown and other formatting before scoring so presentation and verbosity have less influence. Refusals are removed from the score because a refusal should not be treated as substantive disagreement with an answer.

Scoring happens locally with the fastembed package and the BGESmallENV15 sentence-embedding model. The divergence value is calculated as one minus the average pairwise cosine similarity across usable responses. The embedding choice was checked against a hand-labeled validation set containing agreement, paraphrase, negation, and disagreement examples.

A comparison is complete when all requested providers succeed. It can be partial when at least two usable responses remain but a provider fails or a refusal is excluded. With fewer than two usable responses, the result is failed and no divergence score is reported. Repeated runs can produce a confidence band with --repeats; deterministic settings reduce variation but do not guarantee identical vendor responses.

Setup and configuration

Install the CLI globally with npm install -g truthroute-cli, or invoke it through npx. The MCP interface is started with truthroute mcp, which runs the server over standard input and output. An MCP client can then call the typed compare tool directly.

Set API keys as environment variables for the providers you intend to use:

  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • GEMINI_API_KEY

Only requested providers need configured keys. Every real comparison sends billed requests to those vendor APIs. Use the CLI's --dry-run option to estimate the call count and cost before making provider requests. The --json option is intended for scripts and returns structured result data; it is separate from MCP protocol discovery.

Tools and capabilities

The MCP surface exposes one typed tool:

  • compare: sends a prompt to a selected comma-separated provider list and returns responses, statuses, and divergence data.

The corresponding CLI supports human-readable output, structured JSON, dry-run estimates, and repeated comparisons with a confidence band. The JSON result can identify failed providers, responses excluded because of refusal, the overall status, and the providers included in the calculation.

Limitations and notes

Prompts are transmitted to every provider selected for a comparison, so sensitive input receives the same vendor exposure as direct API calls. TruthRoute has no hosted service or free request tier; users provide their own provider credentials and pay vendors directly.

The score measures semantic response difference, not factual accuracy. Cosine-based values may occupy a narrower practical range than an intuitive 0-to-1 interpretation suggests, so relative comparisons are more useful than treating a single number as an absolute truth measure. Vendor inference differences can also cause small run-to-run changes even with temperature set to zero.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Truthroute

truthroute is an MCP server that connects agents to OpenAI, Anthropic, and Gemini for multi-provider prompt comparison. Its main tool, `compare`, sends the same prompt to selected providers and returns their responses, statuses, and a locally computed divergence score based on sentence embeddings.

Install `truthroute-cli` globally with `npm install -g truthroute-cli`, then run `truthroute mcp` to start the stdio MCP server. You can also use `npx truthroute-cli` without a global installation. Configure API keys for the providers you plan to compare.

TruthRoute needs the environment variable API key for each provider included in a comparison: `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, and/or `GEMINI_API_KEY`. Providers not requested do not need a configured key.

Yes, it can be used with Cursor as a standard stdio MCP server. Configure Cursor to launch `truthroute mcp`, and provide the required provider API keys in the server environment.

No, the score measures how different provider responses are, not which response is factually correct. It uses locally computed sentence-embedding similarity, excludes detected refusals, and is intended as a relative disagreement signal.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTruthroute AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/truthroute?style=directory)](https://allmcps.com/mcp/truthroute)
HTML Embed
<a href="https://allmcps.com/mcp/truthroute"><img src="https://allmcps.com/api/badge/truthroute?style=directory" alt="Truthroute on AllMCPs" /></a>