humanpen-mcp
MCP server for HumanPen that lets AI agents work on real documents (.docx, .pptx, .pdf) — humanizing content to lower AI-detection scores, converting citations, condensing, and translating while preserving formatting, tables, images, and citations.
README
humanpen-mcp
Give your AI agent the ability to work on real documents. An MCP server for
HumanPen. Point Claude, Codex, Cursor or any other MCP
client at a .docx, .pptx or .pdf on disk, and it can lower the file's
AI-detection score, convert its citations to another style, condense it to a
word budget, or translate it — formatting, tables, images, citations and
formulas intact.
Website · Pricing · Developer docs
claude mcp add humanpen -s user -e HUMANPEN_API_KEY=hp_your_key -- npx -y humanpen-mcp
"Here's my thesis and the Turnitin report — rewrite just the flagged parts, then put the references in IEEE style."
The agent reads the report, rewrites only the passages it marked, converts the citations, and hands back two file paths. It never had to read the thesis.
Why this instead of pasting text into the chat
It works on the file, not on a copy of the text. Paste a chapter into a chat and you get prose back — no headings, no tables, no figure numbering, no reference list, no equations. HumanPen edits the document itself and returns a document, so what comes out still opens in Word looking like what went in.
The document never enters the model's context. The server reads the file from disk, uploads it, and answers with the path it wrote. A 40-page paper costs you no tokens and is not copied into a transcript.
It can be guided by a detection report. Give it the Turnitin or iThenticate AI Writing PDF and it rewrites only the passages that report flagged, leaving everything else byte-identical. Rewriting a whole document to fix a quarter of it is how citations and meaning get damaged.
One tool call is one finished job. The server uploads, polls, downloads, and saves the result next to the source. No "here's a job id, remember to check it" loop for the model to lose track of.
Get a key
Sign up at https://humanpen.net and create a key at https://humanpen.net/settings/api-keys. New accounts start with free credits, enough to put a document through and see what comes back.
The key goes in an environment variable, never in a URL. URLs end up in server logs, proxy logs, shell history and screenshots.
Install
<details open> <summary><b>Claude Code</b></summary>
claude mcp add humanpen -s user -e HUMANPEN_API_KEY=hp_your_key -- npx -y humanpen-mcp
-s user puts it in every project. The default scope is local, which
loads the server only in the directory you ran the command from — and looks
like a broken install the first time you open Claude Code somewhere else.
If your version rejects -e (reported
upstream), use the JSON
form:
claude mcp add-json humanpen -s user '{"command":"npx","args":["-y","humanpen-mcp"],"env":{"HUMANPEN_API_KEY":"hp_your_key"}}'
</details>
<details> <summary><b>OpenAI Codex</b></summary>
In ~/.codex/config.toml:
[mcp_servers.humanpen]
command = "npx"
args = ["-y", "humanpen-mcp"]
env = { HUMANPEN_API_KEY = "hp_your_key" }
</details>
<details> <summary><b>CodeBuddy / WorkBuddy</b></summary>
codebuddy mcp add --scope user humanpen -- npx -y humanpen-mcp
It also reads ${VAR} in its config, so the key can stay in your environment
instead of the file:
{ "mcpServers": { "humanpen": {
"command": "npx", "args": ["-y", "humanpen-mcp"],
"env": { "HUMANPEN_API_KEY": "${HUMANPEN_API_KEY}" }
} } }
~/.codebuddy/.mcp.json for every project, <project>/.mcp.json for one.
</details>
<details> <summary><b>Gemini CLI</b></summary>
It has gemini mcp add, but the argument order differs between versions — run
gemini mcp add --help and follow the usage line it prints. Pass the key with
-e HUMANPEN_API_KEY=... and the scope with -s user; the default is
project, which is only the directory you ran it in.
</details>
<details> <summary><b>Claude Desktop</b></summary>
In claude_desktop_config.json. Use the absolute path to npx — run
which npx and paste the result: a desktop app is launched by the OS with a
minimal PATH, so the bare name that works in your terminal often is not found
here, and the only symptom is that the tools never appear.
{
"mcpServers": {
"humanpen": {
"command": "npx",
"args": ["-y", "humanpen-mcp"],
"env": { "HUMANPEN_API_KEY": "hp_your_key" }
}
}
}
</details>
<details> <summary><b>Cursor / Windsurf / Cline</b></summary>
All three read the same shape — Cursor in .cursor/mcp.json, Windsurf in
~/.codeium/windsurf/mcp_config.json, Cline in its MCP settings panel:
{
"mcpServers": {
"humanpen": {
"command": "npx",
"args": ["-y", "humanpen-mcp"],
"env": { "HUMANPEN_API_KEY": "hp_your_key" }
}
}
}
</details>
<details> <summary><b>OpenCode</b></summary>
In opencode.json — the key names differ slightly from everyone else's:
{
"mcp": {
"humanpen": {
"type": "local",
"command": ["npx", "-y", "humanpen-mcp"],
"environment": { "HUMANPEN_API_KEY": "hp_your_key" }
}
}
}
</details>
<details> <summary><b>VS Code</b> — keeps the key out of the config file</summary>
{
"mcp": {
"inputs": [
{ "type": "promptString", "id": "humanpenKey", "description": "HumanPen API key", "password": true }
],
"servers": {
"humanpen": {
"command": "npx",
"args": ["-y", "humanpen-mcp"],
"env": { "HUMANPEN_API_KEY": "${input:humanpenKey}" }
}
}
}
}
VS Code prompts once and stores the key in its secret store, so it never lands in a file you might commit. </details>
<details> <summary><b>From source</b>, or before the npm release lands</summary>
git clone https://github.com/humanpen/humanpen-mcp
cd humanpen-mcp && npm install && npm run build
Then point your client at node /path/to/humanpen-mcp/dist/index.js instead of
npx -y humanpen-mcp.
</details>
Any MCP client works: this is a plain stdio server started by
npx -y humanpen-mcp with HUMANPEN_API_KEY in its environment.
Tools
| Tool | What it does | Credits |
|---|---|---|
humanize_document |
Rewrite a .docx/.pptx to read as human-written and score lower on AI detectors. Optionally takes a detection report and rewrites only its flagged passages. |
yes |
fix_citations |
Convert in-text citations and the reference list to APA 7, MLA 9, Harvard, Chicago, IEEE, Vancouver, GB/T 7714, AMA, ACS or OSCOLA. Body text untouched. | yes |
condense_document |
Shorten a .docx to a target word count, keeping structure and citations. |
yes |
translate_document |
Translate .docx/.pdf/.pptx/.xlsx/.epub/.html/.txt between 12 languages, keeping layout. |
yes |
read_detection_report |
Read a Turnitin or iThenticate AI Writing report: overall AI percentage and the flagged passages. | free |
check_job |
Look up a job and download its result. | free |
get_credit_balance |
Credits remaining. | free |
Two things worth knowing
Jobs take minutes; tool calls do not. Each operation waits about 55 seconds
— enough for most documents — then returns a job_id with a note to call
check_job. The work continues on the server either way; nothing is lost by the
tool returning early.
ai_percent can be null, and that is usually good news. Turnitin prints
* instead of a number whenever AI writing comes in under 20% — it will not
quantify that band, because too much of it is false positives. So null means
"under 20%, and Turnitin will say no more", never "0%" and never "no result".
Questions people ask
Will this bring a Turnitin AI score down?
Usually under 20% in one pass with balanced — the threshold below which
Turnitin prints * instead of a number. If it misses, hand the result back with
the new report; only the passages still flagged get rewritten.
Does it work with iThenticate too? Yes — pass either report. The format is read from the file.
Is my document sent to the model? No. It uploads the file and answers with a path. A 40-page paper costs no tokens.
Development
npm install
npm run build
HUMANPEN_API_KEY=hp_... node selftest.mjs sample.docx report.pdf
selftest.mjs spawns the built server and talks JSON-RPC to it over stdio the
way a real client does — proving the protocol, the tool registrations, stdout
hygiene and one end-to-end job, not merely that the functions return. It needs a
live key and spends credits, so it is a pre-release check rather than a CI step.
Links
- API documentation · OpenAPI schema
- humanpen-skill — the same operations as an Agent Skill, if you would rather not run a server
- humanpen.net
Apache-2.0
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。