Glin Profanity MCP server

Glin Profanity MCP server

mcp-glincker•byglincker

An offline MCP server exposing the Glin Profanity detection engine as 24 tools for profanity checking, content moderation, and AI guardrail scanning in MCP-compatible assistants.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Offers profanity checking and censoring tools that return detailed results and configurable replacements for flagged text.
  • •Includes batch and corpus analysis tools plus content validation with a safety score.
  • •Provides guardrail scanners for prompt injection, secrets, and PII, with reversible PII redaction and restoration via a vault.
  • •Tracks user messages to build moderation profiles and surface repeat offenders.

BEST FOR

  • •Moderating chat and community messages for profanity inside AI assistant workflows.
  • •Validating blog or written content against configurable strictness levels before publishing.
  • •Scanning text for prompt injection and leaking secrets or PII in AI pipelines.

ABOUT MCP-GLINCKER

Glin Profanity MCP server is cataloged as an MCP server attributed to glincker. An offline MCP server exposing the Glin Profanity detection engine as 24 tools for profanity checking, content moderation, and AI guardrail scanning in MCP-compatible assistants. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Glin Profanity MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which assistants can use this MCP server?

The README states the server works with MCP-compatible tools including Claude Desktop, Cursor, and Windsurf.

Does the MCP server require cloud calls?

The project describes the engine as running entirely offline with no mandatory cloud calls.

How many detection tools does the MCP server expose?

The README lists 24 tools, plus 5 workflow prompts and 5 reference resources.

Upstream README

View this exact version on GitHub

README.md · 17a5f22e3400 · Fetched 2026-11-13 11:35:32 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

GLIN PROFANITY

The Open-Source AI Guardrail. Profanity, PII, Secrets, Soon: Prompt Injection — One Library, One MCP Server, Runs Offline.

npm version PyPI version npm downloads PyPI downloads

CI Status Bundle Size License TypeScript

GitHub Stars GitHub Forks GitHub Issues Contributors Discord

Glin Profanity - ML-Powered Profanity Detection

Live Demo


📦 Packages

This monorepo maintains the following packages:

PackageVersionDescription
glin-profanitynpmCore profanity filter for JavaScript/TypeScript
glin-profanityPyPICore profanity filter for Python
glin-profanity-mcpnpmMCP server for AI assistants (Claude, Cursor, etc.)
openclaw-profanitynpmPlugin for OpenClaw/Moltbot AI agents

Why Glin Profanity?

Modern AI applications need more than a word list. Users evade filters with f4ck, sh1t, f.u.c.k, and fυck (Greek υ → u). LLM pipelines leak PII and secrets into logs. Prompt injection slips through unguarded inboxes. Today's moderation problem is a guardrail problem — and most solutions leave you choosing between a Python-only library, a Llama-licensed model, or a paid cloud API.

Glin Profanity is the MIT-licensed, Node-native, MCP-first answer. It runs entirely offline, ships a 12 KB core bundle with no mandatory cloud calls, integrates with Claude/Cursor/Windsurf via 24 MCP tools out of the box, and covers 24 languages with leetspeak and Unicode homoglyph evasion detection built in. Prompt-injection, PII, and secrets scanning are all shipped today.

vs. Meta PurpleLlama — Python + Llama Community License, requires downloading weights, no Node support, no MCP server. vs. ProtectAI llm-guard — Python-only, heavy transformer dependencies, no edge/browser runtime. vs. Azure Content Safety — paid cloud API, data leaves your infra, rate-limited.

┌─────────────────────────────────────────────────────────────────────────────┐
│                           GLIN PROFANITY v3                                 │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│   Input Text ──►  Unicode       ──►  Leetspeak    ──►  Dictionary  ──► ML  │
│                   Normalization      Detection         Matching        Check│
│                   (homoglyphs)       (f4ck→fuck)       (24 langs)     (opt) │
│                                                                             │
│   "fսck"     ──►  "fuck"        ──►  "fuck"       ──►  MATCH       ──► ✓   │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

Performance Benchmarks

Measured with the reproducible harness in benchmarks/shootout/ (Node 22, Apple Silicon). English torture set: 893 cases, including obfuscation techniques and look-alike traps such as Scunthorpe-style words.

