Provides comprehensive Git repository operations including status checks, staging files, creating commits, pushing and pulling from remote repositories, viewing commit history, and showing file differences.
Enables file and Git operations within n8n workflows through MCP Client nodes and AI Agent Tools, using Server-Sent Events (SSE) transport for integration.
MCP File & Git Manager Server
A Model Context Protocol (MCP) server that provides file and git operations for n8n workflows.
Features
File Operations
read_file: Read file contents
write_file: Create or update files
list_files: List files and directories (with recursive option)
delete_file: Delete files or directories
create_directory: Create new directories
Git Operations
git_status: Check repository status
git_add: Stage files for commit
git_commit: Create commits
git_push: Push to remote repository
git_pull: Pull from remote repository
git_log: View commit history
git_diff: Show file differences
Search
search_in_files: Search for text patterns in files
Quick Start
Local Development
Docker
Docker Compose
Add to your docker-compose.yml:
Configuration
Environment Variables
PROJECT_ROOT: Path to project directory (default:/workspace)PORT: Server port (default:3001)
Endpoints
Health Check:
GET http://localhost:3001/healthSSE Endpoint:
POST http://localhost:3001/sse(for n8n-nodes-mcp)Message Endpoint:
POST http://localhost:3001/message
n8n Integration
Create MCP Credential in n8n
Go to Credentials → New
Search for "MCP"
Configure:
Transport:
SSE(Server-Sent Events)URL:
http://mcp-file-git-server:3001/sse
Save
Use in Workflow
Add MCP Client node
Select your MCP credential
Choose operation (List Tools, Call Tool, etc.)
Connect to AI Agent Tool via
ai_toolconnection
Testing
Test Health Endpoint
Test SSE Endpoint
Troubleshooting
Permission Denied
Ensure the mounted project directory has correct permissions:
Git Not Working
Initialize git in the project directory:
Connection Issues
Check Docker network connectivity:
License
MIT
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides file system operations (read, write, list, delete) and Git repository management (status, commit, push, pull, diff) for n8n workflows through the Model Context Protocol.