home / mcp / fact-check tools mcp server

Fact-check Tools MCP Server

Provides an MCP server for interacting with the Fact Check Tools API via MCP interfaces.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ag2-mcp-servers-fact-check-tools-api": {
      "command": "python",
      "args": [
        "mcp_server/main.py",
        "stdio"
      ],
      "env": {
        "CONFIG": "A JSON string containing the configuration",
        "SECURITY": "Security parameters such as API keys",
        "CONFIG_PATH": "Path to a JSON configuration file (e.g., mcp_server/mcp_config.json)"
      }
    }
  }
}

You run an MCP server to expose a context-aware API that your MCP clients can interact with. This server hosts the Fact-Check Tools API as an MCP endpoint, enabling clients to request data and actions through a standardized protocol while leveraging a local or remote Python-based implementation.

How to use

Start the MCP server in local stdio mode and connect your MCP client to it. You can run the server from your development environment and direct your client to use the local process interface, which is useful for testing and integration into your tooling. The server is designed to work with your existing MCP clients, so you can perform data queries and operations defined by the API in a consistent, protocol-driven way.

How to install

Prerequisites include Python 3.9+ and the ability to install Python packages. You will also need a compatible runtime for development and testing.

# Prerequisites
# Ensure you have Python 3.9 or newer
python --version

# Optional: create a virtual environment
python -m venv venv
source venv/bin/activate  # on Unix or macOS
venv\Scripts\activate  # on Windows

# Install dependencies
pip install -e ".[dev]"

# Alternatively, install using uv for editable mode
uv pip install --editable ".[dev]"

Additional configuration and run details

Run the MCP server in stdio mode using the explicit Python command and script path. You can supply configuration via environment variables if needed.

# Start the MCP server in stdio mode
python mcp_server/main.py stdio