avoid-ai-writing-mcp
avoid-ai-writing-mcp
一个本地、确定性的 MCP 服务器,用于通过已发布的 avoid-ai-writing-detector 审计文稿。
它提供两个只读工具:
score_text返回一个紧凑的评分、分类、置信度和计数。audit_text额外提供每个被标记的模式、建议的替代方案、统计信息以及高亮的句子区域。
该服务器不进行任何网络调用,也不使用语言模型。文本始终留在本地 MCP 进程内。评分只是启发式的写作模式信号,并不能证明文本由人类还是模型撰写。
环境要求
Node.js 18 或更高版本
支持本地 stdio 服务器的 MCP 主机
Related MCP server: Byakugan: Private, open-source AI-text checker
从 GitHub 运行
将该服务器添加到 Claude Code:
claude mcp add avoid-ai-writing -- npx -y github:conorbronsdon/avoid-ai-writing-mcp或者将其添加到 MCP JSON 配置中:
{
"mcpServers": {
"avoid-ai-writing": {
"command": "npx",
"args": ["-y", "github:conorbronsdon/avoid-ai-writing-mcp"]
}
}
}当这个包发布到 npm 后,将 GitHub 包引用替换为 avoid-ai-writing-mcp。
该包使用 stdio 进行协议消息。它不会打开端口,也不会将输入发送到任何 API。
工具输入
两个工具都接收:
字段 | 类型 | 必填 | 说明 |
| string | 是 | 要在本地评估的文本(最多 100,000 个字符)。 |
| enum | 否 |
|
technical 模式可以减少代码相关写作中常见模式带来的噪音。其他模式则保留检测器上下文相关的行为。
开发
npm install
npm test
npm run inspectnpm run inspect 会针对本地 stdio 入口启动官方 MCP Inspector。
范围
本包有意不提供重写工具。重写需要编辑判断,而且通常需要托管模型;添加重写会破坏该服务器确定性、本地化、隐私保护的约定。
许可
MIT
Available Tools
2 toolsaudit_textAudit text for AI-writing patternsARead-onlyIdempotent
Audit text locally with the deterministic Avoid AI Writing detector. Returns the score plus up to 100 flagged patterns and 100 highlighted sentence regions, with truncation counts. This is a heuristic writing audit, not proof of authorship; use score_text for a compact result.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to evaluate locally. The text is not sent to any network service. | |
| context | No | Writing context. Technical mode suppresses patterns common in code-adjacent prose; defaults to general. | general |
Output Schema
| Name | Required | Description |
|---|---|---|
| label | Yes | |
| score | Yes | |
| issues | Yes | |
| context | Yes | |
| scorable | Yes | |
| truncated | Yes | |
| confidence | Yes | |
| highlights | Yes | |
| statistics | Yes | |
| word_count | Yes | |
| issue_count | Yes | |
| probabilities | Yes | |
| classification | Yes | |
| unscored_reason | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, and the description adds valuable behavior beyond that: the audit runs locally, is deterministic, returns up to 100 flagged patterns and 100 highlighted sentence regions, and includes truncation counts. It also disclaims that the result is heuristic rather than proof, which is essential context for the agent's interpretation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences, each earning its place: one identifies the action and method, one lists the return bounds and truncation behavior, and one sets expectations and routes to the sibling. The most decision-relevant facts are front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the output schema exists, the annotations cover safety, and the description covers local processing, deterministic behavior, response bounds, truncation counts, and the heuristic caveat, an agent has everything it needs to select and invoke the tool correctly. The only thing left to the schema is the context enum, which is appropriately delegated.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the text and context parameters are already documented. The description adds no extra parameter semantics, but it doesn't need to because the schema carries that weight. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action ('Audit text'), names the concrete detector ('the deterministic Avoid AI Writing detector'), and distinguishes this tool from its sibling score_text by describing the richer audit output. An agent can tell exactly what this tool does and how it differs from the sibling without opening the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear usage context: it is a local, deterministic, heuristic writing audit and not proof of authorship. It explicitly says to use score_text when a compact result is needed, naming the alternative and the condition that selects it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
score_textScore text for AI-writing patternsARead-onlyIdempotent
Score text locally with the deterministic Avoid AI Writing detector. Returns a compact 0-100 pattern score, classification, confidence, and counts. This is a heuristic signal, not proof of authorship; use audit_text when individual findings are needed.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to evaluate locally. The text is not sent to any network service. | |
| context | No | Writing context. Technical mode suppresses patterns common in code-adjacent prose; defaults to general. | general |
Output Schema
| Name | Required | Description |
|---|---|---|
| label | Yes | |
| score | Yes | |
| context | Yes | |
| scorable | Yes | |
| confidence | Yes | |
| word_count | Yes | |
| issue_count | Yes | |
| probabilities | Yes | |
| classification | Yes | |
| unscored_reason | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover read-only, idempotent, and non-destructive hints. The description adds critical behavioral traits: the detector is deterministic, it is a heuristic signal not proof of authorship, and it operates locally. These go beyond the annotations and help calibrate trust in the output.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with no filler. The action and scope are front-loaded, the caveat is stated compactly, and the alternative is offered in the same breath. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has a rich output schema, complete parameter documentation, and strong annotations. The description covers the operation's purpose, the caveat about heuristic results, and the routing to audit_text. Nothing an agent needs to call it correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% – both parameters have clear descriptions (text is local, context has default and behavior). The description itself does not add parameter-specific semantics beyond the schema, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Score'), a resource ('text'), and the exact detector ('Avoid AI Writing'). It also names the sibling tool 'audit_text' and differentiates by saying when audit_text is needed, so it clearly distinguishes from the alternative.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly says to 'use audit_text when individual findings are needed', implying this tool is for a compact score. It also notes the operation is local and deterministic, giving clear context for when to choose this tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
- Changed
audit_text4 fields changed- added
Output schema / properties / highlights / maxItemsAdded value: +100 - added
Output schema / properties / issues / maxItemsAdded value: +100 - added
Output schema / properties / truncatedAdded value: +{ + "additionalProperties": false, + "properties": { + "highlights": { + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer" + }, + "issues": { + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer" + } + }, + "required": [ + "issues", + "highlights" + ], + "type": "object" +} - changed
Output schema / requiredPrevious value: -[ - "score", - "label", - "scorable", - "unscored_reason", - "classification", - "confidence", - "probabilities", - "word_count", - "issue_count", - "context", - "issues", - "statistics", - "highlights" -]New value: +[ + "score", + "label", + "scorable", + "unscored_reason", + "classification", + "confidence", + "probabilities", + "word_count", + "issue_count", + "context", + "issues", + "statistics", + "highlights", + "truncated" +]
2 tool updates
v0.1.0- First observed
audit_text - First observed
score_text
TDQS
Scored across 2 tools
score_text and audit_text have clearly separated purposes: one returns a compact classification while the other returns detailed flagged patterns and highlighted regions. The cross-references in the descriptions remove any real ambiguity about which tool to use.
Both tool names follow the same verb_noun pattern with lowercase snake_case and concise action words. This is fully consistent and predictable.
Two tools is slightly below the typical 3-15 range, but for a narrowly scoped local text detector the pair covers both a compact score and a detailed audit. Each tool has a distinct, useful role, so the small count feels intentional rather than inadequate.
The server's apparent domain is deterministic AI-writing detection on text, and the two tools cover the full user journey: getting a quick judgment or drilling into specific flagged patterns and highlighted regions. There are no obvious missing operations for this stated purpose.
Maintenance
Related MCP Connectors
DraftCheck: flags AI-writing patterns in prose with fix hints. Deterministic linter, not a detector.
Find AI-isms with evidence and fingerprint a writing voice from samples. 3 of 5 free.
Deterministic prompt-injection detector; signed, offline-verifiable verdicts. Not an LLM.
Six tools for SEO and AI-readability audits. 91 checks, 11 score modules.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI attribution audits and quick transparency checks on written content, providing authorship analysis and segment breakdowns for editorial review.22MIT
- AlicenseAqualityDmaintenanceA private, open-source AI-text checker. Get a read on whether text looks AI-written, the exact AI-tell spans to fix, a reuse check, and a grammar pass.4MIT
- AlicenseAqualityAmaintenanceBilingual (EN/ES) AI-writing detection that shows the evidence instead of a percentage: named tells with line and column, hidden-character inspection, and citation cross-checking against a document's own bibliography. Seven of its nine tools run entirely locally and never touch the network.1027MIT
- AlicenseAqualityCmaintenanceEnables editorial content QA over the Model Context Protocol with four local tools that analyze readability, AI-sounding language, SEO on-page factors, and produce full reports where every finding includes an actionable fix.41MIT