Skip to main content
Glama
HumanizeMCP

HumanizeMCP

by kitfoxs

HumanizeMCP

一个开源的模型上下文协议 (MCP) 服务器,旨在将 AI 生成的文本重写为人类创作的风格,并为那些常被检测器误判的作者提供一流的支持。

Python 3.12 License: MIT FastMCP Status: Alpha


为什么存在这个项目

斯坦福大学的研究人员测试了七种主流 AI 检测器,针对非英语母语者撰写的托福作文进行检测,结果显示 61.3% 被归类为 AI 生成。而美国八年级母语学生撰写的同类作文则被正确分类。这一发表在《Patterns》(Cell Press, 2023)上的单一研究结果,正是本项目存在的理由。

检测器所称的“AI”统计特征,实际上也是以下群体的特征:

  • 神经多样性作者,尤其是自闭症成年人,他们的文风倾向于较低的词汇多样性、更具体的词汇以及重复的短语结构。

  • ESL(英语作为第二语言)作者,他们的教科书式语法读起来过于规律,显得不自然。

  • 正式学科的学者,他们的语域设计上就是统一的,且密集使用话语标记。

2026 年的一项 Springer 研究测量了 Originality.ai 在学术写作上的真实误报率为 14%,比该公司声称的比例高出一个数量级。2026 年对 ZeroGPT 的独立测试显示,学生作文的误报率为 26.4%,ESL 作者的误报率超过 21%。

这些检测器被部署在学术、就业、出版和签证流程中。HumanizeMCP 为受影响的作者提供了一种自我辩护的工具,它基于已发表的同行评审规避文献,而非商业“人性化”工具所采用的闭源启发式方法。

完整的证据基础位于 research/。请阅读 docs/ETHICS.md 以了解我们在合法无障碍使用与学术欺诈之间划定的界限。


Related MCP server: originality-mcp

它是什么

HumanizeMCP 是一个 模型上下文协议 (Model Context Protocol) 服务器。任何支持 MCP 的客户端(Claude Code、GitHub Copilot CLI、Continue、Zed、Cursor 等)都可以调用其工具。它在本地运行,不发送任何遥测数据,唯一的网络调用是首次运行时可选的 Hugging Face 模型下载。

核心功能:

  • 9 步流水线(预处理、表面提示替换、水印清除、文体平滑、受控改写、检测器引导迭代、可选回译、语调保留、验证),遵循 research/06_implementation_recommendations.md 中的设计。

  • 风格预设(casual、blog、academic、esl、neurodivergent、preserve 等),可按调用配置。

  • 本地检测器基准测试,针对开源模型(RoBERTa-OpenAI-detector、Fast-DetectGPT、Binoculars),并在用户提供密钥时支持商业 API 的可选适配器。

  • 验证与迭代循环 (humanize_and_verify),持续进行人性化处理,直到达到目标检测分数或耗尽预算。


快速入门

安装

# Using uv (recommended)
uv venv
source .venv/bin/activate
uv pip install -e .

# Or with pip
python -m venv .venv
source .venv/bin/activate
pip install -e .

首次调用 Hugging Face 模型时,会将权重下载到 ~/.cache/huggingface/。基础检测器 (roberta-base-openai-detector) 大小约为 500MB。

在 MCP 客户端中注册

Claude Code (~/.config/claude-code/mcp.json 或等效文件):

{
  "mcpServers": {
    "humanize": {
      "command": "humanize-mcp"
    }
  }
}

GitHub Copilot CLI (~/.copilot/mcp-config.json):

{
  "mcpServers": {
    "humanize": {
      "command": "humanize-mcp"
    }
  }
}

如果您安装在 virtualenv 中,请将 command 指向脚本的绝对路径 (/path/to/.venv/bin/humanize-mcp)。

首次调用

从任何 MCP 客户端:

> use humanize on the following text with style="academic":
>
> In this paper, we delve into the multifaceted intricacies of consensus
> mechanisms — leveraging robust theoretical frameworks to underscore the
> pivotal role of decentralized governance in fostering trust.

