Official documentation for ShadowGit MCP Server - give your AI assistants perfect memory of your code changes.
ShadowGit saves every keystroke and feeds your complete code history to AI assistants like Claude and Cursor via MCP (Model Context Protocol). Your AI stops guessing and knows exactly what worked before.
- Node.js 18+ installed (Download Node.js)
- ShadowGit desktop app running with at least one tracked repository (Download ShadowGit)
- Available for Mac, Windows, and Linux
Option 1: npm (Recommended)
npm install -g shadowgit-mcp-serverOption 2: From GitHub
git clone https://github.com/blade47/shadowgit-mcp.git
cd shadowgit-mcp
npm install && npm run build
npm install -g .Choose your AI assistant and follow the setup:
# One command setup
claude mcp add shadowgit -- shadowgit-mcp-server
# Restart Claude Code-
Edit your config file:
- Mac/Linux:
~/.config/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Mac/Linux:
-
Add ShadowGit server:
{
"mcpServers": {
"shadowgit": {
"command": "shadowgit-mcp-server"
}
}
}- Open Cursor Settings (
Cmd/Ctrl + ,) - Search for "MCP"
- Add configuration:
{
"mcpServers": {
"shadowgit": {
"command": "shadowgit-mcp-server"
}
}
}Ask your AI: "What ShadowGit repositories do I have?"
Your AI should list your tracked repositories. If not, see troubleshooting below.
- 66% faster debugging - AI knows your history, no wasted time re-explaining
- Fix bugs in one shot - AI sees what broke and when
- Perfect memory - Never explain context again
- AI session tracking - Automatically detects and tracks AI coding sessions for better context
- 100% local - Your code never leaves your machine
Once configured, your AI can:
# See recent commits
"Show me what changed in the last hour"
# Debug issues
"When did this function last work correctly?"
# Find patterns
"What files usually change together with auth.ts?"
# Time travel
"What was I working on yesterday at 3 PM?"This documentation covers:
- Getting Started: Introduction and installation guide
- AI Tool Integration: Detailed setup guides for Claude Code, Cursor, and Windsurf
- MCP Server: Complete configuration and usage examples
- ShadowGit Website: https://shadowgit.com
- GitHub Repository: https://github.com/blade47/shadowgit-mcp
- MCP Server Package: shadowgit-mcp-server on npm
- Support: support@shadowgit.com
- Live Documentation: docs.shadowgit.com
- Open ShadowGit desktop app
- Add at least one repository (click + button)
- Wait for first snapshot (usually 3 minutes)
- Ask your AI again
# Check if installed
npm list -g shadowgit-mcp-server
# If not found, reinstall from npm
npm install -g shadowgit-mcp-server
# Or install from GitHub
git clone https://github.com/blade47/shadowgit-mcp.git
cd shadowgit-mcp && npm install && npm run build && npm install -g .
# Use full path in config if needed
which shadowgit-mcp-server- Restart your AI application completely after adding config
- Check Node.js is installed:
node --version - Verify ShadowGit app is running with tracked repositories
Grant your AI tool full disk access:
- System Preferences → Security & Privacy
- Privacy → Full Disk Access
- Add your AI application (Claude, Cursor, etc.)
Transform your AI development workflow with ShadowGit. Perfect memory, instant debugging, massive time savings. 🚀