Skip to main content
Cookie preferences

We use analytics cookies to understand usage and improve CleanTextLab. You can accept or decline Privacy policy. Manage preferences.

Developer Docs

Standard Library for AI Agents.

Give Claude, Cursor, and ChatGPT the deterministic text processing tools they need. Our MCP server connects your agent to verified, high-performance code.

🤖 Install MCP Server

One command to add CleanTextLab tools to Claude Desktop

# Install MCP Server for Claude Desktop
npx cleantextlab-mcp

# Add to your Claude Desktop config (local machine):
{
  "mcpServers": {
    "cleantextlab": {
      "command": "npx",
      "args": ["-y", "cleantextlab-mcp"],
      "env": {
        "CLEANTEXTLAB_API_KEY": "ctl_live_YOUR_KEY"
      }
    }
  }
}
Replace YOUR_KEY with your actual API key from Settings
Infrastructure for Agents

The Standard Library for AI Agents

LLMs are probabilistic engines—great for reasoning, bad for deterministic tasks. Give your agents CleanTextLab via MCP to ensure accuracy.

🎯 Determinism vs. Hallucination

LLMs guess; we compute. Our tools run verified code that is 100% accurate every time, eliminating subtle hallucinations.

🧮 The "Calculator" Problem

You give an AI a calculator for math. Give it CleanTextLab for text processing, sorting, formatting, and hashing.

💰 Token Economy

Sorting a 5,000-line list with an LLM burns tokens and takes seconds. Our API does it in milliseconds for a fraction of the cost.

🧠 Context Efficiency

Offload massive text payloads to our API. Keep your context window clear for high-level reasoning.

Get your API key

Subscribe to Pro ($5/mo launch pricing) for API access. Pro includes 5,000 calls/day.

Install the MCP server

Use the CleanTextLab MCP package via npx. No global install required.

Add to your client

Paste the JSON config into Claude, Cursor, ChatGPT, or any MCP client.

Configuration

Setup in 30 seconds.

Add this configuration block to your MCP client settings (local machine) (e.g., claude_desktop_config.json) and restart.

Your API key stays local to your machine.

Auto-updates via npx. No version management needed.

JSON
{
  "mcpServers": {
    "cleantextlab": {
      "command": "npx",
      "args": ["-y", "cleantextlab-mcp"],
      "env": {
        "CLEANTEXTLAB_API_KEY": "YOUR_KEY"
      }
    }
  }
}

Tool Capabilities.

Your agents gain instant access to a suite of deterministic tools. No more hallucinated JSON or broken CSVs.

json-formatsql-formatremove-all-spacessanitize-urlsort-dedupetitle-caseword-countascii-treebase64-encodehex-to-rgb

Troubleshooting

401 Unauthorized

Confirm your API key is valid and set as CLEANTEXTLAB_API_KEY in your config.

Pro-only access

sanitize-url and sort-dedupe require a Pro subscription.

npx command failure

Ensure your MCP client has access to node/npm and can execute npx.

MCP Setup Guide - CleanTextLab MCP Server for AI Agents