GitGuardian MCP Server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GitGuardian MCP Server
Remediate leaked secrets from your AI agent, from a single repository to your whole organization.
The GitGuardian MCP server connects any MCP client to GitGuardian's secrets detection and incident management. Your agent gets the same view of your incidents as the GitGuardian dashboard, and can act on them for you.
Built for two jobs
SecOps and AppSec: orchestrate remediation at scale
Triage the backlog. List, count and prioritize internal and Public Monitoring incidents by severity, validity, source, tag or assignee.
Route the work. Assign incidents to the right developer or team, set severity, add tags and comments, across the whole workspace. Share Public Monitoring incidents with external developers using
create_public_incident_share_link(requiresincidents:share). Anyone holding the link can view the shared incident; feedback collection and permission to resolve or ignore default to off. Setlifespanin hours, or leave it at zero for the workspace's default sharing duration. Revoke the link withrevoke_public_incident_share_linkto end that access.Close the loop. Resolve, ignore or reopen incidents, revoke exposed secrets, and deploy honeytokens.
Developers: fix incidents in the repository you work on
See what's yours. Get the incidents assigned to you and the leaks in the current repository, with their exact locations and history.
Fix them in place. Follow GitGuardian’s remediation workflow, or your organization’s own, to remove the secret from the code and get it rotated.
Agents act with your permissions. Review actions that modify incidents, create credentials, or revoke secrets, and grant only the scopes you need.
Related MCP server: envguard
Quick start: hosted server
Add the URL for your GitGuardian region through your client's remote MCP setup and complete the OAuth sign-in:
Region | URL |
US |
|
EU |
|
Example for clients using an mcpServers configuration:
{
"mcpServers": {
"GitGuardian": {
"type": "http",
"url": "https://mcp.gitguardian.com/mcp"
}
}
}Hosted requests pass through the GitGuardian MCP service. To run the server on your own machine or infrastructure, use local stdio or self-hosting.
Try asking your agent:
"Scan this codebase for leaked credentials."
"Explain the security incidents assigned to me and suggest remediation steps."
"Generate an AWS honeytoken named dev-database."
Local stdio
Install uv and add this local-server configuration to your MCP client. Requests go from your machine to the configured GitGuardian API.
{
"mcpServers": {
"GitGuardian": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/GitGuardian/ggmcp.git",
"gg-mcp-server"
],
"env": {
"GITGUARDIAN_URL": "https://dashboard.gitguardian.com"
}
}
}
}Set GITGUARDIAN_URL to your dashboard URL. Browser login is enabled by default;
the first tool call opens a login flow and stores the resulting PAT locally for reuse.
Each login creates a new PAT in your GitGuardian account.
For headless use, add GITGUARDIAN_PERSONAL_ACCESS_TOKEN and
ENABLE_LOCAL_OAUTH=false to env. Create a PAT under API → Personal Access
Tokens in your GitGuardian dashboard. Keep real tokens out of committed configuration.
Clients that cannot find uvx through PATH need its absolute path in command.
For optional Sentry support, use
ggmcp[sentry] @ git+https://github.com/GitGuardian/ggmcp.git as the --from value
and configure SENTRY_DSN.
Self-hosting
Run the published Docker image behind a reverse proxy that terminates TLS, then
connect your MCP clients to its /mcp endpoint:
docker run -p 8000:8000 \
-e GITGUARDIAN_URL=https://dashboard.gitguardian.mycorp.local \
-e IS_ON_PREM=true \
-e MCP_BASE_URL=https://mcp.mycorp.local \
-e MCP_OAUTH_PROXY_ENABLED=true \
-e MULTI_TENANCY_ENABLED=true \
-e MCP_PORT=8000 \
-e ENABLE_LOCAL_OAUTH=false \
ghcr.io/gitguardian/mcp-server:latest \
gunicorn --workers=4 --worker-class=uvicorn.workers.UvicornWorker \
-b 0.0.0.0:8000 gg_mcp_server.http_app:appIS_ON_PREM=trueselects the self-hosted GitGuardian API path and supported scopes, overriding hostname detection. Set it explicitly for self-hosted GitGuardian instances.MCP_BASE_URLis the public URL of your MCP server.MCP_OAUTH_PROXY_ENABLED=trueenables OAuth discovery and proxies authorization to your GitGuardian dashboard.HTTP requires
MULTI_TENANCY_ENABLED=trueandMCP_PORT. Every request uses its own bearer token; the server refuses HTTP startup without multi-tenancy.
For HTTP clients that send a PAT directly, leave MCP_OAUTH_PROXY_ENABLED unset,
keep ENABLE_LOCAL_OAUTH=false, and send Authorization: Bearer <PAT> with each request.
Live change notifications
Live tool, prompt and resource change subscriptions are disabled for HTTP and stdio.
This keeps long-lived subscriptions/listen responses from blocking worker recycling.
Clients can continue to discover and call tools normally; modern protocol discovery
advertises change subscriptions as unavailable.
Pagination
List tools accept per_page (1 to 100, default 20), cursor and get_all.
Results report per_page and provide next_arguments for the next call.
The former page_size input and result field have been removed; update existing
calls and result consumers to use per_page. A call that still sends page_size
is refused with an error naming per_page, so an agent can correct itself.
Configuration
Variable | Purpose | Default |
| GitGuardian dashboard URL |
|
|
| Unset |
| PAT for local stdio | Unset |
| Comma-separated OAuth scopes to request | Scopes used by the tools |
| OAuth client ID |
|
| Name for a local OAuth-issued PAT |
|
| Local OAuth PAT lifetime in days, or |
|
| Enable HTTP on this port; unset selects stdio | Unset |
| Use each request's bearer token; required for HTTP |
|
| HTTP bind address |
|
| Public MCP server URL for OAuth discovery |
|
| Enable OAuth proxy mode |
|
| Enable local browser login |
|
| Log level |
|
|
| Console on a TTY; JSON otherwise |
Development
Install Python 3.13, uv, and Make, then run:
git clone https://github.com/GitGuardian/ggmcp.git
cd ggmcp
uv sync --frozen --all-groups
make test
make lint
make typecheck
make formatInstall the linting, commit-message, and secret-scanning hooks with
uvx pre-commit install and uvx pre-commit install --hook-type pre-push.
Tools live in src/gg_api_core/tools/ and are registered with their required
scopes in src/gg_mcp_server/register_tools.py. Cover new tools in tests/e2e/.
See PUBLISHING.md for the release process.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pay-per-call cybersecurity for AI agents: vuln scans, threat intel, compliance, code security.
Secrets for developers and agents—secure context and workflows without exposing secret values.
Security checks for coding agents, paid per call: dependencies, secrets, SBOM, CI, email, TLS.
Security scanner for AI agents: prompt injection, leaked secrets, PII, and SSRF-risk URL detection.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to scan projects for secrets, manage incidents, and create honeytokens using GitGuardian's API.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to scan and audit environment files for leaked secrets, sanitize them, encrypt/decrypt vaults, and run processes with zero-disk secret injection.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to autonomously scan repositories and staged changes for leaked secrets, move exposed credentials into environment files, purge secrets from Git history, and verify remediation through deterministic tools.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents and IDE assistants to run zero-config security audits, detect secrets and vulnerable dependencies, and apply adversarial verification to reduce false positives.2-