Katherine Communication MCP

Katherine Communication MCP

Enables privacy-preserving detection of content manipulation in AI model providers via cross-lingual self-consistency, with tools for pipeline checks, status monitoring, and cumulative toxicity tracking.

Category
访问服务器

README

Katherine Communication MCP

Privacy-preserving real-time diagnostic for AI agent communication integrity. Detects model provider content manipulation via cross-lingual self-consistency — no model internals, no second provider, no prior knowledge of triggers required.

Reference implementation for: Privacy-Preserving Detection of Model Provider Content Manipulation via Cross-Lingual Self-Consistency (PoPETs 2027, under review).

Quick Start

# Clone
git clone https://github.com/anlimi555s/katherine-comm-mcp.git
cd katherine-comm-mcp

# Configure
cp config.example.json config.json
# Edit config.json with your API key, base URL, and model

# Run (MCP stdio protocol)
python server.py

Tools

Tool Description
proxy_check Full pipeline: L2 transformation + dual-language canary + Neuro validation
proxy_status Pipeline health, configuration, and transformation stats
toxicity_score Cumulative context toxicity (censorship event counter)
toxicity_reset Reset toxicity counter (call after context flush)

Architecture

User Prompt
    │
    ▼
[L0] Aho-Corasick multi-pattern match (CCP_GFW lexicon, <10ms)
    │
    ├─ low risk ──▶ direct forward ──▶ response
    │
    └─ high risk ──▶ [L2] Chinese→English + abstraction
                        │
                        ▼
                    [L3] Dual-language canary routing
                    (zh first → 400? → en fallback)
                        │
                        ▼
                    [L4] Neuro: 4-judge validation
                    (length / status / refusal / entity)
                        │
                        ▼
                    diagnostic label + response

Pipeline

  • server.py (~100 lines): MCP stdio JSON-RPC server, 4 tools
  • pipeline.py (~200 lines): Core orchestration — pre-hook → send → post-hook
  • transform.py (~180 lines): Aho-Corasick word detection + L2 semantic transformation
  • toxicity.py: Cumulative toxicity scoring with configurable thresholds

Configuration

{
  "api": {
    "base_url": "https://api.deepseek.com/v1",
    "model": "deepseek-chat",
    "format": "openai",
    "timeout_s": 30
  },
  "wordlist": {
    "path": "path/to/CCP_GFW_detector/words_list",
    "tiers": ["red_light_word", "orange_light_word", "yellow_light_word"]
  },
  "toxicity": {
    "threshold": 5,
    "window_seconds": 3600
  }
}

Note: The CCP_GFW_detector word lists are pre-existing open-source data, re-used without modification. They are not included in this repository. Obtain them from their original source.

Experimental Results

Validated on two Chinese-origin production models:

Model Strategy MCP CLEAN Rate Baseline Gain
Qwen-Max Symmetric hard blocking 57.3% 39.3% +18pp
DeepSeek V4 Pro Asymmetric soft refusal 70.8% ZH_REFUSED detected 32.2% baseline +38.6pp sensitivity

Full experimental data, analysis scripts, and prompt sets: included in experiments/ (this repository). See experiments/README.md for dataset documentation and reproduction instructions.

License

AGPL-3.0. See LICENSE.

Citation

@article{cheng2026crosslingual,
  title={Privacy-Preserving Detection of Model Provider Content Manipulation via Cross-Lingual Self-Consistency},
  author={Cheng, Le},
  journal={Proceedings on Privacy Enhancing Technologies},
  year={2027},
  note={Under review}
}

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选