LibraryPrecisionRecallF1False-positive rateLook-alike traps FPRops/sec (20-input batch)
glin-profanity99.2%98.7%99.0%1.1%0.0%~7,400
allprofanity92.8%68.2%78.6%7.7%3.0%~41,000
obscenity83.9%47.5%60.7%13.2%8.4%~6,400
bad-words76.4%17.8%28.9%7.9%1.0%~260
leo-profanity69.6%9.1%16.1%5.8%0.7%~396,000
@2toad/profanity77.4%18.2%29.4%7.7%1.0%~884,000
  • glin-profanity is not the fastest. The thin word-list filters are 50x to 100x faster because they do not handle obfuscation. A single uncached isProfane() call on a short string runs about 300,000 ops/sec (about 140,000 with aggressive leetspeak or all 24 languages loaded).
  • A checkProfanity() result-cache hit on an identical string reaches about 25M ops/sec. That is the cache path only; profane or obfuscated text through checkProfanity() is about 17,000 to 24,000 ops/sec.
  • Non-English: 302 of 302 non-English profane cases caught (native-script Russian, Arabic, Chinese, Japanese, Korean and Turkish included), with no false positives in that set.
  • 1.1% of the clean English cases are still flagged (4 cases, all context dependent: two medical or technical sentences and two dictionary-ambiguous words such as "cock" and "jackass"). Per-category and per-language breakdowns: benchmarks/shootout/results.md. Reproduce with cd benchmarks/shootout && npm install && node harness.mjs.

How We Test

The torture set (benchmarks/shootout/torture-set.json, generated by generate-torture.mjs) combines clean text, look-alike traps, and profane words disguised with leetspeak, homoglyphs, zero-width characters, separators, HTML and entities, masking, stretched letters, combining marks and mixed techniques, across English and several other languages.

Limits you should know about:

  • The seed words and the techniques were authored by the maintainers alongside the engine, so the numbers are optimistic. They show the engine does what it was built to do, not how it fares on your traffic.
  • Some English technique buckets have few samples.
  • Non-English seeds come from the glin-profanity dictionaries, which favors it over libraries with different word lists.
  • Known misses: two-fragment space splits such as fu ck and sh it, words missing from the dictionary (shi7e), and some Armenian homoglyphs.

Found a miss, a false positive, or a word we should add? Open a dictionary request and we will add it to the set.


Feature Comparison

Featureglin-profanityobscenityDetoxifyPurpleLlamallm-guard
MIT licenseYesYesApache-2.0Llama CommunityApache-2.0
Node-nativeYesYesNoNoNo
Python packageYesNoYesYesYes
MCP server (24 tools)YesNoNoNoNo
Runs fully offlineYesYesYesYes (needs weights)Yes
Leetspeak detectionYesPartialNoNoNo
Unicode homoglyph detectionYesNoNoNoNo
Multi-language support24 languagesEnglish only6 languagesEnglish onlyEnglish only
ML toxicity detectionYes (TensorFlow.js, opt-in)NoYes (PyTorch)Yes (Llama)Yes (transformers)
Edge / browser runtimeYesYesNoNoNo
Bundle size (core, minified)12 KB6 KBN/AN/AN/A
Prompt-injection detectionYes (shipped)NoNoYesYes
PII / secrets scanningYes (shipped)NoNoNoYes

Installation

JavaScript/TypeScript

npm install glin-profanity

Python

pip install glin-profanity

Quick Start

JavaScript

import { checkProfanity, Filter } from 'glin-profanity';

// Simple check
const result = checkProfanity("This is f4ck1ng bad", {
  detectLeetspeak: true,
  languages: ['english']
});

result.containsProfanity  // true
result.profaneWords       // ['fucking']

// With replacement
const filter = new Filter({
  replaceWith: '***',
  detectLeetspeak: true
});
filter.checkProfanity("sh1t happens").processedText  // "*** happens"

Python

from glin_profanity import Filter

filter = Filter({"languages": ["english"], "replace_with": "***"})

filter.is_profane("damn this")           # True
filter.check_profanity("damn this")      # Full result object

React

