Unprofane
Should I allow this text? Profanity and toxicity checks that are hard to fool, with the evidence.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"unprofane": {
"url": "https://api.unprofane.com/mcp"
}
}
}Remote endpoints
https://api.unprofane.com/mcpstreamable-httpWhat it can do
Tool inventory
Tools (5)
🟢check_text(text, context, policy, mode, language, ...)
Decide whether one text should be allowed: profanity, slurs, insults, threats and sexual language, disguised spellings included (sh1t, f.u.c.k, leetspeak, homoglyphs). Returns the action (allow, review, block), the matches with their categories and the tricks used, a one-sentence reason and a censored version. Read-only; counts one check against the plan. If the action is wrong, report it with report_result and the result's id.
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "The text to check, exactly as the person typed it: up to 10,000 characters, 64 for a username or display name."
},
"context": {
"type": "string",
"enum": [
"general",
"username",
"display_name",
"comment",
"chat",
"gaming",
"educational",
"creative",
"review",
"custom_text"
],
"description": "Where the text is shown, which changes how it is read: username (a public handle; reserved names match), display_name (a name beside content), comment, chat, gaming (taunts about play are not abuse), review, educational (quoted words are discussed, not used), creative (dialogue in fiction), custom_text (engraving or printing), general (anything else). Omit for the project's default, general unless the project set one."
},
"policy": {
"description": "How strict to be. A preset: kids (under 13, blocks everything), teen, standard (adults; the default), strict (brand-safe surfaces), casual (swearing welcome, swearing at someone still blocked). Or a saved policy id (pol_...), or an object giving an action per category. Omit for the project's default.",
"anyOf": [
{
"type": "string",
"enum": [
"kids",
"teen",
"standard",
"strict",
"casual"
]
},
{
"type": "string",
"pattern": "^pol_[A-Za-z0-9]{8,32}$"
},
{
"type": "object",
"properties": {
"mild_profanity": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"profanity": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"sexual": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"insult": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"slur": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"threat": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"rude": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"sexual_minors": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"self_harm": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"reserved": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
}
},
"additionalProperties": false
}
]
},
"mode": {
"type": "string",
"enum": [
"fast",
"balanced",
"thorough"
],
"description": "How much to ask the model: fast never asks the model; balanced, the default, asks it about every text but a word or two the rules block outright; thorough asks it about every text. Omit for the project's default."
},
"language": {
"type": "string",
"enum": [
"auto",
"en",
"es",
"pt",
"fr",
"de",
"it",
"nl",
"pl",
"tr",
"ru",
"ar",
"he",
"hi",
"id",
"ja",
"zh",
"ko"
],
"description": "The language the text is in, when you know it: a short text that shows no other language is read in it. Defaults to auto."
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "Where the readers are, as a two-letter country code (MX, ES, BR): a word rude in some countries and innocent in others is read as theirs reads it. Omit to count a word rude anywhere."
},
"mask": {
"type": "string",
"enum": [
"asterisk",
"first_letter",
"grawlix",
"remove"
],
"description": "How \"censored\" hides a matched word: asterisk (****), first_letter (f***), grawlix (#$@!) or remove. Omit for the project's default, asterisk unless the project set one."
}
},
"required": [
"text"
],
"additionalProperties": false
}Output Schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^chk_[A-Za-z0-9]{16,32}$"
},
"allowed": {
"type": "boolean"
},
"action": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"score": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"severity": {
"type": "string",
"enum": [
"none",
"mild",
"moderate",
"strong",
"extreme"
]
},
"categories": {
"type": "object",
"properties": {
"mild_profanity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"profanity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"sexual": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"insult": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"slur": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"threat": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"rude": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"sexual_minors": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"self_harm": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"reserved": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"mild_profanity",
"profanity",
"sexual",
"insult",
"slur",
"threat",
"rude",
"sexual_minors",
"self_harm",
"reserved"
]
},
"obfuscated": {
"type": "boolean"
},
"evasion": {
"type": "array",
"items": {
"type": "string",
"enum": [
"homoglyph",
"zero_width",
"separator",
"leetspeak",
"repeated_chars",
"diacritics",
"mixed_script",
"fullwidth",
"combining_marks",
"phonetic",
"reversed",
"concatenation",
"case_mixing",
"self_censored",
"misspelled",
"spoonerism",
"pun"
]
}
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"text": {
"type": "string"
},
"normalized": {
"type": "string"
},
"term_id": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"profanity",
"sexual",
"insult",
"slur",
"threat",
"reserved"
]
},
"severity": {
"type": "string",
"enum": [
"none",
"mild",
"moderate",
"strong",
"extreme"
]
},
"evasion": {
"type": "array",
"items": {
"type": "string",
"enum": [
"homoglyph",
"zero_width",
"separator",
"leetspeak",
"repeated_chars",
"diacritics",
"mixed_script",
"fullwidth",
"combining_marks",
"phonetic",
"reversed",
"concatenation",
"case_mixing",
"self_censored",
"misspelled",
"spoonerism",
"pun"
]
}
}
},
"required": [
"start",
"end",
"text",
"normalized",
"term_id",
"category",
"severity",
"evasion"
]
}
},
"censored": {
"type": "string"
},
"reason": {
"type": "string"
},
"decided_by": {
"type": "array",
"items": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"mild_profanity",
"profanity",
"sexual",
"insult",
"slur",
"threat",
"rude",
"sexual_minors",
"self_harm",
"reserved"
]
},
"action": {
"type": "string",
"enum": [
"review",
"block"
]
},
"from": {
"type": "string",
"enum": [
"words",
"context"
]
}
},
"required": [
"category",
"action",
"from"
]
}
},
"language": {
"type": "object",
"properties": {
"detected": {
"type": "string"
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"detected",
"confidence"
]
},
"engine": {
"type": "object",
"properties": {
"version": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"route": {
"type": "string",
"enum": [
"rules",
"model",
"cache"
]
},
"degraded": {
"type": "boolean"
}
},
"required": [
"version",
"route",
"degraded"
]
},
"timing_ms": {
"type": "number",
"minimum": 0
}
},
"required": [
"id",
"allowed",
"action",
"score",
"severity",
"categories",
"obfuscated",
"evasion",
"matches",
"censored",
"reason",
"decided_by",
"language",
"engine",
"timing_ms"
]
}🟢check_batch(items, context, policy, mode, language, ...)
Check up to 100 texts in one call, 30,000 characters in all, with the same settings. Each item has your id and a text; results come back in order, each with its id and either a result (as check_text returns) or an error. Read-only; counts one check per item.
Input Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"description": "The texts to check, each with an id of yours to match its result.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Your id for this text, returned with its result."
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "The text to check, exactly as the person typed it: up to 10,000 characters, 64 for a username or display name."
}
},
"required": [
"id",
"text"
],
"additionalProperties": false
}
},
"context": {
"type": "string",
"enum": [
"general",
"username",
"display_name",
"comment",
"chat",
"gaming",
"educational",
"creative",
"review",
"custom_text"
],
"description": "Where the text is shown, which changes how it is read: username (a public handle; reserved names match), display_name (a name beside content), comment, chat, gaming (taunts about play are not abuse), review, educational (quoted words are discussed, not used), creative (dialogue in fiction), custom_text (engraving or printing), general (anything else). Omit for the project's default, general unless the project set one."
},
"policy": {
"description": "How strict to be. A preset: kids (under 13, blocks everything), teen, standard (adults; the default), strict (brand-safe surfaces), casual (swearing welcome, swearing at someone still blocked). Or a saved policy id (pol_...), or an object giving an action per category. Omit for the project's default.",
"anyOf": [
{
"type": "string",
"enum": [
"kids",
"teen",
"standard",
"strict",
"casual"
]
},
{
"type": "string",
"pattern": "^pol_[A-Za-z0-9]{8,32}$"
},
{
"type": "object",
"properties": {
"mild_profanity": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"profanity": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"sexual": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"insult": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"slur": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"threat": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"rude": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"sexual_minors": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"self_harm": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"reserved": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
}
},
"additionalProperties": false
}
]
},
"mode": {
"type": "string",
"enum": [
"fast",
"balanced",
"thorough"
],
"description": "How much to ask the model: fast never asks the model; balanced, the default, asks it about every text but a word or two the rules block outright; thorough asks it about every text. Omit for the project's default."
},
"language": {
"type": "string",
"enum": [
"auto",
"en",
"es",
"pt",
"fr",
"de",
"it",
"nl",
"pl",
"tr",
"ru",
"ar",
"he",
"hi",
"id",
"ja",
"zh",
"ko"
],
"description": "The language the text is in, when you know it: a short text that shows no other language is read in it. Defaults to auto."
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "Where the readers are, as a two-letter country code (MX, ES, BR): a word rude in some countries and innocent in others is read as theirs reads it. Omit to count a word rude anywhere."
},
"mask": {
"type": "string",
"enum": [
"asterisk",
"first_letter",
"grawlix",
"remove"
],
"description": "How \"censored\" hides a matched word: asterisk (****), first_letter (f***), grawlix (#$@!) or remove. Omit for the project's default, asterisk unless the project set one."
}
},
"required": [
"items"
],
"additionalProperties": false
}Output Schema
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"result": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^chk_[A-Za-z0-9]{16,32}$"
},
"allowed": {
"type": "boolean"
},
"action": {
"type": "string",
"enum": [
"allow",
"review",
"block"
]
},
"score": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"severity": {
"type": "string",
"enum": [
"none",
"mild",
"moderate",
"strong",
"extreme"
]
},
"categories": {
"type": "object",
"properties": {
"mild_profanity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"profanity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"sexual": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"insult": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"slur": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"threat": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"rude": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"sexual_minors": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"self_harm": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"reserved": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"mild_profanity",
"profanity",
"sexual",
"insult",
"slur",
"threat",
"rude",
"sexual_minors",
"self_harm",
"reserved"
]
},
"obfuscated": {
"type": "boolean"
},
"evasion": {
"type": "array",
"items": {
"type": "string",
"enum": [
"homoglyph",
"zero_width",
"separator",
"leetspeak",
"repeated_chars",
"diacritics",
"mixed_script",
"fullwidth",
"combining_marks",
"phonetic",
"reversed",
"concatenation",
"case_mixing",
"self_censored",
"misspelled",
"spoonerism",
"pun"
]
}
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"text": {
"type": "string"
},
"normalized": {
"type": "string"
},
"term_id": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"profanity",
"sexual",
"insult",
"slur",
"threat",
"reserved"
]
},
"severity": {
"type": "string",
"enum": [
"none",
"mild",
"moderate",
"strong",
"extreme"
]
},
"evasion": {
"type": "array",
"items": {
"type": "string",
"enum": [
"homoglyph",
"zero_width",
"separator",
"leetspeak",
"repeated_chars",
"diacritics",
"mixed_script",
"fullwidth",
"combining_marks",
"phonetic",
"reversed",
"concatenation",
"case_mixing",
"self_censored",
"misspelled",
"spoonerism",
"pun"
]
}
}
},
"required": [
"start",
"end",
"text",
"normalized",
"term_id",
"category",
"severity",
"evasion"
]
}
},
"censored": {
"type": "string"
},
"reason": {
"type": "string"
},
"decided_by": {
"type": "array",
"items": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"mild_profanity",
"profanity",
"sexual",
"insult",
"slur",
"threat",
"rude",
"sexual_minors",
"self_harm",
"reserved"
]
},
"action": {
"type": "string",
"enum": [
"review",
"block"
]
},
"from": {
"type": "string",
"enum": [
"words",
"context"
]
}
},
"required": [
"category",
"action",
"from"
]
}
},
"language": {
"type": "object",
"properties": {
"detected": {
"type": "string"
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"detected",
"confidence"
]
},
"engine": {
"type": "object",
"properties": {
"version": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"route": {
"type": "string",
"enum": [
"rules",
"model",
"cache"
]
},
"degraded": {
"type": "boolean"
}
},
"required": [
"version",
"route",
"degraded"
]
},
"timing_ms": {
"type": "number",
"minimum": 0
}
},
"required": [
"id",
"allowed",
"action",
"score",
"severity",
"categories",
"obfuscated",
"evasion",
"matches",
"censored",
"reason",
"decided_by",
"language",
"engine",
"timing_ms"
]
}
},
"required": [
"id",
"result"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"error": {
"type": "string"
}
},
"required": [
"id",
"error"
]
}
]
}
}
},
"required": [
"results"
]
}🟢report_result(check_id, verdict, expected_action, note, text)
Tell Unprofane a check got it wrong (or right): the result's id, the verdict and, if you know it, the action it should have taken. A person reads every report and corrections ship in a later engine. Writes a report; it changes no result and counts no check.
Input Schema
{
"type": "object",
"properties": {
"check_id": {
"type": "string",
"pattern": "^chk_[A-Za-z0-9]{16,32}$",
"description": "The \"id\" of the result being reported (chk_...)."
},
"verdict": {
"type": "string",
"enum": [
"false_positive",
"false_negative",
"correct"
],
"description": "false_positive: blocked or held something fine. false_negative: allowed something it should not have. correct: right, worth saying for a close call."
},
"expected_action": {
"type": "string",
"enum": [
"allow",
"review",
"block"
],
"description": "The action the check should have taken, when you know it."
},
"note": {
"type": "string",
"maxLength": 500,
"description": "Why, in a sentence: what the text means where it was written."
},
"text": {
"type": "string",
"maxLength": 10000,
"description": "The text itself, only if its writer's permission allows: it is kept with the account so a person can read it, and deleted with the account. Omit it and the report carries the id alone."
}
},
"required": [
"check_id",
"verdict"
],
"additionalProperties": false
}Output Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"received": {
"type": "boolean"
}
},
"required": [
"id",
"received"
]
}🟢get_usage
The checks this key's account has used in the current billing period, how many its plan includes and any overage, with the share answered by the rules alone, the model or the cache. Counts up to the last full hour. Read-only and free.
Input Schema
{
"type": "object",
"properties": {},
"additionalProperties": false
}Output Schema
{
"type": "object",
"properties": {
"period": {
"type": "object",
"properties": {
"start": {
"type": "string"
},
"end": {
"type": "string"
}
},
"required": [
"start",
"end"
]
},
"plan": {
"type": "string"
},
"checks": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"included": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"overage": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"routes": {
"type": "object",
"properties": {
"rules": {
"type": "number"
},
"model": {
"type": "number"
},
"cache": {
"type": "number"
}
},
"required": [
"rules",
"model",
"cache"
]
},
"degraded": {
"type": "number"
}
},
"required": [
"period",
"plan",
"checks",
"included",
"overage",
"routes",
"degraded"
]
}🟢get_integration_snippet(platform, language)
A complete, runnable recipe for adding Unprofane to a platform in a language: code to paste. Use it when asked to add a profanity or username filter to an app. Read-only and free: it checks no text.
Input Schema
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"http",
"supabase",
"clerk",
"firebase",
"auth0",
"better-auth",
"unity",
"godot"
],
"description": "Where the check runs: the auth or backend platform the app uses, a game engine, or http for any server."
},
"language": {
"type": "string",
"enum": [
"curl",
"javascript",
"typescript",
"python",
"csharp",
"gdscript",
"go",
"php",
"ruby"
],
"description": "The programming language of the recipe."
}
},
"required": [
"platform",
"language"
],
"additionalProperties": false
}Community
Evidence