GitHits logo

GitHits

Searches indexed open-source code, docs, packages, vulnerabilities, changelogs, dependencies, and examples through MCP.

Install GitHits

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "githits": {
      "command": "npx",
      "args": [
        "-y",
        "githits",
        "mcp",
        "start"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio githits -- npx -y githits mcp start

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 15 tools correctly ().

Overview

GitHits MCP server connects coding agents to indexed public open-source code, documentation, package metadata, vulnerabilities, changelogs, and examples. It runs locally over stdio for most supported tools, while Cursor uses a hosted remote MCP connection. Reach for GitHits when model knowledge or local repository context is insufficient, especially for dependency research, debugging, source inspection, and upgrade review. The CLI can configure supported clients with `npx githits@latest init`.

Use cases

  • Search open-source projects for implementation examples
  • Inspect third-party source while debugging a dependency
  • Review vulnerabilities and dependency graphs before upgrades
  • Compare package versions and read relevant changelogs
  • Research unfamiliar APIs with cited public sources

Key features

  • Indexed code, documentation, and symbol search
  • Exact source and documentation reading
  • Package vulnerability and dependency inspection
  • Changelog and upgrade review analysis
  • Source diffs between package versions or repository refs
  • Cited research over public packages and repositories

Tools15

What GitHits lets your agent do. Expand a tool for its parameters.

Verified live~9.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

34/35 checks healthy over the last 113d

What it can do

From the 15 tools this server returned when we ran it; 15 declare their own safety hints.

Runs commands · 1Makes changes · 2Handles credentials · 1Makes network requests · 14Read-only tools · 12
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age280 days
Maintainers3

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · githits (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars142Stargazers on the source repository.
npm downloads10kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed15Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How GitHits works

What GitHits does

GitHits gives coding agents access to evidence from the public open-source ecosystem. It can search indexed source code, documentation, symbols, package metadata, and examples, then read exact files or documentation sections. The server also supports package health checks, vulnerability lookups, dependency inspection, changelog comparisons, and dependency upgrade reviews.

Targets can refer to packages from registries such as npm, PyPI, Hex, Crates, NuGet, Maven, Packagist, RubyGems, Go, Swift, Pub, vcpkg, and Zig. GitHub repositories can be addressed by URL or by a github: reference. Package and repository coverage varies by operation; advisory data is unavailable for Zig, and dependency graph support differs between registries.

How it works

The CLI starts a local MCP server that an agent launches when needed. Most supported clients use MCP over local stdio. Cursor is configured to use GitHits' hosted remote MCP endpoint instead.

Agents can search broadly across indexed content, narrow searches to a package, inspect repository files without cloning, and resolve fuzzy or ambiguous public package, repository, or documentation names into canonical targets. The research capability answers questions about a public package or repository with cited sources. Research can continue through a returned thread ID, but questions are sent to GitHits and should not contain credentials, personal data, or private code.

Source diffs compare package versions or public repository references. Package-wide diffs can be narrowed with a path glob, but a raw diff alone is not proof that an upgrade is safe.

Setup and configuration

Run the initializer with:

Terminal
npx githits@latest init

The initializer signs the user in, detects supported coding tools, and configures the tools selected during setup. Supported automatic setup includes Claude Code, Cursor, Windsurf, VS Code with Copilot, Cline, Claude Desktop, Codex CLI, Gemini CLI, Zed, and several additional agent tools.

The package is also available through direct CLI commands such as githits search, githits read, githits grep, githits example, and githits pkg. The public API has separate documentation for agent harnesses and software factories.

Tools and capabilities

The MCP tool set includes:

  • quick_start for orientation
  • get_example for source-cited examples from open-source projects
  • list for browsing indexed inventory
  • search, search_status, and grep for code and documentation discovery
  • read for source files and documentation sections
  • pkg_info, pkg_vulns, pkg_deps, pkg_changelog, and pkg_upgrade_review for package analysis
  • code_diff for comparing source between versions or public references
  • resolve_target for identifying canonical package, repository, or documentation targets
  • research for cited answers about a public package or repository

These capabilities support prior-art research, third-party debugging, implementation planning, package health checks, vulnerability review, and evidence-based dependency upgrades.

Limitations and notes

GitHits works with public open-source targets and indexed content. Research requests may take from roughly 30 seconds to several minutes and can encounter rate or daily limits. The daily research limit resets at 00:00 UTC.

Registry features are not uniform. Advisory coverage, dependency graphs, and package metadata depend on the registry and target. GitHits' research and hosted MCP behavior also depends on the relevant released package and deployment. Questions sent for research should exclude secrets, personal information, and private source code.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about GitHits

GitHits is an MCP server that connects coding agents to indexed public open-source packages and repositories. Its main tools search code and documentation, read source files, inspect package vulnerabilities and dependencies, compare changelogs and upgrades, retrieve examples, resolve targets, and return cited research about public software.

Run `npx githits@latest init` to install and configure GitHits. The initializer signs you in, detects supported coding tools, and applies the selected setup. Most clients use a local stdio MCP server, while Cursor uses the hosted remote MCP configuration.

Yes, GitHits supports Cursor through its hosted remote MCP connection. The initializer can detect Cursor and configure it, unlike most supported tools, which use the local stdio MCP server.

GitHits searches indexed public source code, documentation, symbols, package metadata, and examples. You can target packages such as npm or PyPI packages, public GitHub repositories, and other supported registries, then read matching files or documentation sections.

Yes, GitHits can compare package versions, inspect changelogs, calculate dependency information, and run an upgrade review. Source diffs provide factual comparisons, but a raw diff by itself does not establish that an upgrade is safe.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGitHits AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/githits?style=directory)](https://allmcps.com/mcp/githits)
HTML Embed
<a href="https://allmcps.com/mcp/githits"><img src="https://allmcps.com/api/badge/githits?style=directory" alt="GitHits on AllMCPs" /></a>