git-memory
## Git Memory MCP Server - English Description Git Memory MCP Server is a powerful Model Context Protocol (MCP) server that combines Git repository management with intelligent memory capabilities. It's the first of its kind to integrate version control with semantic memory management for AI assistants.
claude mcp add --transport stdio nirutyodjai-git-memory-mcp-server node server.js \ --env GIT_MEMORY_API_KEY="your-secret-api-key-here" \ --env GIT_MEMORY_ALLOWED_REPOS="/var/repos/project-a:/var/repos/project-b"
How to use
git-memory exposes HTTP endpoints to manage Git repositories over REST, plus a WebSocket channel for real-time updates. It protects critical operations with an API key (required in production) and can be restricted to specific repository paths via a whitelist. You can perform common Git operations such as status, fetch, rebase, clone, push, pull, merge, and branch management through the /git/* endpoints. The server also provides repository statistics and diff views, and offers WebSocket-based real-time notifications for repository events and tool executions. Use the health and metrics endpoints to monitor the service, and consider enabling TLS behind a reverse proxy for production deployments.
How to install
Prerequisites:
- Redis server up and running (systemd: sudo systemctl start redis-server; macOS: brew services start redis; Windows: redis-server)
- Node.js (v18+ recommended)
- Git (for operations when interacting with repositories)
Install and run:
-
Install dependencies npm install
-
Configure environment
- Create a .env file or set environment variables: GIT_MEMORY_API_KEY=your-secret-api-key-here GIT_MEMORY_ALLOWED_REPOS=/path/to/repo1:/path/to/repo2
-
Start the server npm run start or node server.js
-
Verify the server is running
- Health check: curl http://localhost:3000/health
- Metrics: curl http://localhost:3000/metrics
-
Optional: Run in production with a process manager (PM2) and a reverse proxy (NGINX/ Traefik) for TLS termination.
Additional notes
Security: Always set GIT_MEMORY_API_KEY in production and restrict access to allowed repositories via GIT_MEMORY_ALLOWED_REPOS. Use HTTPS in production behind a reverse proxy. Rotate API keys periodically and monitor the /metrics endpoint for unusual activity. Logs are typically found in the application's log directory or stdout/stderr depending on your process manager. If you deploy behind Kubernetes, ensure environment variables are configured in your deployment manifests and that Redis is accessible from the cluster.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.