Compliance checks in Claude Code with an MCP server
Updated 7 November 2026 · 5 min read
The Model Context Protocol (MCP) lets a coding agent such as Claude Code call tools that run on your machine. Lintsure ships an MCP server, so you can ask your agent to check a repository against the code side of the EU AI Act, GDPR, the OWASP Top 10 and the CWE Top 25 without leaving the chat.
The server runs locally over standard input and output. It reads files and never writes them, and its checks make no network calls. Your code isn’t sent to Lintsure. Your coding agent is a separate product and follows its own provider’s rules.
Set it up in Claude Code
You need Node.js 22 or later. Then run:
claude mcp add lintsure -- npx -y @lintsure/mcp
Start a new Claude Code session in your project, and the Lintsure tools are available.
Other agents
Cursor, in .cursor/mcp.json:
{ "mcpServers": { "lintsure": { "command": "npx", "args": ["-y", "@lintsure/mcp"] } } }
Codex, in ~/.codex/config.toml:
[mcp_servers.lintsure]
command = "npx"
args = ["-y", "@lintsure/mcp"]
Devin Desktop (formerly Windsurf), in ~/.config/devin/mcp_config.json, or .devin/mcp_config.json in your project:
{ "mcpServers": { "lintsure": { "command": "npx", "args": ["-y", "@lintsure/mcp"] } } }
Settings formats change between versions. If a snippet doesn’t work, check your agent’s own MCP documentation.
What to ask
- check this repo for compliance
- which frameworks apply to us? we have EU users and use AI to rank job applicants
- what does the EU AI Act ask of our code?
- explain the pii.logged finding and suggest a fix
Behind those questions, the agent mainly uses these tools:
| Tool | What it does |
|---|---|
scan |
Runs the rules on a folder and returns the findings, the work outside code and the next steps |
classify |
Suggests which frameworks may apply from answers about your product, then asks you to confirm |
explain_framework |
Explains a framework: who it applies to, key dates, and which duties show up in code |
explain_rule |
Explains one rule: the controls it relates to, the fix and an auditor note |
You stay in charge
When the agent connects, Lintsure gives it instructions:
- don’t say or suggest you are compliant, certified or ready for an audit
- don’t decide for you; ask before changing a file or treating a framework as applying to you
- say that results cover code only, and mention the work outside code
- recommend that a qualified person reviews the results
A typical session looks like this: the agent runs scan, lists two gaps with file and line, and asks which to fix. You pick one, it shows the diff, and nothing changes until you approve it. Then it runs scan again to confirm the finding is gone.
How closely an agent follows these instructions depends on the agent, so read what it proposes before you approve it.
Also in CI and the terminal
The same rules run from the command line and on every pull request:
npx lintsure scan
- uses: lintsure/action@v1
The results are the same everywhere, because the rules don’t depend on which tool runs them. See the MCP docs for every option, and the rules for what is checked.
Check your own code
Lintsure runs these checks on your machine and never uploads your code.
npx lintsure scanThis guide is our own reading of public texts, written for software teams. It is not legal advice and it doesn't cover your whole obligation, only the parts code can show. Ask a qualified person before any audit or decision. Disclaimer