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
Visit Server

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}
}

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