Standard Library
for AI Agents.
Give Claude, Cursor, and any MCP client 24 deterministic text tools. An LLM shouldn't hex-encode a string by guessing — it should call a function that gets it right every time.
🤖 Install MCP Server
One command to add CleanTextLab tools to Claude Desktop
# Local (recommended) — runs on your machine, no API key, no network
# Claude Desktop: add to claude_desktop_config.json
{
"mcpServers": {
"cleantextlab": {
"command": "npx",
"args": ["-y", "cleantextlab-mcp"]
}
}
}
# Claude Code: one command
claude mcp add cleantextlab -- npx -y cleantextlab-mcp
# Hosted — no install, API-key gated (Streamable HTTP)
{
"mcpServers": {
"cleantextlab": {
"url": "https://cleantextlab.com/api/mcp",
"headers": {
"Authorization": "Bearer ctl_live_YOUR_KEY"
}
}
}
}YOUR_KEY with your actual API key from SettingsThe 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.
Local — no key, no network
npx cleantextlab-mcp runs every tool on your machine over stdio. Text never leaves the process. Recommended for Claude Desktop, Claude Code, Cursor, Windsurf.
Hosted — no install
Streamable HTTP endpoint at cleantextlab.com/api/mcp for clients that can't spawn a process. Free keys get 10 calls/day; Pro gets 5,000.
Same 24 tools either way
Both transports serve one tool registry. Pick the transport that fits your client — the results are byte-identical.
Setup in 30 seconds.
Add the block to your MCP client settings (e.g. claude_desktop_config.json) and restart. Claude Code users: claude mcp add cleantextlab -- npx -y cleantextlab-mcp.
Local mode: no key, no network. Your text never leaves the process.
Auto-updates via npx. Node 18+ required.
{
"mcpServers": {
"cleantextlab": {
"command": "npx",
"args": ["-y", "cleantextlab-mcp"]
}
}
}{
"mcpServers": {
"cleantextlab": {
"url": "https://cleantextlab.com/api/mcp",
"headers": {
"Authorization": "Bearer ctl_live_YOUR_KEY"
}
}
}
}Tool Capabilities.
Your agents gain instant access to a suite of deterministic tools. No more hallucinated JSON or broken CSVs.
Troubleshooting
The local server needs Node 18+ on PATH for the MCP client's process. On macOS, GUI apps like Claude Desktop don't inherit your shell PATH — use the absolute path to npx (run `which npx`) as the command if it fails.
Only the hosted endpoint needs a key. Send it as `Authorization: Bearer ctl_live_…` (or `x-api-key`). Get one at /settings. The local npx server never needs one.
Free hosted keys allow 10 tool calls per day; initialize and tools/list are free. Upgrade to Pro for 5,000/day — or switch to the local server, which has no limit.
word-count and token-counter return JSON stats. If you get your input echoed back you're on a pre-2.0 server — run `npx -y cleantextlab-mcp@latest`.