GitHits MCP server
com.githits · Updated
Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
At a glance
GitHits is an MCP server in the Dev Tools & Git category. It runs locally over stdio via `npx -y githits`, and declares no required credentials. It scores A (88/100) on the MCP Skills Hub health score as of Oct 28, 2026.
One-click install
Opens your editor and pre-fills the config. Your editor will ask before adding it.
How to install GitHits in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install GitHits in Claude CodeAnthropic's agentic CLI
Add the server
bashclaude mcp add githits -- npx -y githitsVerify it's connected
bashclaude mcp listSharing it with your team?
Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).
Use it in a session
Ask Claude to use the tools this server exposes. It discovers them automatically.
How to install GitHits in Claude DesktopDesktop app (MCP config)
Open your MCP config
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this server
json{ "mcpServers": { "githits": { "command": "npx", "args": [ "-y", "githits" ] } } }Restart Claude Desktop
The tools appear under the 🔌 menu once the app reloads.
How to install GitHits in CursorAI-first code editor
Create / edit .cursor/mcp.json in your project
json{ "mcpServers": { "githits": { "command": "npx", "args": [ "-y", "githits" ] } } }Enable it
Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.
How to install GitHits in Codex CLIOpenAI coding agent
Add to ~/.codex/config.toml
toml[mcp_servers.githits] command = "npx" args = ["-y", "githits"]Run Codex
Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.
How to install GitHits in WindsurfCodeium's agentic IDE
Edit ~/.codeium/windsurf/mcp_config.json
json{ "mcpServers": { "githits": { "command": "npx", "args": [ "-y", "githits" ] } } }Reload
Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.
How to install GitHits in ClineVS Code autonomous agent
Open Cline → MCP Servers → Configure
Adds to cline_mcp_settings.json.
Add the server
json{ "mcpServers": { "githits": { "command": "npx", "args": [ "-y", "githits" ] } } }
How to install GitHits in VS CodeCopilot / MCP support
Create .vscode/mcp.json
json{ "servers": { "githits": { "type": "stdio", "command": "npx", "args": [ "-y", "githits" ] } } }Start it
VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.
What tools does GitHits expose?
This server runs as a local package. We only query remote servers for their tool list — asking this one would mean executing it, so its tools are listed in the documentation below.
What the code can do
Read from the published package source — never executed. Parsed 5 of 5 source files.
The code this server ships can run other programs on your machine, read and write files and make network requests.
This package ships bundled code— its dependencies are compiled into the published files. The capabilities below are really in what runs on your machine, but they may come from a bundled library rather than the author's own source.
How it was published
- Published by a verified CI identity (github trusted publishing) rather than a personal token.
- Has a provenance attestation tying this artifact to the commit it was built from.
- 3 npm maintainers · last published by GitHub Actions.
Maintainer of this package and think something here is wrong? Tell us and we'll correct it.
Before you install
Signals gathered from the source repo and package registry — not a safety verdict.
What it can reach
- Runs code on your machine — Executes as a local process with your user's permissions, including filesystem access.
- Downloads at launch — The package is fetched from its registry each run unless you pin a version.
- Last commit today — Actively maintained.
- 120 GitHub stars — Community adoption signal.
Client compatibility
Health score
A · 88Maintenance, adoption, transparency and packaging — not a safety audit. How this is calculated
- Maintenance30%100%
Last commit 0 days ago.
- Adoption20%63%
120 stars.
- Transparency20%75%
3/4: ✓ public source repo, ✓ declared license, ✓ documentation, ✗ discoverable tool list.
- Provenance15%100%
Package and registry entry point at the same repository.
- Packaging15%100%
Publishes a pinned version (0.37.0).
Documentation
Full READMEGitHits CLI
The infrastructure layer connecting agents to the open-source ecosystem.
Website · Documentation · Issues
GitHits connects AI coding agents to public open-source evidence across the full software development lifecycle: discovery, planning, research, implementation, debugging, and maintenance.
The CLI runs a local MCP server that your coding tool starts on demand. Agents can then search indexed package and repository source, read exact files and documentation pages, inspect package health, compare dependency upgrades, and find source-cited examples from real open-source projects when model knowledge and local repository context are not enough.
Want to use GitHits as part of your agent harness or software factory? Check out our public API documentation.
Quick Start
npx githits@latest initinit signs you in, detects supported coding tools, and configures GitHits for the tools you select. It uses the local stdio MCP except for Cursor, whose direct setup uses the hosted remote MCP.
Automatic setup currently supports Claude Code, Cursor, Windsurf, VS Code / Copilot, Cline, Claude Desktop, Codex CLI, Pi, Gemini CLI, Google Antigravity, OpenCode, Hermes Agent, Zed, Junie, Qwen Code, Kiro, Kilo Code, Factory Droid, and Amazon Q CLI.
After setup, open your coding agent and work normally. Many agents call GitHits when they need source-backed context. If your agent starts guessing, prompt it directly:
Use GitHits Code Navigation to inspect npm:express. Find how middleware
errors are handled, read the relevant source, and explain the fix before
editing code.What GitHits Adds
GitHits is designed for the point where an agent needs evidence from the broader open-source ecosystem, not just model memory or local repo context:
Excerpt — the full document is on GitHub.
Alternatives to GitHits
- DesearchA · 82AI, X and web search, page extraction, X data, People Search, and Company Search.
- Paparats MCP: Self-Hosted Semantic Code SearchA · 84Self-hosted semantic code search MCP for Claude Code & Cursor. Multi-repo, AST-aware, stays local.
- Obsidian Semantic SearchA · 80Read-only semantic search MCP server for Obsidian vaults using local Ollama embeddings.
- memory-search-mcpB · 71Memory Search MCP Server by MEOK AI Labs
Maintain GitHits? Add a badge to your README
Shows its health grade, and links readers to install steps for every client.
[](https://mcp-skills-hub.vercel.app/mcps/com-githits-githits)Catalog data refreshed . Something wrong? Report it.