News Fact-Checker MCP Server

News Fact-Checker MCP Server

Enables fact-checking of news headlines using Google Gemini AI and web search verification, and retrieves trending news topics from RSS feeds with comprehensive multi-source analysis.

Category
Visit Server

README

News Fact-Checker MCP Server

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

Features

  • šŸ” 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.tool decorators

Quick Start

Prerequisites

  • Python 3.11 or higher
  • Google Gemini API key

Installation

  1. Clone the repository:
git clone <repository-url>
cd FactChecker
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up your API key:
export GEMINI_API_KEY="your_gemini_api_key_here"
  1. Run the server:
python -m factchck.news_factcheck

Usage

Fact-Check a Headline

# Example MCP tool call
{
    "tool": "fact_check_headline",
    "arguments": {
        "headline": "NASA announces discovery of water on Mars"
    }
}

Get Trending Topics

# Example MCP tool call
{
    "tool": "get_trending_topics",
    "arguments": {
        "location": "international"  # or "local", "india"
    }
}

Available Tools

fact_check_headline

Verifies news headlines using AI analysis and web search.

Parameters:

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

Returns:

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

get_trending_topics

Retrieves current trending news topics.

Parameters:

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

Returns:

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

Configuration

Environment Variables

  • 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

API Keys

  1. Google Gemini: Get your API key from Google AI Studio
  2. NewsAPI (optional): Get from NewsAPI
  3. Search API (optional): Additional search service API key

Development

Project Structure

FactChecker/
ā”œā”€ā”€ src/
│   └── factchck/
│       └── news_factcheck.py  # Main MCP server
ā”œā”€ā”€ requirements.txt           # Python dependencies
ā”œā”€ā”€ pyproject.toml           # Project configuration
└── README.md               # This file

Building

# Install in development mode
pip install -e .

# Run tests (if available)
python -m pytest

MCP Integration

This server is compatible with:

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

Server Configuration

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

Error Handling

The server includes comprehensive error handling for:

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

Limitations

  • 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

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Version History

  • 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

Support

For issues and questions:

  1. Check the error logs
  2. Verify API key configuration
  3. Ensure network connectivity
  4. Open an issue on GitHub

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured