loading…
Search for a command to run...
loading…
An MCP server that provides fact-checking capabilities and truth anchoring for AI agents using verified data sources.
An MCP server that provides fact-checking capabilities and truth anchoring for AI agents using verified data sources.
License: MIT Built on Base MCP x402
Truth Anchor Agent is an MCP (Model Context Protocol) server for citation attestation. Before an agent cites a source, it can verify that the URL resolves, record the final destination, capture lightweight page metadata, and return a content hash of what was fetched.
The Problem: AI agents often cite dead, redirected, or changed URLs without checking what the source looked like at the time of use. The Solution: A paid verification step that records source availability and lightweight attestation metadata before the agent relies on a citation.
content_sha256 hash so downstream systems can anchor what was observed.This server exposes a verify_url tool that any MCP-compliant LLM (Claude Desktop, ChatGPT, IDEs) can use autonomously.
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"truth-anchor": {
"command": "npx",
"args": ["-y", "truth-anchor-agent"],
"env": {
"MY_WALLET_ADDRESS": "0x367B9193D4F9cb4877Ca58E6F3ce944d761d8009"
}
}
}
}
The MCP tool uses a two-step flow:
verify_url with a URL.tx_hash after sending the payment.The HTTP API uses an API key plus x402-style signed payments:
POST /auth/provision to get a free API key.X-Payment to POST /verify.The HTTP API implements a 402 Payment Required flow for paid requests after the free tier is exhausted.
/verify with a URL.402 Payment Required with payment instructions.X-Payment header.POST /verifyVerifies that a source resolves and returns attestation metadata. Requires:
Authorization: Bearer <api_key>X-Payment after the free tier is exhaustedHeaders:
| Header | Description |
|---|---|
Authorization |
API key returned by POST /auth/provision |
X-Payment |
Signed x402/EIP-3009 payment payload after the free tier |
Request Body:
{
"url": "https://base.org",
"claim": "Base is an Ethereum L2"
}
Success Response (200 OK):
{
"url": "https://base.org",
"final_url": "https://base.org/",
"is_live": true,
"status_code": 200,
"redirected": false,
"ssl_valid": true,
"checked_at": "2026-04-02T12:00:00Z",
"content_type": "text/html",
"content_length_bytes": 31245,
"title": "Base",
"description": "Base is a secure, low-cost, builder-friendly Ethereum L2.",
"content_sha256": "9d72c4...",
"claim": "Base is an Ethereum L2",
"claim_found": true,
"claim_match_method": "substring",
"paid": false,
"free_requests_remaining": 49
}
citation attestation for agentstruth layer, general fact-checking, and multi-tool expansiondocs/product-positioning.md, docs/user-validation.md, and docs/user-validation-proxy.md# 1. Clone and Install
git clone https://github.com/cristiano-c1/truth-anchor-agent
cd truth-anchor-agent
pip install -r requirements.txt
# 2. Configure
echo "MY_WALLET_ADDRESS=0x367B9193D4F9cb4877Ca58E6F3ce944d761d8009" > .env
# 3. Run
uvicorn main:app --reload
Distributed under the MIT License. See LICENSE for more information.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"truth-anchor-agent": {
"command": "npx",
"args": []
}
}
}