
GitGuardian
STDIOOfficialAI驱动的GitGuardian安全扫描服务器
AI驱动的GitGuardian安全扫描服务器
Stay focused on building your product while your AI assistant handles the security heavy lifting with GitGuardian's comprehensive protection.
This MCP server enables your AI agent to scan projects using GitGuardian's industry-leading API, featuring over 500 secret detectors to prevent credential leaks before they reach public repositories.
Resolve security incidents without context switching to the GitGuardian console. Take advantage of rich contextual data to enhance your agent's remediation capabilities, enabling rapid resolution and automated removal of hardcoded secrets.
[!CAUTION] MCP servers are an emerging and rapidly evolving technology. While they can significantly boost productivity and improve the developer experience, their use with various agents and models should always be supervised.
Agents act on your behalf and under your responsibility. Always use MCP servers from trusted sources (just as you would with any dependency), and carefully review agent actions when they interact with MCP server tools.
To better assist you in safely using this server, we have:
(1) Designed our MCP server to operate with "read-only" permissions, minimizing the access level granted to your agent. This helps ensure that, even if the agent tries to perform unintended actions, its capabilities remain limited to safe, non-destructive operations.
(2) Released this official MCP server to ensure you are using a legitimate and trusted implementation.
Remediate all incidents related to my project
Scan this codebase for any leaked secrets or credentials
Check if there are any new security incidents assigned to me
Help me understand this security incident and provide remediation steps
List all my active honeytokens
Generate a new honeytoken for monitoring AWS credential access
Show me my most recent honeytoken and help me embed it in my codebase
Create a honeytoken named 'dev-database' and hide it in config files
Before installing the GitGuardian MCP servers, ensure you have the following prerequisites:
Below are instructions for installing the GitGuardian MCP servers with various AI editors and interfaces.
Quick Install with One-Click Buttons (Cursor >= 1.0):
For Developer MCP Server:
Manual Configuration:
Edit your Cursor MCP configuration file located at ~/.cursor/mcp.json
Add the GitGuardian MCP server configuration:
{ "mcpServers": { "GitGuardianDeveloper": { "command": "uvx", "args": [ "--from", "git+https://github.com/GitGuardian/gg-mcp.git", "developer-mcp-server" ] } } }
Edit your Claude Desktop MCP configuration file located at:
~/Library/Application Support/Claude Desktop/mcp.json
%APPDATA%\Claude Desktop\mcp.json
Add the GitGuardian MCP server configuration:
{ "mcpServers": { "GitGuardianDeveloper": { "command": "/path/to/uvx", "args": [ "--from", "git+https://github.com/GitGuardian/gg-mcp.git", "developer-mcp-server" ] } } }
Replace /path/to/uvx
with the absolute path to the uvx executable on your system.
⚠️ WARNING: For Claude Desktop, you must specify the full absolute path to the
uvx
executable, not just"command": "uvx"
. This is different from other MCP clients.
Restart Claude Desktop to apply the changes.
To use the GitGuardian MCP server with Windsurf:
Edit your Windsurf MCP configuration file located at:
~/Library/Application Support/Windsurf/mcp.json
%APPDATA%\Windsurf\mcp.json
~/.config/Windsurf/mcp.json
Add the following entry to the configuration file:
{ "mcp": { "servers": { "GitGuardianDeveloper": { "type": "stdio", "command": "uvx", "args": [ "--from", "git+https://github.com/GitGuardian/gg-mcp.git", "developer-mcp-server" ] } } } }
Edit your Zed MCP configuration file located at:
~/Library/Application Support/Zed/mcp.json
~/.config/Zed/mcp.json
Add the GitGuardian MCP server configuration:
{ "GitGuardianDeveloper": { "command": { "path": "uvx", "args": [ "--from", "git+https://github.com/GitGuardian/gg-mcp.git", "developer-mcp-server" ] } } }
If you want to contribute to this project or add new tools, please see the Development Guide.
This project includes a comprehensive test suite to ensure functionality and prevent regressions.
uv run pytest
This will run all tests and generate a coverage report showing which parts of the codebase are covered by tests.