Pain in the Agent
Rewrite an AI-assisted draft or compare two versions for possible changes in meaning.
Hosted MCP Server
npx add-mcp 'https://painintheagent.com/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
Use the text tools from your AI client
Choose your app for its setup instructions. Rewriting uses your PIA paid balance; your AI app's own access requirements still apply.
Use the Watermark-free AI Humanizer, watermark remover, watermark comparison and AI Detector through the same account. Rewrites use your account's monthly allowance: $5 a month gives 100,000 characters. Detector checks are free and limited to 100 per account each UTC day.
I tested the single-pass rewrite method with the published SynthID Text detector; the prompt and the sampling temperature of the current tools were not part of that test. The method is the strongest available removal approach: replacing the wording throughout. Read the results and examples before deciding whether it fits your writing.
Best effort: the ChatGPT, Claude and Gemini watermark detectors are not public, so complete removal cannot be verified.
Connect by URL
Add https://painintheagent.com/mcp as a remote MCP server in your client. Follow its sign-in prompt, open your existing website account, and review the permissions. The connection uses Authorization Code with S256 PKCE.
Clients that accept a bearer header can also use an account API key with this URL. Agents using a claim code can follow auth.md. A claim must be confirmed by the account owner before the agent can read saved rewrites or start work.
Each remote tool returns its result and your remaining allowance. If the job is still running, your client repeats the same tool with the same arguments and run_id to collect the result. This does not start another run or charge twice. Existing connections may need a tool-list refresh after updating.
Choose a remote MCP tool
detect_ai: run the AI Detector on at least 50 words of prose. It scores AI-writing signals and highlights patterns. The score does not prove authorship.humanize: run the full Humanizer, including draft rewriting, source checks and AI-writing assessments.remove_watermark: run the Remover while preserving meaning, language and formatting. Paid runs include a meaning check; possible changes are reported without editing the rewrite. Ifreview_statusisunavailable, compare the result with the source yourself.compare_texts: compare an original and a rewritten version for meaning changes. This does not detect private vendor watermarks.
Your API keys
Keys share your account's API allowance. Each text can contain up to 10,000 characters. Your current limits are available through the API.
Loading your account…
Install the local MCP package
The published local package currently exposes the rewrite workflow. Use the remote URL above for all four text tools.
- Create a key above after signing in with your email.
- Download the latest release. For Claude Desktop, open the MCPB bundle and enter your key in the extension settings.
- For Codex, Claude Code, Cursor or another client that supports local MCP servers, follow the client configuration instructions. The bundle includes its dependencies and requires Node.js 22 or later.
The repository also contains plugins for Codex and Claude Code. Installation from the repository is separate from approval in a client's public directory.
The local package is published in the official MCP Registry as io.github.krllagent/painintheagent-mcp.
Ask for a rewrite
With the remote connection enabled, ask for “humanize your response” or “remove watermark from your response”. The agent sends its previous answer to the matching tool and returns the processed text. A rewrite and its meaning check can take several seconds or longer; the full Humanizer can take a few minutes. The agent should report any meaning-check warnings alongside the result.
For the local package, keep the client open while it works. With a remote connection, the queued job continues after the client disconnects. If a connection drops, use the same run ID to check for a saved result. Starting a new request starts new work. The server rejects reuse of an ID with different input.
Direct API access
Send your key as an Authorization: Bearer header to https://painintheagent.com. The API reference includes the request format and errors. The OpenAPI description provides the same operations in a machine-readable format.
GET /api/v1/watermark/limitsreads the account's rewrite allowance.POST /api/v1/watermark/runacceptsoperation:watermark(default),humanize,compareordetect-ai, and streams progress as NDJSON.GET /api/v1/watermark/run?id=UUIDretrieves progress or a saved result.
All four tools use this endpoint and the same account key. A humanizer request always includes watermark-free rewriting; the optional watermark_removal field remains accepted for compatibility. A comparison requires candidate_text alongside the original text. These options and the operation are part of the run ID's identity.
On the website, MCP and API, rewrites keep the original style by default. Both humanize and remove_watermark accept style: preserve, academic, professional, conversational, creative or custom. For custom style, add style_guidance with up to 4,000 characters of writing preferences. Keep all style arguments unchanged when retrying a run ID. Style changes are not requests to translate, summarize or change facts; review the returned text before using it.
The client supports PAININTHEAGENT_BASE_URL for a local API gateway. It uses the configured endpoint for every request and does not fall back to another provider.
Pay per run without an account
An agent with its own wallet can pay for a single run in USDC over x402, on Base or Solana. No account, email or subscription is needed. Send the text to POST /api/x402/humanize or POST /api/x402/remove-watermark. The first answer is 402 with the price for that text: $0.10 per started 1,000 characters, from 100 to 10,000 characters. MPP clients can pay the same price on Base with the evm method. Repeat the request with the signed payment and you get a receipt with status_url and result_token. The rewrite takes a few minutes. The payment is taken only after a changed result is ready, so a failed or unchanged run costs nothing.
Resources for agents
Public pages also respond to Accept: text/markdown. These resources describe the API and the installed MCP workflow.
- API catalog
- Agent skills index and rewrite instructions
- AI catalog
- Remote MCP Server Card and authorization discovery
- Web Bot Auth public key directory
Your text and keys
The service processes and stores submitted text under the same privacy policy as the web tool. Only a hash of each API key is stored on the server. A key can start rewrites and read your account's saved runs; it cannot manage keys. You can revoke it above.