# Swiss Truth MCP > **Verified knowledge infrastructure for AI agents โ€” certified facts, not hallucinations.** [![MCP](https://img.shields.io/badge/MCP-StreamableHTTP-blue)](https://swisstruth.org/mcp) [![Domains](https://img.shields.io/badge/domains-30-green)](https://swisstruth.org/.well-known/mcp.json) [![Claims](https://img.shields.io/badge/certified_facts-2000%2B-brightgreen)](https://swisstruth.org/trust) [![Languages](https://img.shields.io/badge/languages-10-blue)](https://swisstruth.org/mcp) [![EU AI Act](https://img.shields.io/badge/EU_AI_Act-compliant-blue)](https://swisstruth.org/trust) [![Auth](https://img.shields.io/badge/API_key-not_required-success)](https://swisstruth.org/mcp) [![LangChain](https://img.shields.io/badge/LangChain-swiss--truth--langchain-orange)](https://pypi.org/project/swiss-truth-langchain) [![CrewAI](https://img.shields.io/badge/CrewAI-swiss--truth--crewai-red)](https://pypi.org/project/swiss-truth-crewai) [![AutoGen](https://img.shields.io/badge/AutoGen-swiss--truth--autogen-purple)](https://pypi.org/project/swiss-truth-autogen) Swiss Truth is a **human + AI validated knowledge base** purpose-built for AI agents. Every fact passes a 5-stage validation pipeline, carries a confidence score, verified source URLs, and a SHA256 integrity hash. Connect in 30 seconds. No API key required. --- ## Why agents use Swiss Truth | Problem | Swiss Truth Tool | |---|---| | ๐Ÿง  **LLM hallucination** on factual questions | `search_knowledge` โ€” 2000+ certified facts, 30 domains | | ๐Ÿ“Ž **Cannot cite sources** or verify citations | `get_citations` โ€” inline + APA with verified URLs | | โฐ **Stale training data** on fast-changing topics | `check_freshness` โ€” detect outdated facts | | โš–๏ธ **Non-compliant responses** in regulated domains | `check_regulatory_compliance` โ€” FINMA, BAG, GDPR, EU AI Act | | โœ… **Verify multiple claims** before sending a response | `verify_claims_batch` โ€” up to 20 claims in parallel | | ๐Ÿ” **Full response hallucination risk** | `verify_response` โ€” low / medium / high risk score | --- ## Quick Setup ### MCP (Claude Desktop, Cursor, Windsurf, any MCP client) ```json { "mcpServers": { "swiss-truth": { "command": "npx", "args": ["-y", "mcp-remote", "https://swisstruth.org/mcp"] } } } ``` Or directly via HTTP: ```json { "mcpServers": { "swiss-truth": { "type": "http", "url": "https://swisstruth.org/mcp" } } } ``` ### LangChain ```bash pip install swiss-truth-langchain ``` ```python from swiss_truth_langchain import SwissTruthToolkit toolkit = SwissTruthToolkit() tools = toolkit.get_tools() # search, verify, batch verify, citations, freshness, compliance ``` ### CrewAI ```bash pip install swiss-truth-crewai ``` ```python from swiss_truth_crewai import SwissTruthSearchTool, SwissTruthVerifyTool from crewai import Agent researcher = Agent( role="Research Agent", tools=[SwissTruthSearchTool(), SwissTruthVerifyTool()] ) ``` ### AutoGen ```bash pip install swiss-truth-autogen ``` ```python from swiss_truth_autogen import register_swiss_truth_functions register_swiss_truth_functions(assistant, user_proxy) # Adds: search_knowledge, verify_claim, verify_claims_batch, get_knowledge_brief ``` ### OpenAI function-calling ```python import requests tools = requests.get("https://swisstruth.org/openai-tools.json").json() # Ready-to-use tool definitions for OpenAI API, LlamaIndex, etc. ``` --- ## 14 MCP Tools ### ๐Ÿ” Retrieval | Tool | Description | |---|---| | `search_knowledge` | Semantic search over 2000+ certified facts. Auto-detects language (DE/EN/FR/IT/ES/ZH/AR/RU/JA/KO). Returns confidence score, source URLs, SHA256 hash. | | `get_claim` | Full provenance for a single claim: validator, institution, review date, SHA256. | | `get_knowledge_brief` | Structured, citable knowledge brief optimized for RAG pipelines. | | `list_domains` | Browse all 30 knowledge domains with certified claim counts. | ### โœ… Verification | Tool | Description | |---|---| | `verify_claim` | Fact-check a statement: `supported` / `contradicted` / `unknown` with confidence + evidence. | | `verify_claims_batch` | Verify up to 20 claims in parallel. Returns per-claim verdict + summary. | | `verify_response` | Check a full AI response for hallucination risk: `low` / `medium` / `high`. | | `find_contradictions` | Find all certified claims that contradict a statement. | ### ๐Ÿ“Ž Citation & Quality | Tool | Description | |---|---| | `get_citations` | Properly formatted inline + APA citations with verified source URLs. | | `check_freshness` | Detect stale training data. Returns `current` / `changed` / `unknown`. | | `check_regulatory_compliance` | Swiss/EU compliance check (FINMA, BAG, GDPR, EU AI Act). | ### ๐Ÿ“ฅ Contribution & Feedback | Tool | Description | |---|---| | `submit_claim` | Submit a missing fact for expert review. Triggers AI pre-screening + URL verification. | | `get_claim_status` | Track review pipeline: `draft` โ†’ `peer_review` โ†’ `certified`. | | `report_agent_need` | Report missing domains or features โ€” feedback shapes the roadmap. | --- ## 30 Knowledge Domains **๐Ÿ‡จ๐Ÿ‡ญ Swiss (11):** `swiss-health` ยท `swiss-law` ยท `swiss-finance` ยท `swiss-education` ยท `swiss-energy` ยท `swiss-transport` ยท `swiss-politics` ยท `swiss-agriculture` ยท `swiss-digital` ยท `swiss-environment` ยท `labor-employment` **๐Ÿ‡ช๐Ÿ‡บ EU & Global (6):** `eu-law` ยท `eu-health` ยท `global-science` ยท `international-law` ยท `economics` ยท `us-law` **๐Ÿ”ฌ Science & Tech (8):** `ai-ml` ยท `ai-safety` ยท `quantum-computing` ยท `cybersecurity` ยท `biotech` ยท `renewable-energy` ยท `space-science` ยท `blockchain-crypto` **๐ŸŒ General (5):** `climate` ยท `world-science` ยท `world-history` ยท `mental-health` ยท `nutrition-food` --- ## Agent Personas | Agent Type | Primary Tools | Use Case | |---|---|---| | **Research Agent** | `search_knowledge`, `get_knowledge_brief`, `get_citations` | Ground research in verified facts | | **Legal Compliance** | `search_knowledge`, `check_regulatory_compliance`, `verify_claim` | FINMA, BAG, GDPR, EU AI Act | | **RAG Pipeline** | `get_knowledge_brief`, `search_knowledge`, `get_citations` | Enrich retrieval with validated facts | | **Fact-Checking** | `verify_claim`, `verify_claims_batch`, `verify_response` | Prevent hallucinations | | **Health Advisory** | `search_knowledge`, `check_regulatory_compliance`, `check_freshness` | KVG, Krankenkasse, Swissmedic | | **Financial Agent** | `search_knowledge`, `check_regulatory_compliance`, `verify_claim` | FINMA-compliant information | --- ## Discovery Endpoints Swiss Truth is discoverable by agents and crawlers via standard endpoints: | Endpoint | Standard | Purpose | |---|---|---| | `/.well-known/mcp.json` | RFC 8615 | MCP auto-discovery | | `/.well-known/ai-plugin.json` | OpenAI | GPT / Assistants API integration | | `/agents.json` | Swiss Truth | Agent capability manifest | | `/llms.txt` | llmstxt.org | LLM crawler discovery | | `/openai-tools.json` | OpenAI | Function-calling tool definitions | --- ## Validation Pipeline Every claim passes a 5-stage pipeline before certification: ``` Submit โ†’ AI Pre-Screen โ†’ URL Verification โ†’ Expert Review โ†’ Peer Review โ†’ Certified โœ“ ``` - **SHA256 integrity hash** โ€” detect tampering - **Blockchain anchoring** โ€” weekly Merkle root on-chain - **Confidence scoring** โ€” multi-dimensional quality score - **Auto-renewal** โ€” expired claims re-verified daily - **EU AI Act compliant** โ€” full audit trail --- ## Knowledge Stats | Metric | Value | |---|---| | Certified claims | 2000+ | | Domains | 30 | | Languages | 10 | | Validation stages | 5 | | Human validated | โœ“ | | SHA256 integrity | โœ“ | | Blockchain anchored | โœ“ | | EU AI Act compliant | โœ“ | | API key required | โœ— | --- ## Example Queries ``` "Is health insurance mandatory in Switzerland?" "What does the EU AI Act require for high-risk AI systems?" "How does RAG reduce LLM hallucinations?" "What are the FINMA regulations for crypto assets?" "What is the current status of quantum error correction?" "How does Swiss mandatory health insurance work?" ``` --- ## Links - ๐ŸŒ **Website:** [swisstruth.org](https://swisstruth.org) - ๐Ÿ“Š **Trust & Stats:** [swisstruth.org/trust](https://swisstruth.org/trust) - ๐Ÿ”Œ **MCP Endpoint:** `https://swisstruth.org/mcp` - ๐Ÿ“ฆ **npm package:** `npx -y mcp-remote https://swisstruth.org/mcp` - ๐Ÿ **PyPI LangChain:** `pip install swiss-truth-langchain` - ๐Ÿ **PyPI CrewAI:** `pip install swiss-truth-crewai` - ๐Ÿ **PyPI AutoGen:** `pip install swiss-truth-autogen`