gitleaks-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITLEAKS_BIN | No | Path to the gitleaks binary. Only needed if gitleaks is not on your PATH; otherwise gitleaks must be installed and available on PATH (e.g., `brew install gitleaks`). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| scan_repoA | Scan a git repository, including its commit history, for hardcoded secrets. Secret values are always redacted. |
| scan_stagedA | Scan only the changes currently staged in a git repository (what |
| scan_pathA | Scan a directory or single file on disk for secrets, without needing git. |
| scan_textA | Scan a string (e.g. a snippet, config or diff you are about to write or share) for secrets. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| pre-push-check | Check a repository for secrets before committing or pushing. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| about | Installed gitleaks version and the safety guarantees of this server. |
TDQS
Scored across 4 tools
Each tool targets a distinct input source: a git repo with history, the staged index, a filesystem path, and a raw string. Overlap is minimal and the descriptions make the boundaries explicit (e.g. scan_staged vs scan_repo, scan_path without git).
All four tools follow a uniform scan_<target> pattern (scan_repo, scan_staged, scan_path, scan_text). The target nouns are clear and predictable.
Four tools is a tight, well-scoped surface for a secret-scanning server; each maps to a real distinct workflow (CI/history, pre-commit, on-disk, ad-hoc snippet). No tool feels redundant.
The main input modalities for secret scanning are covered, so agents have no dead ends for typical use. Minor gaps exist (e.g. no rule/config listing or baseline management), but these are workarounds rather than core failures.