Provides read-only access to Git repositories with fine-grained commit history, enabling AI assistants to analyze code evolution, debug recent changes, trace function development, and perform cross-repository analysis using standard Git commands
ShadowGit MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with secure, read-only access to your ShadowGit repositories. This enables powerful debugging and code analysis capabilities by giving AI access to your project's fine-grained git history.
What is ShadowGit?
ShadowGit automatically captures every save as a git commit, creating a detailed history of your development process. The MCP server makes this history available to AI assistants for analysis.
Installation
Setup with Claude Code
Setup with Claude Desktop
Add to your Claude Desktop MCP configuration:
macOS/Linux: ~/.config/Claude/claude_desktop_config.json
Windows: %APPDATA%\\Claude\\claude_desktop_config.json
Requirements
- Node.js 18+
- ShadowGit app installed and running with tracked repositories
- Git available in PATH
Available Commands
list_repos()
Lists all ShadowGit-tracked repositories.
git({repo, command})
Executes read-only git commands on a specific repository.
Security
- Read-only access: Only safe git commands are allowed
- No write operations: Commands like
commit
,push
,merge
are blocked - Repository validation: Only ShadowGit repositories can be accessed
- Command filtering: Dangerous arguments are blocked
Example Use Cases
Debug Recent Changes
Trace Code Evolution
Cross-Repository Analysis
Troubleshooting
No repositories found
- Ensure ShadowGit app is installed and has tracked repositories
- Check that
~/.shadowgit/repos.json
exists
Repository not found
- Use
list_repos()
to see exact repository names - Ensure the repository has a
.shadowgit.git
directory
Git commands fail
- Verify git is installed:
git --version
- Only read-only commands are allowed
- Use absolute paths or repository names from
list_repos()
Development
For contributors who want to modify or extend the MCP server:
Publishing Updates
License
MIT License - see LICENSE file for details.
Related Projects
Transform your development history into a powerful AI debugging assistant! 🚀
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Provides AI assistants with secure, read-only access to ShadowGit repositories for debugging and code analysis. Enables powerful analysis of fine-grained git history captured automatically by ShadowGit's continuous commit tracking.
Related MCP Servers
- AsecurityAlicenseAqualityProvides comprehensive Git operations as tools for AI assistants and applications. This server enables AI systems to interact with Git repositories, allowing to initialize, fetch, commit, log, status, etc..Last updated -100MIT License
- -securityFlicense-qualityConnects AI assistants to GitLab, allowing users to manage merge requests, view reviews, and interact with discussions through natural language queries.Last updated -8
- -securityAlicense-qualityEnables AI applications to automatically analyze local repositories and create GitHub repositories with proper configuration, topics, and complete setup workflow.Last updated -1GPL 3.0
- -securityFlicense-qualityEnables AI assistants to automatically analyze GitHub repositories and set up development environments by detecting tech stacks, installing dependencies, and verifying project builds. Provides safe tools for repository cloning, file system operations, package installation, and build verification through an allowlisted command system.Last updated -