git-history-viewer
Provides a read-only view of Git repository history, allowing browsing of commits, branches, and changes in a local working copy.
Enables AI-powered analysis of commit metadata using Google's Gemini models via the Google API.
Enables AI-powered analysis of commit metadata using locally hosted Ollama models.
Enables AI-powered analysis of commit metadata using OpenAI's models via the OpenAI API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@git-history-viewerShow me the last 10 commits and what files they changed"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Git History Viewer
A free, local-first, read-only Git history graph for the browser, CLI, and MCP clients.
Public alpha. Pin an exact version in managed environments.
Install
Requires Node.js 22 or later and Git 2.40 or later.
npm install --global @peekaboo-develop/git-history-viewer@alphaRelated MCP server: git-insights-mcp
Open a repository
cd /path/to/repository
git-history-viewer web .The viewer opens a loopback-only browser session for that working copy. It does not clone, fetch, pull, push, or modify Git state. Remote-tracking refs show the last state fetched by your existing Git workflow.
For MCP setup, start with metadata-only access:
git-history-viewer mcp --repo /absolute/path/to/repository --content-policy metadataDevelopment
npm install
npm test
npm run license:check
npm run test:pack
node bin/git-history-viewer.mjs web . --port 0 --no-open
node bin/git-history-viewer.mjs web . --port 0 --no-open --ollama-model qwen3:4b
node bin/git-history-viewer.mjs config path
node bin/git-history-viewer.mjs config validate
node bin/git-history-viewer.mjs profiles list
node bin/git-history-viewer.mjs web . --ai-profile local-fast --ai-profile local-deep
node bin/git-history-viewer.mjs mcp --repo /absolute/path --content-policy metadata
node bin/git-history-viewer.mjs cache statusThe default MCP policy does not expose patches, author emails, or absolute paths. The application never fetches or mutates Git state.
The Web header includes an AI接続 guide for verified Codex, Claude Code, and Cursor MCP setup templates. It never edits a client configuration or exposes the repository's absolute path. A selected commit can produce a short MCP prompt containing only its OID.
The optional Web AI flow is disabled unless an --ai-profile or the legacy --ollama-model option is supplied. Profiles support numeric-loopback Ollama and the official OpenAI, Anthropic, and Google APIs. Every provider previews the exact metadata payload and requires a second click before generation. When multiple profiles are enabled, the detail pane provides a model selector. Remote endpoints and credential names are fixed in code: OpenAI reads OPENAI_API_KEY, Anthropic reads ANTHROPIC_API_KEY, and Google reads GEMINI_API_KEY. Keys are never accepted from the browser or config file. Loopback does not by itself prove where Ollama executes a model. Patches, file contents, identities, absolute paths, refs, remotes, and commit IDs are not sent.
The config path is OS-specific and printed by config path. The strict JSON format stores no credentials, arbitrary endpoints, prompts, or environment-variable names:
{
"schemaVersion": "1",
"defaultProfileId": "local-fast",
"profiles": [
{
"id": "local-fast",
"label": "Local fast",
"provider": "ollama",
"model": "qwen3:4b",
"ollamaPort": 11434,
"maxOutputTokens": 1536
},
{
"id": "openai-fast",
"label": "OpenAI fast",
"provider": "openai",
"model": "gpt-5.4-mini",
"maxOutputTokens": 1536
},
{
"id": "claude-balanced",
"label": "Claude balanced",
"provider": "anthropic",
"model": "claude-sonnet-4-6",
"maxOutputTokens": 1536
},
{
"id": "gemini-fast",
"label": "Gemini fast",
"provider": "google",
"model": "gemini-2.5-flash",
"maxOutputTokens": 1536
}
]
}Config changes require a restart. --ai-profile is repeatable and is the explicit allowlist for that Web session. Export the corresponding fixed key only when selecting a remote profile.
The AI-result cache uses bounded, sharded JSON files in the operating system's user cache directory. Cache metadata stores no API keys, raw prompts, diffs, repository paths, or remote URLs; generated results may still repeat sensitive source text. --no-ai-cache bypasses reads and writes. cache clear removes only recognized cache-entry files.
The commit detail pane can recommend up to two version-neutral links from a compiled registry of official documentation for strong path markers such as GitHub Actions workflows, Docker/Compose files, TSConfig, Vite config, and Vue SFCs. Link display performs no network access. A separate button can fetch bounded excerpts directly from those fixed official URLs through a DNS-rebinding-resistant, pinned-IP HTTPS transport. The destination can infer the detected technology, but repository names, paths, commits, messages, cookies, credentials, and referrers are not sent. Redirects are rejected. When AI is enabled, another separate preview and confirmation can send the displayed excerpts plus opaque citation IDs to the selected provider; official URLs and titles are never sent to the model and are mapped back only by the server. Version detection remains unavailable.
See docs/PRODUCT_SPEC.md, docs/ARCHITECTURE.md, docs/MCP.md, docs/SECURITY.md, and docs/ROADMAP.md for the normative design and planned remote-environment support.
Release preparation and rollback are documented in docs/RELEASING.md. Building an artifact does not authorize publishing it.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA local MCP server that turns AI clients into power users of local git repositories, enabling clone, browse, search, and inspect code without burning API tokens.
- FlicenseNot gradedqualityCmaintenanceA local-only MCP server that exposes git repository history, diffs, and status as tools for LLM clients, working entirely against a local git repo on disk.
- AlicenseAqualityCmaintenanceA local Git intelligence MCP server that provides deep repository analytics including hotspots, churn, knowledge maps, and risk scoring, all computed from commit history without data leaving your machine.12MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI assistants deep understanding of your local Git repositories, providing instant repo overviews, change summaries, blame analysis, changelogs, branch health checks, and history search.67MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that gives your AI access to the source code and docs of all public github repos
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/peekaboo-develop/git-history-viewer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server