AI detector MCP server
Run "claude mcp add sloptotal -- uvx sloptotal-mcp" and Claude Code can check whether a text or a web page was written by AI. The sloptotal-mcp server gives any MCP client three tools and gets its scores from SlopTotal, an open-source detector with 23 engines: your own server on localhost, so the text stays on your machine, or the public one at api.sloptotal.com.
One command (Claude Code)
claude mcp add sloptotal -- uvx sloptotal-mcp Needs uv. It calls a SlopTotal server at http://localhost:8000: start one with Docker (self-hosting guide) or use the public instance. Published on PyPI, as the Docker image ghcr.io/pablocaeg/sloptotal-mcp and in the official MCP registry as io.github.pablocaeg/sloptotal.
What the agent gets
| Tool | What it does |
|---|---|
analyze_text | Scores a text of 50 characters or more (300+ words is steadier). Returns overall_score (0-100), overall_verdict, engines_flagged, each engine's score and verdict, the language and a report link. |
analyze_url | Fetches a public page, extracts its main text and scores it the same way. |
check_website_builder | Says whether a site was built with an AI app builder (Lovable, v0, Bolt, Base44, Replit, Same, Emergent), with the evidence found, plus a quick score of the page copy. |
The tool descriptions tell the agent that a score is evidence, not proof, so it reports the verdict with that caveat.
Local server or public instance
| Your own server (default) | Public instance | |
|---|---|---|
SLOPTOTAL_URL | http://localhost:8000 | https://api.sloptotal.com |
| Where the text goes | Nowhere: every engine runs on your machine | To sloptotal.com, which stores the report for 30 days |
| Limits | None | Shared, queued and rate limited |
| Needs | Docker, about 12 GB of RAM, about 9 GB of disk for the models | Nothing |
Start your own server with one command (the first start downloads the models; the self-hosting guide covers source installs, GPU and offline use):
docker run -d --name sloptotal -p 8000:8000 -v sloptotal-models:/app/models ghcr.io/pablocaeg/sloptotal Anything private (student work, unpublished drafts, client documents) belongs on your own server.
Claude Code
claude mcp add sloptotal -- uvx sloptotal-mcp With Docker instead of uv. The container reaches the server on your machine through host.docker.internal; --add-host makes that name work on Linux too:
claude mcp add sloptotal -- docker run -i --rm --add-host=host.docker.internal:host-gateway ghcr.io/pablocaeg/sloptotal-mcp With the public instance:
claude mcp add sloptotal -e SLOPTOTAL_URL=https://api.sloptotal.com -- uvx sloptotal-mcp Add --scope user to have it in every project. claude mcp list shows whether it connected.
Claude Desktop and Cursor
Claude Desktop: Settings, Developer, Edit Config (claude_desktop_config.json). Cursor: ~/.cursor/mcp.json for every project or .cursor/mcp.json for one. Both take the same block:
{
"mcpServers": {
"sloptotal": {
"command": "uvx",
"args": ["sloptotal-mcp"],
"env": { "SLOPTOTAL_URL": "http://localhost:8000" }
}
}
} With Docker:
{
"mcpServers": {
"sloptotal": {
"command": "docker",
"args": ["run", "-i", "--rm", "--add-host=host.docker.internal:host-gateway", "ghcr.io/pablocaeg/sloptotal-mcp"]
}
}
} Restart Claude Desktop afterwards. If it cannot find uvx or docker, put the full path (which uvx) in command.
VS Code
Copilot agent mode reads .vscode/mcp.json in the workspace, or the user file from "MCP: Open User Configuration":
{
"servers": {
"sloptotal": {
"type": "stdio",
"command": "uvx",
"args": ["sloptotal-mcp"],
"env": { "SLOPTOTAL_URL": "http://localhost:8000" }
}
}
} For Docker, use "command": "docker" with the same args as the Docker block above.
A real call and its reply
Asked "Use SlopTotal to check whether this paragraph was written by AI", the agent calls analyze_text with the paragraph (54 words):
{
"name": "analyze_text",
"arguments": {
"text": "Artificial intelligence has fundamentally transformed the landscape of modern education, offering unprecedented opportunities for personalized learning. Moreover, it is important to note ... reach their full potential."
}
} The reply from api.sloptotal.com on 27 November 2026, with the engines list cut to 4 of 23:
{
"overall_score": 79.6,
"overall_verdict": "Likely AI-generated",
"score_meaning": "0-100 calibrated estimate that the text is AI-generated; not proof.",
"engines_flagged": 14,
"engines_total": 23,
"word_count": 54,
"language": "en",
"language_support": "supported",
"report_url": "https://sloptotal.com/report/?id=ec4a8c4598a0",
"engines": [
{ "engine": "TMR Detector", "score": 0.987, "verdict": "slop" },
{ "engine": "Binoculars", "score": 0.135, "verdict": "clean" },
{ "engine": "Fast-DetectGPT", "score": 0.78, "verdict": "slop" },
{ "engine": "Burstiness", "score": 0.0, "verdict": "clean" }
],
"server": "https://api.sloptotal.com"
} 14 of 23 engines flagged it and the calibrated score is 79.6, just under 80, where the top 0.5% of human writing begins. A fair summary for the user: very likely AI-written, but 54 words is short and no detector is proof. report_url opens the full report with every engine's reasoning.
Limits
- A score is a probability estimate, not proof of authorship. On SlopBench (3,252 texts, 14 models) 1.7% of human texts were still called "Likely AI".
- Under about 80 words the signal is weak; 300 words or more is far steadier. The tool refuses texts under 50 characters.
- English is calibrated best. The
language_supportfield says how much to trust a score in other languages. - Heavily edited or paraphrased AI text scores lower than raw model output.
analyze_urlandcheck_website_builderonly reach public pages; your own server refuses private network addresses unlessSLOPTOTAL_ALLOW_PRIVATE_URLS=1.- The MCP server is only a client. Without a SlopTotal server running, or with the public instance busy, the tool returns an error that says what to do.
Settings
| Variable | Default | Meaning |
|---|---|---|
SLOPTOTAL_URL | http://localhost:8000 (http://host.docker.internal:8000 in the Docker image) | The SlopTotal server to call |
SLOPTOTAL_TIMEOUT | 300 | Seconds to wait for a queued scan before giving up |
Source, tests and changelog: integrations/mcp in the SlopTotal repository (MIT).
FAQ
Is there an MCP server for detecting AI-generated text?
Yes. sloptotal-mcp is an open-source MCP server that gives Claude Code, Claude Desktop, Cursor, VS Code and other MCP clients the tools analyze_text, analyze_url and check_website_builder. Install it with uvx sloptotal-mcp or the Docker image ghcr.io/pablocaeg/sloptotal-mcp.
Does it send my text anywhere?
Only to the SlopTotal server in SLOPTOTAL_URL. The default is your own server on localhost, where the text never leaves your machine. With https://api.sloptotal.com the text goes to sloptotal.com.
Do I need an API key or an account?
No. Neither the MCP server nor SlopTotal needs a key, on your own server or on the public instance.
Which clients does it work with?
Any MCP client that runs stdio servers: Claude Code, Claude Desktop, Cursor, VS Code (Copilot agent mode), Windsurf, Zed and others. It is listed in the official MCP registry as io.github.pablocaeg/sloptotal.
How accurate is it?
On SlopBench (1,626 human texts written before ChatGPT and 1,626 AI texts from 14 models) the calibrated score reaches AUC 0.942, and 1.7% of human texts are called "Likely AI". Treat a score as evidence, not proof.
Can the agent check a whole website?
It can score a page with analyze_url and check whether a site was built with an AI app builder such as Lovable, v0 or Bolt with check_website_builder.
Free and open source.
Star SlopTotal on GitHub 150