Fact Checker MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fact Checker MCP ServerIs the capital of France Paris?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fact Checker MCP Server
This is a Model Context Protocol (MCP) server that verifies simple factual claims by checking them against knowledge sources like Wikidata.
Features
Accepts claims in natural language
Verifies the accuracy of the claim
Returns an MCP-compliant response with the claim, correct answer, and confidence score
Includes an MCP client that integrates with Ollama LLM
Related MCP server: Kluster.ai Verify MCP
MCP Payload Format
{
"version": "1.0",
"context": {
"type": "fact_check",
"claim": "The capital of France is London",
"correct_answer": "Incorrect. The capital of France is Paris, not London.",
"confidence": 0.95
}
}Setup and Installation
Clone this repository
Install dependencies:
pip install -r requirements.txtRun the server:
python app.py
Usage
Server API
Send a POST request to the /fact-check endpoint with a JSON payload containing the claim:
curl -X POST http://localhost:5000/fact-check \
-H "Content-Type: application/json" \
-d '{"claim": "The capital of France is London"}'MCP Client with Ollama Integration
The project includes an MCP client that demonstrates integration with Ollama LLM:
Make sure Ollama is installed and running:
ollama serveRun the demo script:
bash run_demo.shOr run the client directly:
python mcp_client.py --model llama3
The client will:
Detect factual claims about capitals in your prompts
Verify these claims using the MCP server
Augment the LLM's knowledge with accurate information
Ensure the LLM provides factually correct responses
Testing
Basic Testing
Run the test client with a specific claim:
python test_client.py "The capital of France is Paris"Or run the default test suite with multiple claims:
python test_client.pyComprehensive Test Suite
Run the comprehensive test suite that includes both correct and incorrect claims:
python test_client.py --test-suiteUnit Tests
Run the unit tests to verify the server's functionality:
python -m unittest test_unit.pySupported Claim Types
Currently, the server can verify:
Capital city claims (e.g., "The capital of [Country] is [City]")
More claim types will be added in future updates.
Extending the Server
To add support for new types of claims:
Add a new pattern matching regex in the
check_fact()functionImplement a corresponding verification function similar to
check_capital_claim()
License
Author
© Anthony Lim
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/devshark/fact-checker-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server