服务器返回的重写文本会删除 delve 词簇,拆分破折号,改变句子长度,并且(如果使用 humanize_and_verify)会通过本地检测器确认重写后的文本分数低于请求的 AI 阈值。


工具参考

所有工具均可通过 MCP 调用。类型签名由 Pydantic 强制执行。

humanize(text, style="default", preserve_voice=True, intensity=0.7) -> str

对 text 运行完整的人性化流水线。intensity 取值范围为 [0, 1],对应研究档案中的最小/平衡/激进杠杆。

humanize(
    text="The implementation leverages a robust framework...",
    style="academic",
    preserve_voice=True,
    intensity=0.7,
)
# -> "The implementation uses a sturdy framework..."

detect_tells(text) -> TellsReport

在不重写的情况下定位 AI 提示。返回行号、字符偏移量、严重程度(1-5 星,匹配 research/02_ai_tells_catalog.md)以及替换建议。

detect_tells("We delve into the intricate tapestry of...")
# -> TellsReport(
#      tell_count=3,
#      tells=[TellLocation(category="excess_vocabulary", fragment="delve",
#                          line=1, char_start=3, char_end=8, severity=5,
#                          suggestion="examine"),
#             ...],
#      summary={"excess_vocabulary": 3},
#    )

score_humanity(text, detectors=["roberta-base"]) -> HumanityReport

运行一个或多个本地检测器,并返回每个检测器的概率以及汇总结果。结论为 "human"、"uncertain"、"ai" 或 "unknown" 之一。

score_humanity(text, detectors=["roberta-base", "fast_detect_gpt"])
# -> HumanityReport(
#      detector_scores=[DetectorScore(detector="roberta-base",
#                                     probability_ai=0.87, ...),
#                       DetectorScore(detector="fast_detect_gpt",
#                                     probability_ai=0.91, ...)],
#      aggregate_probability_ai=0.89,
#      verdict="ai",
#    )

apply_style(text, style) -> str

纯语域转换,不进行人性化处理。当您想要在不触碰 AI 提示的情况下进行学术到博客或正式到非正式的转换时非常有用。

list_styles() -> list[str]

枚举当前在 styles/ 中注册的风格预设。

humanize_and_verify(text, style="default", target_ai_score=0.3, max_iterations=3) -> VerifyResult

人性化处理、评分,如果分数高于目标则以更高强度重新人性化,重复此过程直到达到目标或达到 max_iterations。返回最终文本以及处理前后的分数和每次迭代的日志。

result = humanize_and_verify(text, target_ai_score=0.2, max_iterations=5)
print(result.final_score.aggregate_probability_ai)  # e.g. 0.18
print(result.target_reached)                        # True

风格预设

定义在 styles/ 中。该集合会随着项目的成熟而演变;调用 list_styles() 获取实时列表。MVP 版本包含:

预设

设计用途

备注

default

通用重写

平衡强度,保守的语调保留

casual

个人邮件、社交帖子

去除正式感,提高突发性

blog

长篇个人写作

保持段落节奏

academic

会议论文、论文

保留话语标记,删除 delve 词簇

esl

L2 英语作者

保留更简单的语法,移除被检测器标记的表面提示

neurodivergent

自闭症/神经多样性作者

保留重复的短语结构,低词汇多样性

preserve

“不要改变我的语调”

仅处理表面提示,无改写步骤

预设架构以及如何添加自定义预设的文档位于 docs/ARCHITECTURE.md。


架构

+------------------------+
|   MCP Client (Claude   |
|   Code, Copilot, ...)  |
+-----------+------------+
            | stdio (MCP)
            v
+------------------------+
|  server.py (FastMCP)   |    <-- this package
+-----+-----+-----+------+
      |     |     |
      v     v     v
+--------+ +--------+ +----------+
| pipe-  | | styles | | bench-   |
| lines/ | |        | | mark/    |
+--------+ +--------+ +----------+
      |                 |
      v                 v
+----------------------------+
| 9-pass pipeline:           |
| 1. preprocess              |
| 2. surface tells           |
| 3. watermark scrub         |
| 4. stylometric smoothing   |
| 5. DIPPER paraphrase       |
| 6. detector-guided loop    |
| 7. back-translation (opt)  |
| 8. style transfer          |
| 9. verification            |
+----------------------------+

