Remote MCP / text rewriting

AI Humanizer MCP for drafts already in the conversation

Rewrite supplied text without moving it into another tab. The remote MCP tool returns an editable version, the model used, and the processed word count to the assistant session.

Codex config.toml
export DETECTING_AI_API_KEY="YOUR_API_KEY"

[mcp_servers.detecting_ai]
url = "https://api.detecting-ai.com/api/mcp"
bearer_token_env_var = "DETECTING_AI_API_KEY"
tool_timeout_sec = 300

One shared remote MCP server

Detector and humanizer use the same Streamable HTTP endpoint. This page focuses on the humanize_text tool.

https://api.detecting-ai.com/api/mcp

MCP tool contract

humanize_text

Rewrites user-supplied text with a supported humanizer model. The model input is optional in MCP, cognia is the default, and the returned text remains available for further editing.

Default: model = "cognia"

InputTypeRequiredDescription
idempotency_keystringYesA 16–128 character URL-safe operation key. Generate one per intentional rewrite and reuse it only for an exact retry.
textstringYesThe text to rewrite. It must contain at least one non-space character.
modelstringNocognia, lexi, cognia_v2, or huma_v2. Default: cognia.
Tool output
{
  "humanized_text": "The rewritten text is returned here.",
  "words_processed": 120,
  "model_used": "cognia"
}

Authentication

Hosted connector or local config, both reach the same server

Pick the authentication path your MCP client supports. Never add credentials to the server URL itself.

Hosted clients use OAuth

Add only the MCP endpoint in a hosted connector. The client discovers the authorization service, opens sign-in and consent, then stores its own access token.

  • No API key pasted into the URL
  • Authorization code flow with PKCE
  • Access can be revoked from Connected Apps

Local clients use a bearer key

Store the API key in an environment variable or secret store. The client sends it as an Authorization bearer token when it calls the remote server.

  • Works with Codex and Claude Code
  • Key stays outside the config file when supported
  • REST and MCP share the same subscription

Inside the conversation

From rough draft to an editable second version

The assistant can call the tool and continue the editorial conversation with both the source and returned text still in view.

  1. 1

    Select the draft

    Supply the passage that needs a more natural rewrite and state which facts, terms, quotations, or tone must stay intact.

  2. 2

    Call humanize_text

    The client sends the text and optional model to the shared remote MCP server using your humanizer subscription balance.

  3. 3

    Compare and refine

    Review the returned text against the source, then edit, combine, or reject changes before the result leaves the session.

MCP clients

Use the connection style your assistant supports

Hosted Claude and ChatGPT connectors use OAuth. Codex, Claude Code, and similar local clients can use a private API key as a bearer token.

Claude

Add the remote endpoint as a custom connector and complete the browser authorization flow.

ChatGPT

Use a custom MCP connector with OAuth when the required connector settings are available.

Codex

Reference the server URL and an environment variable that contains the bearer token.

Claude Code

Add the Streamable HTTP server with an Authorization bearer header in the local client.

Where it helps

Useful when rewriting is one step, not the finish line

MCP keeps the rewrite close to the source and the surrounding instructions. That makes comparison and follow-up edits less disruptive.

Draft revision

Generate a second version of a stiff passage, then ask the assistant to compare the wording and flag changed meaning.

Support content

Rewrite approved source material into clearer help text and keep it in the same session for policy and fact review.

Content operations

Add a humanizer step to a controlled writing process where an editor still approves every final version.

MCP FAQ

What to know before you connect

The server is remote, usage comes from your API subscription, and each tool returns structured output to the client.

What is the AI Humanizer MCP server?+

It is a remote Streamable HTTP MCP server that gives compatible assistants access to the humanize_text tool. The same server also exposes a separate detect_ai_text tool.

Which humanizer models are available?+

The tool supports cognia, lexi, cognia_v2, and huma_v2. When no model is supplied, MCP uses cognia by default.

Can I edit the result before using it?+

Yes. The tool returns humanized_text as editable output. Review it for meaning, facts, tone, names, links, and any language that must remain exact.

Which clients can connect to it?+

Hosted Claude and ChatGPT connectors can use OAuth. Codex, Claude Code, and other local-config MCP clients can use a Detecting AI API key as a bearer token.

How is MCP humanizer usage counted?+

Successful calls deduct the input word count from the humanizer balance on the same subscription used by the REST API. Processing failures are not charged.

One server, two focused tools

Connect once, then call the tool the task needs

Read the complete setup guide, compare API plans, or inspect the other tool on the same remote server.