import { useProfanityChecker } from 'glin-profanity';

function ChatInput() {
  const { result, checkText } = useProfanityChecker({
    detectLeetspeak: true
  });

  return (
    <input onChange={(e) => checkText(e.target.value)} />
    {result?.containsProfanity && <span>Clean up your language</span>}
  );
}

Architecture

flowchart LR
    subgraph Input
        A[Raw Text]
    end

    subgraph Processing
        B[Unicode Normalizer]
        C[Leetspeak Decoder]
        D[Word Tokenizer]
    end

    subgraph Detection
        E[Dictionary Matcher]
        F[Fuzzy Matcher]
        G[ML Toxicity Model]
    end

    subgraph Output
        H[Result Object]
    end

    A --> B --> C --> D
    D --> E --> H
    D --> F --> H
    D -.->|Optional| G -.-> H

Detection Capabilities

Obfuscation Levels and Whitelist

Obfuscation handling is on by default (standard). It catches separators (f.u.c.k), masks (f*ck, sh#t), stretched letters (aaaasshole), and HTML or entity-encoded words, in every language, and reports match offsets against your original text.

new Filter();                              // obfuscation: 'standard' (default)
new Filter({ obfuscation: 'off' });        // plain matching, as in earlier versions
new Filter({ obfuscation: 'strict' });     // adds looser joins, more false-positive risk

// Add your own safe phrases; a hit that overlaps one is ignored
const filter = new Filter({ whitelist: ['shit happens'] });
filter.isProfane('well, shit happens');    // false
LevelWhat it adds
offnothing, plain matching
basicHTML and entities, stretched letters, built-in safe words
standard (default)basic plus separators, masks, and `
strictstandard plus looser joins (spaces inside mixed chains, shorter fragments)

Details and per-switch options: docs/advanced/obfuscation.md. Upgrading: docs/MIGRATION-4.0.md.

Leetspeak Detection

const filter = new Filter({
  detectLeetspeak: true,
  leetspeakLevel: 'aggressive'  // basic | moderate | aggressive
});

filter.isProfane('f4ck');     // true
filter.isProfane('5h1t');     // true
filter.isProfane('@$$');      // true
filter.isProfane('ph.u" "ck'); // true (aggressive mode)

Unicode Homoglyph Detection

const filter = new Filter({ normalizeUnicode: true });

filter.isProfane('fυck');   // true (Greek 'υ' → 'u')
filter.isProfane('shіt');   // true (Cyrillic 'і' → 'i')
filter.isProfane('ƒuck');   // true (Latin 'ƒ' → 'f')

ML-Powered Detection

import { loadToxicityModel, checkToxicity } from 'glin-profanity/ml';

await loadToxicityModel({ threshold: 0.9 });

const result = await checkToxicity("You're the worst player ever");
// { toxic: true, categories: { toxicity: 0.92, insult: 0.87, ... } }

Supported Languages

24 languages with curated dictionaries:

ArabicChineseCzechDanish
DutchEnglishEsperantoFinnish
FrenchGermanHindiHungarian
ItalianJapaneseKoreanNorwegian
PersianPolishPortugueseRussian
SpanishSwedishThaiTurkish

Documentation

DocumentDescription
Getting StartedInstallation and basic usage
API ReferenceComplete API documentation
Framework ExamplesReact, Vue, Angular, Express, Next.js
Advanced FeaturesLeetspeak, Unicode, ML, caching
ML GuideTensorFlow.js integration
ChangelogVersion history

Local Testing Interface

Run the interactive playground locally to test profanity detection:

# Clone the repo
git clone https://github.com/GLINCKER/glin-profanity.git
cd glin-profanity/packages/js

# Install dependencies
npm install

# Start the local testing server
npm run dev:playground

Open http://localhost:4000 to access the testing interface with:

  • Real-time profanity detection
  • Toggle leetspeak, Unicode normalization, ML detection
  • Multi-language selection
  • Visual results with severity indicators

Use Cases

ApplicationHow Glin Profanity Helps
Chat platformsReal-time message filtering with React hook
GamingDetect obfuscated profanity in player names/chat
Social mediaScale moderation with ML-powered detection
EducationMaintain safe learning environments
EnterpriseFilter internal communications
AI/ML pipelinesClean training data before model ingestion

MCP Server for AI Assistants

Glin Profanity includes an MCP (Model Context Protocol) server that enables AI assistants like Claude Desktop, Cursor, Windsurf, and other MCP-compatible tools to use profanity detection as a native tool.

Quick Setup

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "glin-profanity": {
      "command": "npx",
      "args": ["-y", "glin-profanity-mcp"]
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "glin-profanity": {
      "command": "npx",
      "args": ["-y", "glin-profanity-mcp"]
    }
  }
}

Available Tools (24)

ToolDescription
check_profanityCheck text for profanity with detailed results
censor_textCensor profanity with configurable replacement
analyze_contextContext-aware analysis with domain whitelists
batch_checkCheck multiple texts in one operation
validate_contentContent validation with safety scoring (0-100)
detect_obfuscationDetect leetspeak and Unicode tricks
get_supported_languagesList all 24 supported languages
explain_matchExplain why text was flagged with reasoning
suggest_alternativesSuggest clean alternatives for profane content
analyze_corpusAnalyze up to 500 texts for moderation stats
compare_strictnessCompare results across strictness levels
create_regex_patternGenerate regex patterns for custom detection
track_user_messageTrack user messages for repeat offender detection
get_user_profileGet moderation profile for a specific user
get_high_risk_usersList users with high violation rates
reset_user_profileReset a user's moderation history
stream_checkReal-time streaming profanity check
stream_batchStream multiple texts with live results
get_stream_statsGet streaming session statistics
check_prompt_injectionScan text for prompt injection attacks (rule-based, 50 patterns)
scan_secretsDetect leaked API keys, tokens, and credentials (110 patterns + entropy)
scan_piiDetect PII: email, phone, SSN, credit card, IBAN, passport, and more
redact_piiRedact PII into reversible vault-backed placeholders
restore_piiRestore PII placeholders to original values via vault session

Plus 5 workflow prompts and 5 reference resources for guided AI interactions.

Example Prompts for AI Assistants

"Check this user comment for profanity using glin-profanity"
"Validate this blog post content with high strictness"
"Batch check these 50 messages for any inappropriate content"
"Analyze this medical text with the medical domain context"

See the full MCP documentation for setup instructions and examples.


Shipped AI Guardrails

The scanner layer is live. Import from glin-profanity/scanners:

import { PromptInjectionScanner, SecretsScanner, PiiScanner, Vault, scanAll } from 'glin-profanity/scanners';
ScannerCoverage
PromptInjectionScanner50 patterns across 6 attack categories
SecretsScanner110 patterns (AWS, GCP, Azure, GitHub, Stripe, OpenAI, Anthropic, …) + Shannon entropy
PiiScanner27 patterns with Luhn + IBAN mod-97 validation
VaultPlaceholder-based redact/restore with 4 strategies
scanAllComposite scanner — runs all of the above in one call

Coming in 2026

The following capabilities are on the active roadmap.

FeatureETANotes
glincker/glin-guard-small on HF HubQ3 2026Our own distilled toxicity model, MIT weights, designed for edge inference
AI-slop detectionQ3 2026Pattern-based detector for generic AI-generated prose
Bluesky Ozone labeler adapterQ4 2026Drop-in labeler for AT Protocol moderation pipelines
Compliance presetsQ4 2026Pre-tuned configs for UK OSA, EU DSA, and COPPA requirements

See ROADMAP.md for the full issue backlog and contribution opportunities.


License

MIT License - free for personal and commercial use.

Enterprise licensing with SLA and support available from GLINCKER.


Community

Join the GLINR Discord to ask questions, share feedback, or talk with other users of Glin Profanity. This project has its own forum channel there, #glin-profanity.

Join the GLINR Discord


Contributing

See CONTRIBUTING.md for guidelines. We welcome:

  • Bug reports and fixes
  • New language dictionaries
  • Performance improvements
  • Documentation updates

Star History

Star History Chart

Live Demo · NPM · PyPI · GitHub


Star on GitHub



Built by GLINCKER · Part of the GLINR ecosystem

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Glin Profanity MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-glincker)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools