readability-claude
Enables Claude to analyze and improve readability of text using local deterministic metrics like Flesch Reading Ease and lexical diversity, without sending data to external services.
README
Readability for Claude
Keep Claude's prose clear without sending the draft to another service. Readability adds a local, deterministic readability check to Claude Code and Claude Desktop. Claude can score a draft, rewrite it, and check the result again.
- Flesch Reading Ease: 0-100, higher is easier
- MTLD and type-token ratio for lexical diversity
- Sentence, paragraph, and word statistics
- Local processing with no telemetry or network requests
- Pure-JavaScript analyzer with no runtime dependencies
“Rewrite this release note in plain English. Keep every fact and aim for a Reading Ease score of at least 60.”
Install
Claude Code plugin
Run these commands inside Claude Code:
/plugin marketplace add alesdrobysh/readability-claude
/plugin install readability@readability-marketplace
Then invoke /readability, or ask Claude to check or simplify substantial
English prose.
Requires Node.js 18 or newer on PATH.
Claude Desktop MCP Bundle
Download readability.mcpb from the
latest release,
open it, and approve the installation in Claude Desktop. The
analyze_readability MCP tool will then be available.
The bundle contains its Node dependencies and needs no API key or setup. Its bundled server requires a host with Node.js 20 or newer.
Command line
From a checkout:
printf '%s\n' 'Your draft goes here.' | node src/check.js
printf '%s\n' 'Your draft goes here.' | node src/check.js --threshold 60
The threshold command exits 1 when the draft misses the target. Invalid input or options exit 2.
Example output
{
"word_count": 174,
"sentence_count": 12,
"paragraph_count": 4,
"avg_sentence_length": 14.5,
"avg_word_length": 4.8,
"ttr": 0.61,
"mtld": 74.2,
"flesch_reading_ease": 64.3,
"complexity_label": "Moderate"
}
| Field | Meaning |
|---|---|
flesch_reading_ease |
0-100. 70+ simple, 50-69 moderate, below 50 complex. |
complexity_label |
Bucket derived from Reading Ease. |
mtld |
Lexical diversity; null below 50 words. |
ttr |
Unique tokens divided by all tokens. |
avg_sentence_length |
Words per sentence. |
avg_word_length |
Characters per word. |
word_count, sentence_count, paragraph_count |
Surface statistics. |
Markdown code blocks and inline code are removed. Formatting markers are stripped while prose content, headings, links, and list text are retained. This is intentionally a small Markdown heuristic, not a complete parser.
What this score can and cannot do
This project currently supports English prose. Its syllable counter is a small English heuristic, not a dictionary. Flesch Reading Ease rewards short sentences and short words; it does not understand meaning, accuracy, tone, or style. Use the score as a guardrail against bloat, not a target to game.
Do not use it on source code, logs, command output, non-English prose, or tiny samples.
Privacy and security
Analysis happens in the local Node process. The analyzer:
- makes no network requests;
- does not persist text (the Claude host may retain conversation data);
- starts no network listener;
- uses no API keys or telemetry.
The MCP Bundle uses stdio to communicate with its host. See SECURITY.md to report a vulnerability.
Development
npm install
npm test
npm run validate:mcpb
npm run build:mcpb
# -> readability.mcpb and readability.mcpb.sha256
src/analyzer.js and src/check.js are canonical. The build copies them into
the Claude Code plugin and MCP Bundle before packaging, and the test suite
checks that all copies remain identical.
Project layout:
src/ analyzer and CLI source
plugin/ Claude Code plugin
mcpb/ Claude Desktop MCP Bundle source
test/smoke.js dependency-free smoke tests
scripts/build-mcpb.sh validated, lockfile-based bundle build
.claude-plugin/ self-hosted Claude Code marketplace
.github/workflows/ CI and release automation
See CONTRIBUTING.md for development and release checks.
License
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。