GPTHuman MCP Server
[npm version]
[License]
[Node version]
[MCP Compatible]
A Model Context Protocol (MCP) server providing access to GPTHuman's API, the leading platform for rewriting AI-generated text into more natural, human-sounding prose, with AI-detector metadata returned when available. This allows any MCP-compatible client (Cursor, Claude Desktop, etc.) to call the humanizer tool natively.
The server is shipped as a single humanize_text tool that rewrites AI-generated text into a more natural, human-sounding variant, while preserving the requested tone and rewrite mode.
Quick Start
You can run the server directly and test it in 60 seconds:
To test the server interactively with the MCP Inspector before wiring it up to Cursor or Claude:
Requirements
- Node.js
>= 22.0.0
- A GPTHuman API key — get one at GPTHuman.ai
Configuration
The server reads a single environment variable:
Installation
Cursor
Add the server to ~/.cursor/mcp.json (or your workspace .cursor/mcp.json):
Security Note: While the example above places the GPTHUMAN_API_KEY directly in JSON, we recommend using environment variables or local secret storage when possible. Never commit .cursor/mcp.json with real API keys to version control.
Claude Desktop
Add it to claude_desktop_config.json:
Other clients
Any MCP client that supports the stdio transport can run the server with:
Tools
humanize_text
Transforms AI-generated text into a more natural, human-sounding variant designed to bypass AI detectors, while preserving the requested tone and rewrite mode.
Input parameters
Output
The tool returns two content blocks:
- The humanized text (the primary payload).
- A markdown summary with metadata: AI-detector human score, similarity to original, readability, detected language, applied tone and mode, input/output word and character counts, credit usage, remaining credit balance, and the request ID.
Example call (from an MCP client)
Example Output
Example Prompts for MCP Clients
Once the server is configured, try giving your AI agent prompts like:
- “Humanize this generated blog intro in College tone using Balanced mode.”
- “Rewrite this product description in Professional mode.”
- “Use Enhanced mode but preserve the original meaning.”
Use the Remote MCP Endpoint
If you don’t want to run the MCP server locally, you can call GPTHuman’s hosted MCP endpoint directly over HTTP using JSON-RPC 2.0.
This is useful for custom agents, backend workflows, automation platforms, or internal tools that want to integrate GPTHuman without managing a local MCP process.
Endpoint
https://api.gpthuman.ai/mcp
The remote endpoint uses the MCP Streamable HTTP transport and returns JSON responses (application/json). As the transport requires, requests must send Accept: application/json, text/event-stream.
Authentication
Pass your GPTHuman API key as a bearer token in the Authorization header on every request:
List available tools
Use tools/list to inspect the tools exposed by the GPTHuman MCP server.
Humanize text
Use tools/call with the humanize_text tool to transform AI-generated text into more natural, human-sounding writing.
Parameters
text: The text you want to humanize.
tone: The writing tone to use, such as College, Professional, or another supported tone.
mode: The humanization mode, such as Balanced.
When to use this option
Use the remote MCP endpoint if you are building:
- custom AI agents
- backend automations
- workflow integrations
- internal writing tools
- no-code or low-code connectors
- systems where running a local MCP server is not practical
For desktop MCP clients like Claude Desktop, Cursor, or Windsurf, you can still use the local MCP server setup shown above.
Credit Usage & Privacy
- Credit Usage: Credits are consumed per word of output generated.
- Privacy: Submitted content is private and is not used for retraining AI models.
Troubleshooting
- 401: Invalid or missing API key. Verify your
GPTHUMAN_API_KEY is set correctly.
- 400: The text provided is under 300 characters or over 2,000 words.
- 429: Rate limit exceeded or insufficient credits.
- Node version issue: Ensure you are using Node >=22.
humanScore: null: The detector score is unavailable for that specific language or content type.
Development
Available scripts:
Project structure
Links
License
Apache-2.0 — see LICENSE.