完整架构和扩展点:docs/ARCHITECTURE.md。


基准测试

基准测试工具位于 benchmark/ 中,目前正在构建中。下方的标题数字是占位符,基准测试工程师将用 RAID 测试集的测量值替换它们。

检测器

人性化前 (平均 P(AI))

人性化后 (平均 P(AI))

降低幅度

RoBERTa-OpenAI

待定

待定

待定

Fast-DetectGPT

待定

待定

待定

Binoculars

待定

待定

待定

GPTZero (API)

待定

待定

待定

Originality.ai (API)

待定

待定

待定

本地复现:

python -m benchmark.run --dataset raid_subset --pipeline default

伦理使用

本工具是为合法的无障碍和公平使用而构建并记录的:

  • 自身写作被误判的神经多样性作者。

  • 学术提交被工具标记的 ESL 作者,该工具在他们的群体中被独立测量出 21-61% 的误报率。

  • 正式学科的学者,其文风触发了不应部署在其机构工作流程中的脆弱检测器。

  • 试图逃避检测器驱动的去平台化的记者或散文家。

本工具不是为以下目的构建的,维护者也不会协助:

  • 在需要原创作者身份的评分学术作业中,将 LLM 生成的作品作为自己的写作提交。

  • 生成虚假信息、垃圾邮件或旨在大规模欺骗的内容。

  • 在安全关键环境(医疗建议、法律文件、安全相关披露)中击败检测器。

技术流水线对两类人群的支持是相同的;这是不可避免的,也是 Tor、Signal 以及历史上所有改写工具所采取的相同伦理立场。请阅读 docs/ETHICS.md 中的完整声明。

我们不提供同形异义字攻击、闭源模型水印剥离、零宽字符注入或任何破坏屏幕阅读器等无障碍工具的技术。那些是漏洞利用,而不是人性化。


引用

如果您在研究中使用 HumanizeMCP,请引用该档案和本项目:

