Klaws — Korean compliance risk scanner logo

Klaws — Korean compliance risk scanner

Scans code locally for Korean compliance risks and maps findings to PIPA, Network, Credit Information, and E-Commerce Act provisions.

Install Klaws — Korean compliance risk scanner

Run the project’s own setup commands, in order.

Setup steps from the project

klaws — Korean compliance risk scanner installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    go install github.com/rostradamus/klaws/cmd/klaws@latest
    
  2. 2. Install
    git clone https://github.com/rostradamus/klaws.git
    
  3. 3. Install
    cd klaws
    
  4. 4. Install
    go build -o klaws ./cmd/klaws/
    
  5. 5. Start the server
    klaws serve
    
  6. 6. Add to Claude Code
    claude mcp add klaws -- klaws serve
    

Overview

klaws — Korean compliance risk scanner checks local source code for patterns that may indicate risks under Korean privacy, network, credit information, and e-commerce laws. Its MCP server runs over stdio and provides directory/file scans, detector discovery, and law-reference lookups. Reach for it when an AI coding assistant needs a first-pass compliance review of a codebase, while treating findings as review prompts rather than legal advice.

Use cases

  • Scan a Java or Kotlin codebase for Korean privacy risks
  • Review logging and storage of personal identifiers
  • Check outbound data transfers for apparent consent handling
  • Look up Korean law provisions linked to scanner findings

Key features

  • Local regex-based compliance scanning
  • Directory and single-file MCP scans
  • PIPA, Network Act, Credit Information Act, and E-Commerce Act detectors
  • English and Korean field-name matching
  • JSON, text, and SARIF CLI output
  • Bundled or live Korean law references

Tools4

What Klaws — Korean compliance risk scanner lets your agent do. Expand a tool for its parameters.

Self-reported~43 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 78d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.

How Klaws — Korean compliance risk scanner works

What klaws — Korean compliance risk scanner does

klaws — Korean compliance risk scanner examines source files for code patterns associated with Korean compliance risks. Findings include a detector ID, severity, source location, matching snippet, explanation, and related legal provision IDs. The current detector set covers the Personal Information Protection Act (PIPA), Network Act, Credit Information Act, and E-Commerce Act.

Detected patterns include possible personal information in logs, sensitive identifiers without apparent encryption, endpoints that accept personal data without an apparent consent check, marketing messages without apparent opt-in handling, unprotected financial identifiers, transaction records without apparent retention handling, personal data without apparent destruction or retention limits, and transfers to external endpoints without an apparent consent check.

The scanner supports English and Korean field names, including examples such as email and 이메일, or consent and 동의. It identifies possible risks for engineering and legal review; it does not determine whether an implementation is legally compliant and is not legal advice.

How it works

Detection uses regex-based pattern matching rather than program execution or a full semantic analysis of the application. The command-line interface scans directories or individual files. Directory scans use Java files by default, with a pattern option for other file types such as Kotlin. Results can be emitted as JSON, text, or SARIF, and a severity threshold can make the command exit with status 1 when findings meet or exceed it.

The MCP process starts with klaws serve and communicates over standard input and output. An AI coding client can call scan_directory or scan_file, inspect available rules with list_detectors, and retrieve a provision using get_law_reference. Law references come from a bundled database by default. The optional live lookup contacts law.go.kr.

Setup and configuration

Install a released binary, use the published container image, run go install github.com/rostradamus/klaws/cmd/klaws@latest, or build from source with Go 1.23 or later. For a container scan, mount the project read-only and run the image against the mounted path. The MCP configuration uses the absolute path to the binary with serve as its argument; a Docker-based stdio configuration can instead mount the code and set /src as the scan root.

Claude Desktop, Claude Code, Cursor, and VS Code are documented client configurations. The CLI also accepts a custom laws YAML file for scans. Use klaws law <ID> for bundled references or add --live to request current text from law.go.kr.

Tools and capabilities

  • scan_directory: inspect a directory for compliance-risk patterns.
  • scan_file: inspect one source file.
  • list_detectors: return detector IDs, names, descriptions, and related laws.
  • get_law_reference: look up a Korean legal provision by ID.
  • Produce JSON, text, or SARIF output through the CLI.
  • Fail a CLI scan at a chosen severity threshold.

Limitations and notes

klaws — Korean compliance risk scanner analyzes code locally and sends no data over the network during normal operation. The documented exception is the optional live law lookup, which contacts law.go.kr. Regex findings can require context and may produce signals that need engineering or qualified legal review. Coverage is limited to the detectors and laws included by the project, and the tool does not provide definitive legal guidance.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Klaws — Korean compliance risk scanner

klaws — Korean compliance risk scanner is an MCP server that connects AI coding assistants to local codebases over stdio and provides tools to scan directories or files, list compliance detectors, and retrieve Korean law provisions by ID. It covers PIPA, Network Act, Credit Information Act, and E-Commerce Act risks.

Install a prebuilt binary, use Docker, run go install, or build it with Go 1.23 or later. Configure the client to launch the binary with the serve argument, such as command klaws and args [serve]. Docker can provide the same stdio setup while mounting the project directory.

Yes, Cursor is documented as a supported client. Add a klaws entry to .cursor/mcp.json or ~/.cursor/mcp.json with command klaws and args [serve], or configure the documented Docker-based stdio variant.

Yes, it can use the optional live lookup to retrieve text from law.go.kr. Without the live option, law references come from the bundled database, and normal code analysis remains offline.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewKlaws — Korean compliance risk scanner AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/klaws-korean-compliance-risk-scanner?style=directory)](https://allmcps.com/mcp/klaws-korean-compliance-risk-scanner)
HTML Embed
<a href="https://allmcps.com/mcp/klaws-korean-compliance-risk-scanner"><img src="https://allmcps.com/api/badge/klaws-korean-compliance-risk-scanner?style=directory" alt="Klaws — Korean compliance risk scanner on AllMCPs" /></a>