Citadel

Citadel MCP server

The Model Context Protocol lets your coding assistant call Citadel. It runs the analysis, receives each flaw with its file, line and fix, then edits the code and runs a new analysis to check.

Set up your assistant

Create a free account at citadelscan.com, then an API key in Console › CLI & IDE. A key acts on your behalf in one workspace; it is shown once and can be revoked at any time.

Cursor: the project’s .cursor/mcp.json
{
  "mcpServers": {
    "citadel": {
      "command": "npx",
      "args": ["-y", "citadelscan", "mcp"],
      "env": { "CITADEL_API_KEY": "cit_..." }
    }
  }
}
Claude Code: one command
claude mcp add citadel -e CITADEL_API_KEY=cit_... -- npx -y citadelscan mcp
Windsurf: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "citadel": {
      "command": "npx",
      "args": ["-y", "citadelscan", "mcp"],
      "env": { "CITADEL_API_KEY": "cit_..." }
    }
  }
}
VS Code: .vscode/mcp.json
{
  "servers": {
    "citadel": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "citadelscan", "mcp"],
      "env": { "CITADEL_API_KEY": "cit_..." }
    }
  }
}

Tools

ToolParametersResult
citadel_scanpath (folder, optional), project (name, optional)The grade, then each open flaw with severity, file, line, problem, excerpt (secrets masked) and fix
citadel_scan_resultscanIdThe same result for an analysis already run

An analysis usually takes 1 to 3 minutes: the tool waits for the end before answering.

Example prompts

  • “Analyse this project with Citadel and fix the critical flaws.”
  • “Run Citadel, explain the most severe flaw and propose the fix before applying it.”
  • “Check with Citadel that my Supabase migrations enable RLS.”

Safeguards

  • Only a project folder can be analysed: never your home folder or a drive root, even if the assistant asks.
  • The same upload rules as the CLI: .gitignore respected, credential files excluded outside git.
  • The key stays in the MCP server’s local configuration; it is never passed to the assistant.

The free plan includes 10 analyses a month, CLI and MCP included, no card needed.

Nobody reads your code: it is analysed automatically in an isolated environment, then deleted. Code privacy

Create my free key

Get your app
audited.

Create your workspace in a minute. Ten free analyses every month, no card needed.

  • Full report with OWASP and CWE references
  • Ready-to-paste fix prompts
  • A to F security grade, ready to share
  • A new analysis after your fixes

Your first report in a few minutes

Upload an archive of your code, connect a GitHub repository or enter your site’s address. Citadel does the rest.

Create my free account

Custom audit

Sensitive app, client deadline, fundraising? Our team runs a tailored audit: human review of the code and infrastructure, a detailed report, and help through the fixes.

Book a 15-minute call