Explore TruthLens, an AI-powered platform for detecting and verifying misinformation across web sources and news.
TruthLens is an advanced Model Context Protocol (MCP) server designed to empower AI applications such as Claude Desktop, Continue, Cursor, and others with robust tools for detecting, analyzing, and verifying potential misinformation. Built using Python and the MCP framework, it offers a comprehensive suite of features that allow automated fact-checking and misinformation monitoring, ensuring that AI assistants can provide reliable information in real-time.
TruthLens MCP Server boasts several key capabilities that enhance the functionality of AI applications:
The architecture of TruthLens MCP Server is designed to be flexible and scalable, ensuring seamless integration with MCP clients. The server is structured into three main layers:
ingest_url()
: Extracts web content directly using provided URLs.extract_claims()
: Identifies and extracts claims within text.verify_claim()
: Evaluates the accuracy of identified claims based on multiple data sources.search_news()
: Sift through news articles to find relevant information.analyze_source()
: Analyzes source reliability for more accurate assessments.Follow these steps to install TruthLens using the Universal Virtual Environment (UV):
pip install uv
git clone <repository-url>
cd MCP\ Build
uv venv
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate
uv pip install -r requirements.txt
Create a new file named .env
in the root directory and add your API keys using the following format:
# TruthLens API Keys
GEMINI_API_KEY=your_gemini_api_key_here
NEWSAPI_KEY=your_newsapi_key_here
REDDIT_CLIENT_ID=your_reddit_client_id_here
REDDIT_CLIENT_SECRET=your_reddit_client_secret_here
REDDIT_USER_AGENT=TruthLens/0.1 (by /u/YourUsername)
Important Notes:
.env
file to version control.python run_server.py
If UV is not installed, you can use pip:
python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate
pip install -r requirements.txt
python run_server.py
truthlens://truthlens/ingest_url(url="https://example.com/article")
truthlens://truthlens/extract_claims(text="5G technology...")
truthlens://truthlens/verify_claim(claim_text="5G technology is harmful to human health.")
truthlens://truthlens/ingest_url(url="https://twitter.com/community/status/123456")
truthlens://truthlens/extract_claims(text="vaccines...autism")
truthlens://truthlens/verify_claim(claim_text="Vaccines cause autism.")
TruthLens is designed to seamlessly integrate with a variety of MCP clients:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Ensure that your MCP client configurations are correctly set up to connect with the TruthLens server. Use the provided API keys and ensure proper environment variable settings.
A: TruthLens leverages a combination of AI algorithms and external APIs such as Wikipedia, NewsAPI, and Fact Check API to verify claims. The process involves extracting relevant information from diverse sources to provide comprehensive evidence.
A: Yes, TruthLens is designed to be compatible with various MCP clients. However, specific integration requirements may vary, so consult the official documentation for detailed setup instructions.
TruthLens MCP Server stands as a powerful tool for AI applications, offering advanced features like web content ingestion, claim extraction, and verification. By seamlessly integrating with recognized clients such as Claude Desktop and Continue, it enhances the reliability and accuracy of information in real-time. Whether you are developing an AI application or looking to integrate reliable data validation tools into your workflow, TruthLens provides a robust solution that meets modern demands.
This comprehensive documentation positions TruthLens MCP Server as a valuable resource for developers building AI applications focused on misinformation detection and analysis.
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions
Analyze search intent with MCP API for SEO insights and keyword categorization
AI Vision MCP Server offers AI-powered visual analysis, screenshots, and report generation for MCP-compatible AI assistants
Connects n8n workflows to MCP servers for AI tool integration and data access
Expose Chicago Public Schools data with a local MCP server accessing SQLite and LanceDB databases
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support