npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mcp-listing/regex-toolkit-mcp

v1.0.0

Published

Deterministic regex execution Model Context Protocol (MCP) server. Test, evaluate, and extract data using regular expressions safely.

Downloads

156

Readme

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.

Available on Vinkius Cloud Built with MCP Fusion

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.


Technical Capabilities

This server exposes three distinct, highly optimized tools for your AI workflows:

  • extract_pattern

    • Function: Scans a large body of raw text and extracts all unique instances of a specified pattern (email, url, or phone).
    • Use Case: Harvesting links from a scraped webpage or compiling a contact list from unstructured meeting transcripts.
  • validate_pattern

    • Function: 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_data

    • Function: 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 Cloud (Free Edge Hosting)

Vinkius provides free, highly available edge hosting using secure V8 isolates. Deploying to the Vinkius Cloud is the fastest way to make this MCP server accessible to any AI agent anywhere, with sub-millisecond response times and zero maintenance.

  1. Clone this repository
  2. Run the deployment command:
npx mcpfusion deploy

That'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 dev

Security & 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.