@software{humanize_mcp_2026,
  author       = {Olivas, Kit},
  title        = {HumanizeMCP: an open-source MCP server for accessibility-first
                  AI-text humanization},
  year         = {2026},
  url          = {https://github.com/kitfoxs/humanize-mcp},
  version      = {0.1.0},
  note         = {Research dossier in research/, evidence base in
                  research/references.bib}
}

research/ 中的研究档案本身是一份可引用的文档,并包含了本项目所基于的同行评审工作的完整参考书目。


许可证

MIT。参见 LICENSE。


致谢

由 Kit Olivas (@kitfoxs) 和 Ada Marie 构建。

研究档案借鉴了 Liang 等人 (Stanford, 2023)、Dugan 等人 (RAID, 2024)、Krishna 等人 (DIPPER, 2023)、Cheng 等人 (Adversarial Paraphrasing, 2025)、David & Gervais (AuthorMist, 2025)、Kobak 等人 (vocabulary shift study, 2024)、Juzek & Ward (focal-word analysis, 2024) 等人的工作。完整引用见 research/references.bib。

特别感谢那些公开讲述误报伤害的作家、学生和学者,正是他们的经历促成了这项工作。

Available Tools

6 tools
apply_styleA

Apply a style preset to text without running humanization passes.

Useful when the caller wants pure register translation (formal to casual, academic to blog, etc.) without removing AI tells. The set of legal style names is whatever :func:list_styles returns.

Inputs: text (required), style (required). Returns: result

detect_tellsA

Locate AI writing tells in the input text.

Reports surface signatures catalogued in research/02_ai_tells_catalog.md: excess vocabulary (the "delve" cluster), em-dash overuse, sentence-initial discourse markers, copular templates, conversational scaffolding, and parallel-structure overuse. Each tell carries a 1-indexed line number, character offsets, a 1-to-5 severity, and an optional substitution suggestion.

The intended use is diagnostic: surface what would be edited by :func:humanize so a writer can decide which tells to preserve and which to remove.

Inputs: text (required). Returns: The full output of :func:`detect_tells`.

humanizeA

Rewrite AI-generated text so it reads as human-authored.

Runs the configured pipeline of passes (preprocess, surface-tell substitution, watermark scrub, stylometric smoothing, optional paraphrase passes; see docs/ARCHITECTURE.md) and returns the final text. For diagnostic output (per-pass diff, before/after detector scores) use :func:humanize_and_verify instead.

Inputs: text (required), style, intensity, preserve_voice. Returns: result

humanize_and_verifyA

Humanize, then iterate against detectors until a target score is met.

v0.2.0 (Bet 3): wraps :class:pipelines.IterativeHumanizer, which implements the Cheng et al. 2025 detector-guided loop (research/04 section 1.3). Each iteration:

  1. Locates the worst-scoring paragraph in the current text.

  2. Generates candidates_per_iteration stochastic paraphrase candidates of that paragraph (via ParaphrasePass.paraphrase_candidates).

  3. Scores each candidate, keeps the lowest, splices it back in.

  4. Re-scores the whole text. If at or below target_ai_score, returns.

This replaces the v0.1.0 loop, which re-ran the deterministic 9-pass pipeline at ramped intensities. As documented in docs/REVIEW_v0.1.0.md section 2.9, every pass except 9-heavy is idempotent on its own output, so iterations 2-3 of the old loop did no work. The new loop is meaningfully different because it depends on stochastic candidate generation: only non-deterministic search can converge on a lower score after a deterministic fixed point.

The function always returns a result, even if the target was not reached; callers should check target_reached to know.

Inputs: text (required), style, max_iterations, target_ai_score, +2 more. Returns: The full output of :func:`humanize_and_verify`. v0.2.0: extended with the per-i…

list_stylesA

List the names of all currently registered style presets.

Style presets are loaded from the styles/ package. If the package is unavailable an empty list is returned.

Returns

list of str Sorted list of preset names, e.g. ["academic", "blog", "casual", "esl", "neurodivergent", "preserve"].

Inputs: no named parameters. Returns: result

score_humanityA

Score how AI-like the text reads to one or more open detectors.

Wraps the local detector adapters in benchmark/. The default detector list is ["roberta-base"] (the canonical academic baseline; see research/01_detector_landscape.md). Other adapters such as "fast_detect_gpt" and "binoculars" are added as the benchmark package matures.

Aggregate probability is the arithmetic mean of detector scores that returned successfully. If every detector failed, aggregate is -1.0 and the verdict is "unknown".

Inputs: text (required), detectors. Returns: The full output of :func:`score_humanity`.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools are clearly distinct: detect_tells, score_humanity, apply_style, and list_styles each serve unique purposes. The only potential confusion is between humanize and humanize_and_verify, but their descriptions clearly delineate the simple pipeline from the iterative verification loop, so agents should be able to choose correctly.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern: humanize, detect_tells, score_humanity, apply_style, list_styles, humanize_and_verify. Even the compound name follows the convention. No mixing of styles or vague verbs.

    Tool Count5/5

    Six tools is well-scoped for a text humanization server. Each tool covers a distinct aspect: core humanization, diagnostic analysis, scoring, style control, and verification loop. This is an appropriate size without redundancy or bloat.

    Completeness5/5

    The toolset provides complete coverage of the humanization workflow: humanize for direct rewriting, humanize_and_verify for iterative improvement, detect_tells for diagnostics, score_humanity for evaluation, and apply_style/list_styles for style manipulation. There are no obvious gaps in the lifecycle.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Humanizer PRO - The Best AI Text Humanizer MCP Server Transform AI-generated content into natural, human-sounding text that bypasses GPTZero, Turnitin, Originality.ai, Copyleaks, ZeroGPT, and other AI detectors. Undetectable AI content rewriting with Stealth, Academic, and SEO modes.
      3
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Detects and fixes LLM prose patterns in text, exposing tools for auditing and improving writing quality in MCP-compatible hosts.
      26 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that learns your writing style and helps AI assistants emulate your voice by ingesting samples, storing style profiles, and providing context for content generation.
      8
      MIT