Lintsure
This read-only MCP server helps assess code compliance/security and understand Lintsure rules and frameworks.
Scan repositories for compliance and security gaps across GDPR, EU AI Act, OWASP Top 10, CRA, OWASP LLM, and CWE Top 25, with optional path/file/rule filtering and summary or full report output.
Explain a rule by ID: what it checks, related framework controls, why it matters, and how to fix it.
Classify frameworks from product yes/no answers to suggest which compliance frameworks may apply.
Explain a framework: scope, key dates, requirements, and what Lintsure can or cannot check in code.
Re-check fixes by scanning specific files or rules, and review findings by status (gap, partial, all).
Results are for human review only; it never changes files and does not provide certification or legal advice.
Provides compliance scanning and explanation for OWASP Top 10 and OWASP LLM Top 10 controls, mapping code findings to OWASP controls and suggesting fixes.
Try it
Check the project in the current folder. Nothing to install, and nothing leaves your machine:
npx lintsure scan! 3 open findings · 2 gap · 1 partial · 61 rules met · 30 outside code
Read 214 files
partial src/billing.ts:4 Data sent over plain HTTP
gap src/config.ts:2 Secret or private key committed to source
gap src/users.ts:5 Personal data written to logsConnect it to the coding agents this project uses, so they check their own work before they say they're done. It shows the change first and backs up any file it edits:
npx lintsure setup --yesIn Claude Code, the plugin adds guards that work while the agent edits: Drift Guard (your project's rules, made-up imports), Danger Guard (risky shell commands), Secret Guard and Loop Guard.
/plugin marketplace add lintsure/claude-plugin
/plugin install lintsure@lintsureWith Docker
Scan a project with Node's official image, using the published package:
docker run --rm -v "$PWD:/work" -w /work node:22-slim npx -y lintsure scanThe report (lintsure-report.md) is written into the mounted folder. Add --fail-on gap to fail a CI job on clear problems.
To run the MCP server in a container, for directories and tools that start servers that way, build the image in this repo. It serves over stdio and reads the code mounted at /workspace:
docker build -t lintsure-mcp https://github.com/lintsure/lintsure.git
docker run -i --rm -v "$PWD:/workspace:ro" lintsure-mcpImportant: Lintsure is a readiness tool, not an audit, a certification or legal advice. Its rules reflect our reading of the publicly available text of each framework, and they check code only. Work outside code, such as policies, training, contracts and evidence, still has to be done. Have a qualified person review the results before any audit, certification or decision. See DISCLAIMER.md.
Related MCP server: Meridian
What it does
Lintsure sits between your AI coding agent and your codebase. It does three things:
Checks the code your agent writes. 89 rules look for problems that AI-written code often has: secrets committed to source, databases without row level security, personal data written to logs, AI output used without a human check, agent configs that run remote code, and more. It reads JavaScript, TypeScript and Python, plus config and secret checks for every file.
Maps each finding to the standards you connect. Six frameworks are built in: OWASP Top 10, OWASP LLM Top 10, CWE Top 25, GDPR, the EU AI Act and the EU Cyber Resilience Act. You pick which ones apply in
lintsure.config.yaml.Keeps your agent on your rules. The MCP server lets the agent ask which checks apply before it writes code (
plan_checks) and scan its own work before it says it's done. The Claude Code plugin adds Drift Guard, which holds the agent to the rules you write in.lintsure/rules.yml.
Every finding shows:
the file and line
a status: Gap, Partial, Met or Outside code
every control it touches, across every framework you check
a suggested fix and a plain auditor note
It also lists what code can't prove (access reviews, training records, contracts), and it can write a multi-page assessment report with a human review and sign-off page (--report).
Common questions it answers: Is there a security scanner for code written by Claude Code or Cursor? How do I stop my AI agent from committing secrets? Is there an MCP server that checks code against OWASP or GDPR? How do I make my coding agent follow project rules?
Built to inform, not to decide
Never uploads your code. The engine has no network code. A test fails the build if any appears.
Same input, same result. The Checker is a fixed rule engine, not a language model.
No fake green ticks. Only the Checker can mark a control Met, and Met only means the rules found no problem in the files they read.
Never decides for you. Every report and every MCP reply ends with the disclaimer and the next steps a person still needs to take. The MCP server tells coding agents not to call you compliant, certified or ready, not to make decisions, and to ask before changing anything. Tests check that Lintsure's own wording never claims a verdict.
What it doesn't do
We'd rather say this up front than have you find out later:
Not a pentest. It reads source files. It doesn't run your app, send requests to a live site or test a deployed server.
Not a full code analyzer. Rules are pattern checks on lines and statements, plus a few checks across files. They don't follow data through your whole program, so some findings are marked Partial for a person to confirm.
Not a dependency scanner. It flags risky install patterns and unpinned versions, not known vulnerabilities in the packages you use.
Not an audit or legal advice. A Met control means the rules found no problem in the files they read, nothing more.
Using it with an AI agent: Lintsure is a defensive review of code you own. If you ask an agent to run it, say that ("review my own repo against OWASP Top 10 and fix what you find"), which describes the work accurately.
More ways to run it
Status: Beta. All rules are in Beta: their mappings are our own reading of the public texts, not independently reviewed.
Add it to the coding agents this project uses (Claude Code, Cursor, VS Code, Gemini CLI). It shows the change first and backs up any file it edits:
npx lintsure setup # preview
npx lintsure setup --yes # write it
npx lintsure status # check Node, config, rules and agentsOr add it yourself in Claude Code: claude mcp add lintsure -- npx -y @lintsure/mcp.
From source: git clone, npm install, npm test, then node packages/cli/dist/src/index.js scan /path/to/your-app.
Then ask: check this repo for compliance. Setup for Cursor, Codex and Devin Desktop (formerly Windsurf), every CLI flag, the report format and the full rules reference are in the docs.
Run it on every pull request with lintsure/action.
Docs offline: the @lintsure/core package includes plain Markdown docs (docs/rules.md, docs/frameworks.md, docs/agents.md), generated from the rules themselves, so a coding agent can read them from node_modules/@lintsure/core/docs without going online.
What's inside
Path | What |
| Finding schema, 89 rules, framework knowledge, scan, config reader, report writer, policy fingerprint, pack loader, safety wording |
| The |
| MCP server: |
| Planted problems, near misses and a config example used by the tests |
| Starts the MCP server: every reply carries the disclaimer, bad input is rejected, the tool list stays small |
|
|
| Checks the real-incident links on rules still answer (run before a release) |
Get it from the official places only
Lintsure is published only as lintsure, @lintsure/core and @lintsure/mcp on npm, from github.com/lintsure, and at lintsure.com. A security tool is a good target for lookalikes: a repo or package with a similar name is not ours.
Help Lintsure grow
Lintsure is free and built in the open. If it helped you:
⭐ Star this repo, so more teams can find it
Share it with a founder or engineer who's facing an audit
Send a review if you run it at your company. Good or bad, we read every one
Request a demo of the team platform (history, PR checks, evidence log, expert review)
Get help
Questions: hello@lintsure.com
Support: support@lintsure.com
Security issues: see SECURITY.md. Please don't open a public issue.
Bugs and ideas: open an issue
What's new
See CHANGELOG.md or lintsure.com/changelog.
Contributing
See CONTRIBUTING.md. Every rule needs a planted example, a near miss, and a link from the framework knowledge; npm test checks all of it.
Everyone taking part follows the code of conduct. Our accessibility commitment, and how to report a barrier, is in ACCESSIBILITY.md.
License
Apache-2.0. Contributions are accepted under the DCO: sign off your commits with git commit -s.
Available Tools
5 toolsclassifyARead-onlyIdempotent
Suggest which compliance frameworks may apply to a product, with a short reason for each, from a few yes/no answers about it. Use when the user asks 'which rules apply to us?' or before a first scan. Call it with no answers to get the questions to ask the user; then call it again with what you know and leave the rest out. Returns a list of frameworks to confirm with the user before running scan. Suggestions only: the user decides, ideally with a compliance professional. Read-only.
Inputs: usesAI, euUsers, usMarket, mobileApp, +12 more.
explain_frameworkARead-onlyIdempotent
Explain a compliance framework in plain words: what it is, who it applies to, key dates (marked as already applying or upcoming), what it asks for, which parts Lintsure can check in code and which need work outside code. Use when the user asks 'what is the EU AI Act?', 'does the Cyber Resilience Act apply to us?', 'when does it apply?' or 'what does SOC 2 need from our code?', often before a scan. Returns text; read-only.
Inputs: framework (required).
explain_ruleARead-onlyIdempotent
Explain one Lintsure rule in plain words: what it looks for, which framework controls it relates to (for example GDPR Art. 32 or OWASP A05), why it matters and how to fix it. Use after scan, when the user asks about a finding ('what does pii.logged mean?', 'why is this a problem?'). Returns text; read-only.
Inputs: ruleId (required).
plan_checksARead-onlyIdempotent
Before writing a feature, list the Lintsure checks it is most likely to run into, with what each looks for and how to avoid it. Use when the user describes something to build ('add a file upload', 'a login page with Supabase', 'a chat with Claude'). Word matching, not a code review: it reads only the description. Returns text; read-only.
Inputs: feature (required).
scanARead-onlyIdempotent
Scan a repository's source code for compliance and security gaps against the chosen frameworks. Use when the user asks things like 'is this ready to ship?', 'are we GDPR ready?' or 'check this repo for security issues'. By default returns a short list: Gaps first, each with file, line, rule, risk level and a one-line fix, plus counts and what was not covered. To check a fix, call it again with files and rules set to the file and rule you changed. Set format to "full" for the whole Markdown report and JSON. Read-only: it never changes files. Call classify first if you don't know which frameworks apply. Results are for a person to review, never a pass, certification or decision.
Inputs: all, path, files, limit, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct role in the workflow: classify identifies applicable frameworks, explain_framework teaches a framework, plan_checks previews likely checks before coding, scan performs the audit, and explain_rule interprets findings. The scan/plan_checks and explain_framework/explain_rule pairs are distinguishable by timing and object of explanation.
Most names follow a verb_noun pattern (plan_checks, explain_framework, explain_rule), while scan and classify are bare verbs. The deviation is minor and all names remain intuitive and predictable.
Five tools is well-scoped for a focused compliance-scanning assistant. Every tool covers a distinct stage and none feels redundant or missing from the set.
The surface covers the main lifecycle: framework discovery, explanation, pre-coding planning, scanning, and finding explanation. A listing tool for all supported frameworks or rules would fill a minor gap, but agents can work around it via classify and explain_*.
Maintenance
Related MCP Connectors
Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
Checks AI-written code for leaked keys and made-up packages, on your machine. Never uploads code.
AI code governance and code review for Claude Code, Copilot and Cursor. Checks rules and security.
Compliance & security scan for your app: secrets, exposed files, headers, privacy, AI-disclosure.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThe only Multi-LLM Compliance Engine (GPT-4o + Claude + DeepSeek). Auto-fix GDPR/LGPD risks and more 15 frameworks. code.guard.eu11 npm1MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first AI compliance scanner via Model Context Protocol, scanning codebases for violations of DPDPA 2023, RBI FREE-AI, SEBI AI/ML, and the EU AI Act.82 PyPI1Apache 2.0
- AlicenseAqualityDmaintenanceEnables EU AI Act compliance assessment by classifying AI systems, listing obligations, computing deadlines, and scanning repos for required documentation, all running locally.42MIT
- AlicenseNot gradedqualityDmaintenanceLocal-first security check for AI coding agents — finds hardcoded secrets, exposed .env files, git-history leaks and vulnerable dependencies (OSV), entirely on your machine. Ask your agent "is this safe to ship?" and get a Launch Readiness score with a fix for every finding.MIT