News Fact-Checker

by adityapawar327

Not rated
GitHub

About

Automated fact-checking of news headlines using web search and Google Gemini AI.

Details

Author
adityapawar327
Categories
Search, Other, AI

Setup

Install News Fact-Checker in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/adityapawar327/news-factchecker-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

A modern Model Context Protocol (MCP) server for fact-checking news headlines using AI analysis and web search.

- πŸ”Fact-Check Headlines: Verify news claims using Google Gemini AI and web search
- πŸ“ˆTrending Topics: Get current trending news from RSS feeds
- πŸ€–AI-Powered Analysis: Uses Google Gemini 2.0 Flash for intelligent fact-checking
- 🌐Multi-Source Verification: Searches multiple sources for comprehensive analysis
- ⚑Modern MCP: Built with latest MCP conventions using@mcp.tooldecorators

- Python 3.11 or higher
- Google Gemini API key

git clone <repository-url> cd FactChecker
export GEMINI_API_KEY="your_gemini_api_key_here"
# Example MCP tool call { "tool": "fact_check_headline", "arguments": { "headline": "NASA announces discovery of water on Mars" } }
# Example MCP tool call { "tool": "get_trending_topics", "arguments": { "location": "international" # or "local", "india" } }

Verifies news headlines using AI analysis and web search.

- headline(string): The news headline to fact-check

- Verdict (TRUE/FALSE/PARTIALLY_TRUE/UNVERIFIED/MISLEADING)
- Confidence score
- Truthfulness percentage
- Supporting and contradicting evidence
- Recommendations

- location(string, optional): "international", "local", or "india" (default: "international")

- List of trending topics with titles, sources, and URLs

- GEMINI_API_KEY: Required Google Gemini API key
- NEWS_API_KEY: Optional NewsAPI key for enhanced search
- SEARCH_API_KEY: Optional additional search API key
- Google Gemini: Get your API key fromGoogle AI Studio
- NewsAPI(optional): Get from
NewsAPI
- Search API(optional): Additional search service API key

FactChecker/ β”œβ”€β”€ src/ β”‚ └── factchck/ β”‚ └── news_factcheck.py # Main MCP server β”œβ”€β”€ requirements.txt # Python dependencies β”œβ”€β”€ pyproject.toml # Project configuration └── README.md # This file
# Install in development mode pip install -e . # Run tests (if available) python -m pytest

- Claude Desktop
- MCP CLI
- Any MCP-compatible client

{ "mcpServers": { "news-factcheck": { "command": "python", "args": ["-m", "factchck.news_factcheck"], "env": { "GEMINI_API_KEY": "your_api_key_here" } } } }

The server includes comprehensive error handling for:

- Missing API keys
- Network connectivity issues
- Invalid input validation
- Service unavailability

- Requires internet connection for web search
- Depends on Google Gemini API availability
- RSS feed parsing is simplified (consider using proper XML parser for production)
- Rate limits may apply to API services
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request

MIT License - see LICENSE file for details.

- v3.0.0: Modernized with latest MCP conventions, simplified codebase
- v2.1.0: Previous version with complex multi-source search
- v0.1.0: Initial release
- Check the error logs
- Verify API key configuration
- Ensure network connectivity
- Open an issue on GitHub

Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.

Comprehensive web, news, and social media search and analysis using xAI's Grok API.

Access Jina AI's Search Foundation APIs for web search, news search, and more, tailored for LLMs.

A connector for the Perplexity API to enable web search within the MCP ecosystem.

Objective-driven deep research paid per request via MPP - free daily quick search (news/arXiv), quote-first paid cloud-browser research with cross-source reports. MCP Streamable HTTP, no API key.

About Free multi-engine MCP search server β€” 8 free engines (DDG, Sogou, Bing, Baidu, Wikipedia, Startpage, Yandex, Mojeek), waterfall progressive search, multi-source verification, content enrichment, news search, language auto-detection, rate limit exposure. Zero API keys needed. Self-hostable.

Structural AI Search Readiness MCP. Audit, dry-run fixes, rescore, doctor. No LLM rankings.

Hosted MCP server for the APITube News API: search articles from 500,000+ sources in 60+ languages, filtered by sentiment, entities, topics and source quality.

A search engine for AI applications, providing world knowledge from web pages and various content sources like weather, news, and images.

Fetches the latest news headlines from the Boring News API.

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.