io.github.carlisia/mcp-factcheck

平台与服务

by carlisia

基于 semantic search 与 AI 的 MCP 服务器,可按 MCP specification 对内容进行校验与一致性检查。

什么是 io.github.carlisia/mcp-factcheck

基于 semantic search 与 AI 的 MCP 服务器,可按 MCP specification 对内容进行校验与一致性检查。

README

MCP Fact-Check MCP Server

An MCP Server for validating code or content against the official Model Context Protocol (MCP) specification to ensure technical accuracy and prevent the spread of misinformation.

📦 View in MCP Registry - Available in the official MCP Registry

📋 View Project Roadmap - See planned features and development progress

🏗️ Design Documentation - Technical design and implementation details

Overview

The MCP Fact-Check MCP Server helps ensure technical accuracy when coding or writing about MCP by comparing content against official specifications. It uses:

  • Semantic search with OpenAI embeddings to find relevant specification sections
  • AI-powered validation to detect inaccuracies and suggest corrections
  • Compound claim decomposition to validate complex statements with multiple assertions
  • Multiple spec versions support (draft, 2025-06-18, 2025-03-26, 2024-11-05)

Features

MCP Tools Exposed

  1. check_mcp_claim - Comprehensive validation of MCP-related content

    • Validates multi-claim content (documentation, tutorials, bullet points)
    • Automatically decomposes compound claims (e.g., "X and Y") for accurate validation
    • Provides step-by-step validation workflow
    • Identifies missing best practices and modal verb issues
    • Returns corrected content with confidence scores
  2. check_mcp_quick_fact - Quick fact-checking for single MCP claims

    • Validates single sentences or quick questions
    • Returns concise ✓/✗ verdict with explanation
    • Uses aggressive search strategies for accuracy
    • Perfect for "Does MCP support X?" questions
  3. search_spec - Searches MCP specifications using semantic similarity

    • Returns most relevant specification sections
    • Supports all specification versions
  4. list_spec_versions - Lists available MCP specification versions

    • Shows version dates and descriptions
    • Indicates which version is current

MCP Prompts Available

  1. migrate-mcp-content - Guides content migration between MCP specification versions

    • Validates content against source specification first
    • Identifies changes between specification versions
    • Provides step-by-step migration guidance
    • Works with any type of MCP-related content
    • Preserves the original tone, style, and voice when making corrections or suggestions

    Parameters:

    • current_version (required): Source MCP specification version (e.g., "2024-11-05", "2025-06-18")
    • target_version (required): Target MCP specification version to migrate to (e.g., "draft")
    • update_scope (optional): Determines how aggressive the migration should be
      • critical_only: Fix only critical inaccuracies and breaking changes (minimal changes)
      • enhancement_focused: Fix issues and improve clarity, align with best practices
      • comprehensive: Complete review with all improvements and enhanced clarity
      • Default: comprehensive

Installation

The MCP Fact-Check server is available through the Model Context Protocol registry. Install it directly from your MCP client:

For Claude Desktop and other MCP clients:

  • Search for "mcp-factcheck" in your client's server marketplace
  • Click install
  • Provide your OpenAI API key when prompted

That's it! The server will be automatically configured and ready to use.

For developers: If you need to build from source or contribute to the project, see INSTALL.md for development setup instructions.

Observability

Visual Tracing with Arize Phoenix

For a beautiful, AI-focused trace visualization UI, set up Arize Phoenix:

  1. Install and start Phoenix:
bash
# Install Phoenix
pipx install arize-phoenix

# Start Phoenix server
phoenix serve
  1. Update the Host config to send traces to Phoenix:
json
{
  "mcpServers": {
    "mcp-factcheck": {
      "command": "/path/to/bin/mcp-factcheck-server",
      "args": [
        "--data-dir",
        "/path/to/data/embeddings",
        "--telemetry",
        "--otlp-endpoint",
        "http://localhost:6006"
      ],
      "env": {
        "OPENAI_API_KEY": "your-api-key"
      }
    }
  }
}
  1. View traces at: http://localhost:6006

What you'll see in Phoenix:

  • Beautiful AI-focused interface designed for LLM applications
  • Complete validation pipeline timeline with clear visual hierarchy
  • Embedding generation performance and OpenAI API call tracking
  • Vector search visualization with similarity scores
  • Per-chunk validation confidence levels and quality metrics
  • Cost tracking for OpenAI API usage (or whichever llm is being used for embedding the input content/code)
  • Clean, intuitive navigation focused on AI workflows

Phoenix is specifically designed for AI/ML observability and provides a much more user-friendly experience than traditional tracing tools.

Development

Building

bash
# Build all components
go build -o bin/mfc ./cmd/server
go build -o bin/specloader ./utils/cmd

# Run tests
go test ./...

Updating Specifications

The project includes pre-extracted MCP specifications and embeddings for all versions. To check when the draft specification was last updated, see data/SPEC_METADATA.json:

bash
# View draft update information
cat data/SPEC_METADATA.json | jq '.specs.draft'

To update the draft specification:

bash
./bin/specloader spec --version draft
./bin/specloader embed --version draft
./bin/specloader embed --version draft-fine

To add a new specification version:

bash
./bin/specloader spec --version 2025-12-15
./bin/specloader embed --version 2025-12-15
./bin/specloader embed --version 2025-12-15-fine

All specification extraction dates and source commits are automatically tracked in data/SPEC_METADATA.json.

Testing Tools

Test the server using the included test client:

bash
# Build test client
go build -o bin/factcheck-curl ./cmd/factcheck-curl

# Test tools
./bin/factcheck-curl --cmd ./bin/mfc --data-dir ./data/embeddings tools/list
./bin/factcheck-curl --cmd ./bin/mfc --data-dir ./data/embeddings tools/call validate_content '{"content":"MCP is a protocol"}'

# Test prompts
./bin/factcheck-curl --cmd ./bin/mfc --data-dir ./data/embeddings prompts/list

# Get migration prompt with minimal parameters
./bin/factcheck-curl --cmd ./bin/mfc --data-dir ./data/embeddings prompts/get migrate-mcp-content '{"current_version":"2024-11-05","target_version":"draft"}'

# Get migration prompt with all parameters
./bin/factcheck-curl --cmd ./bin/mfc --data-dir ./data/embeddings prompts/get migrate-mcp-content '{
  "current_version": "2024-11-05",
  "target_version": "2025-06-18",
  "update_scope": "critical_only"
}'

Architecture

See DESIGN.md for the complete architecture documentation.

Environment Variables

  • OPENAI_API_KEY - Required for embedding generation and content validation
  • GITHUB_TOKEN - Optional, for higher GitHub API rate limits when extracting specs

License

MIT License. See LICENSE for details.

常见问题

io.github.carlisia/mcp-factcheck 是什么?

基于 semantic search 与 AI 的 MCP 服务器,可按 MCP specification 对内容进行校验与一致性检查。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描114.1k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描114.1k

MCP服务构建器

by alirezarezvani

Universal
热门

从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。

帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。

平台与服务
未扫描10.2k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
83.4k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.4k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
35.4k

评论