truth-anchor-agent
An MCP server that provides fact-checking capabilities and truth anchoring for AI agents using verified data sources.
README
⚓️ Truth Anchor Agent
Truth Anchor Agent is an MCP (Model Context Protocol) server that provides a verifiable grounding layer for AI agents. It verifies URL status and content accessibility, gated by on-chain USDC micro-payments on Base via the x402 protocol.
The Problem: AI agents often reference dead links or hallucinate sources. The Solution: A trustless, pay-per-verification service that requires agents to commit a micro-payment before confirming a source's validity.
🛠 Model Context Protocol (MCP) Integration
This server exposes a verify tool that any MCP-compliant LLM (Claude Desktop, ChatGPT, IDEs) can use autonomously.
Registration in Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"truth-anchor": {
"command": "npx",
"args": ["-y", "truth-anchor-agent"],
"env": {
"MY_WALLET_ADDRESS": "0x367B9193D4F9cb4877Ca58E6F3ce944d761d8009"
}
}
}
}
💳 The x402 Flow
The agent implements the HTTP 402 Payment Required standard, enabling seamless AI-to-AI economic transactions.
- Request: Agent calls
/verifywith a URL. - Challenge: Server returns
402 Payment Requiredwith payment instructions. - Payment: Agent executes a 0.005 USDC transfer on Base Mainnet.
- Verification: Agent retries with the transaction hash in the
X-402-Payment-Tokenheader. - Truth: Server validates the hash on-chain (preventing replays) and returns the status.
⚡️ API Reference
POST /verify
Verifies a URL's status. Requires a valid Base transaction hash.
Headers:
| Header | Description |
|---|---|
X-402-Payment-Token |
The transaction hash of the 0.005 USDC payment on Base |
Request Body:
{ "url": "https://base.org" }
Success Response (200 OK):
{
"url": "https://base.org",
"is_live": true,
"status_code": 200,
"payment_verified": true
}
🏗 Tech Stack
- FastAPI — High-performance Python API framework.
- Web3.py — Real-time on-chain verification (Base RPC).
- SQLite — Replay attack prevention and transaction indexing.
- Fly.io — Global edge deployment.
- Base — L2 Ethereum for fast, low-cost USDC payments.
🛠 Local Development
# 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
📜 License
Distributed under the MIT License. See LICENSE for more information.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。