Regex Toolkit MCP Server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Regex Toolkit MCP Server Extract all URLs from this chat log"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Regex Toolkit MCP Server
A specialized, high-performance Model Context Protocol (MCP) server engineered to handle complex Regular Expression operations deterministically. This server equips your LLM agents with the ability to securely extract, validate, and mask Personally Identifiable Information (PII) without relying on token-heavy, hallucination-prone AI pattern matching.
The LLM Pattern Matching Dilemma
Through extensive testing with autonomous data-processing agents, we identified a critical limitation in how Large Language Models handle unstructured text: LLMs are highly inefficient at strict pattern matching.
When tasked with extracting or redacting emails, URLs, or phone numbers from large text blobs (such as chat logs or scraped web pages), an LLM must read every single token. This process:
Consumes massive context windows, driving up inference costs exponentially.
Risks Hallucination: The LLM may "invent" emails that look similar, or miss edge-case formatted phone numbers.
Introduces Privacy Risks: Asking an LLM to process and return raw PII directly exposes sensitive data to the model provider's inference pipeline.
The Regex Toolkit Solution
The Regex Toolkit MCP solves this by shifting pattern matching away from the AI and into a deterministic, sandboxed execution environment. By leveraging native regex engines, this MCP server can scan megabytes of text in milliseconds, perfectly extracting or masking data. The LLM only receives the exact structured data it needs, saving thousands of tokens and ensuring absolute accuracy.
Related MCP server: PII Redaction MCP Server
Technical Capabilities
This server exposes three distinct, highly optimized tools for your AI workflows:
extract_patternFunction: Scans a large body of raw text and extracts all unique instances of a specified pattern (
email,url, orphone).Use Case: Harvesting links from a scraped webpage or compiling a contact list from unstructured meeting transcripts.
validate_patternFunction: Strictly validates if a single string perfectly matches a standard email, URL, or international phone format.
Use Case: Data sanitization pipelines where an agent must verify user input before writing to a database.
mask_sensitive_dataFunction: Redacts sensitive PII from a text blob by deterministically replacing matches with
[REDACTED]tags.Use Case: Privacy compliance. An agent can use this tool to sanitize logs or customer messages before passing the text to an external analytics API.
Run on Vinkius Edge (Free Edge Hosting)
Vinkius provides free, highly available edge hosting using secure V8 isolates. Deploying to the Vinkius Edge is the fastest way to make this MCP server accessible to any AI agent anywhere, with sub-millisecond response times and zero maintenance.
Clone this repository
Run the deployment command:
npx mcpfusion deployThat's it. Your MCP server is now live, secure, and ready to be connected to your agents.
π Access the Regex Toolkit MCP on Vinkius
Local Development
Constructed using MCP Fusion for reliable, strictly typed execution.
npm install
npm run devSecurity & Architecture
This server is strictly stateless. It does not store, log, or transmit the text you send it for evaluation. The mask_sensitive_data tool is explicitly designed to help organizations meet GDPR and CCPA compliance requirements by ensuring PII is scrubbed before it hits downstream AI models or storage layers.
Available Tools
3 toolsextract_patternA
[INSTRUCTIONS] Use this tool to harvest specific PII or links from raw text blocks.
Extracts all unique emails, URLs, or phone numbers from a large body of text.
Inputs: text (required), type (required).
mask_sensitive_dataA
[INSTRUCTIONS] Use this before sending sensitive user content to external systems.
Redacts sensitive PII (emails, phones, URLs) from a text blob by replacing them with [REDACTED] tags.
Inputs: text (required), maskEmails (required), maskUrls (required), maskPhones (required).
validate_patternA
[INSTRUCTIONS] Returns true if the string is a valid format, false otherwise.
Validates if a single string perfectly matches an email, URL, or phone format.
Inputs: text (required), type (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: extracting matches, masking sensitive data, and validating formats. There is no overlap or ambiguity.
All tool names follow a consistent verb_noun pattern (extract_pattern, mask_sensitive_data, validate_pattern) with snake_case, making them predictable.
With only 3 tools, the set is minimal but appropriately scoped for a narrow domain of PII handling. It avoids being overly thin for its stated purpose.
The tools cover the essential operations for PII: extraction, masking, and validation. Missing features like custom replacement are minor gaps for this focused toolkit.
Related MCP Connectors
300+ deterministic data utilities for AI agents: validate, normalize, parse, match, redact.
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
15 deterministic validation tools for AI agents: tax IDs (15 countries), VAT, IBAN, LEI, HS codes.
Responsible-AI guardrails for agents: scoring with policy, injection & PII detection, DPDP.
Related MCP Servers
- FlicenseAqualityBmaintenancePII sanitization layer for autonomous AI agent pipelines. Detects and redacts emails, phone numbers, national IDs, private keys, and financial data before text reaches LLMs. Supports EN, ES (LATAM), PT (BR/PT), DE, JA.12-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to redact PII from text, summarize redacted content, and manage custom redaction patterns across multiple languages.-
- AlicenseNot gradedqualityDmaintenanceEnables deterministic zero-trust security for AI agents, providing prompt injection protection, PII scrubbing, and policy enforcement before agentic actions reach production systems.2Apache 2.0
- AlicenseAqualityCmaintenanceDetects and redacts sensitive personal information such as names, emails, phone numbers, ID numbers, and locations in text before it is processed by AI agents, using configurable mask, hash, or remove strategies.1MIT