# GitHits

> GitHits is an MCP server for developer tools. Version-aware search over open-source code, docs and package data for coding agents. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Platforms:** CLI, API
- **Website:** https://githits.com
- **Repository:** https://github.com/githits-com/githits-cli
- **MCP Registry name:** com.githits/githits
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-14

## About

GitHits indexes public packages, repositories and documentation sites so an agent can cite real source rather than memory. Targets are written like npm:express or pypi:fastapi@0.141.1, and results come with file, line range, enclosing symbol and a snippet.

The tool set covers code examples, listing and reading files, keyword and exact-text search, and package inspection: info, vulnerabilities, dependencies, changelogs and upgrade review. The same capabilities are available through a CLI, and npx githits@latest init authorises in the browser and configures detected coding tools.

A remote endpoint at mcp.githits.com and an npm stdio package are both listed. Pricing is not published in what the site shows.

## Features

- **Target resolution:** Maps names to canonical packages.
- **Code search:** Finds symbols with line ranges.
- **Exact grep:** Paginated text and regex matches.
- **Source reading:** Reads files or doc sections.
- **Package health:** License, advisories, downloads.
- **Upgrade review:** Compares versions and changelogs.

## Good for

- Check how a dependency behaves before changing code
- Trace a stack trace into third-party code
- Review an upgrade
- Find usage examples of an API

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http githits https://mcp.githits.com
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.githits.com
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "githits": {
      "url": "https://mcp.githits.com"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "githits": {
      "type": "http",
      "url": "https://mcp.githits.com"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "githits": {
      "serverUrl": "https://mcp.githits.com"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.githits.com
```

Enter a Name (for example "GitHits"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for OAuth sign-in. If its docs give you an OAuth client ID and secret, enter them in the form's OAuth Client ID and Client Secret fields.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "githits": {
      "type": "http",
      "url": "https://mcp.githits.com"
    }
  }
}
```

## Tools

- `quick_start`
- `get_example`
- `search_status`
- `pkg_info`
- `pkg_vulns`
- `pkg_deps`
- `pkg_changelog`
- `pkg_upgrade_review`

## FAQ

### How do I set GitHits up?

Run npx githits@latest init.

### What can GitHits inspect?

Code, docs, vulnerabilities, dependencies and changelogs.

### Is there a CLI?

Yes, with matching commands.

### How do I add GitHits to Claude Code?

Run this command in your terminal: claude mcp add --transport http githits https://mcp.githits.com

### What are the best alternatives to GitHits?

The closest alternatives to GitHits are Git Tools, Git.Top, Git For Me, ivygrep and Github Tools.

## Where this comes from

- Description: written from the project's README and the project's website.
- Status: checked automatically by AIPoweredBot on 19 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Git Tools](https://ai-powered.com/mcp/git-tools): Git Tools is an open-source MCP server for developer tools.
- [Git.Top](https://ai-powered.com/mcp/git-top): Git.Top is a free MCP server for developer tools.
- [Git For Me](https://ai-powered.com/mcp/git-for-me): Git For Me is an open-source MCP server for developer tools.
- [ivygrep](https://ai-powered.com/mcp/ivygrep): ivygrep is a free MCP server for developer tools.
- [Github Tools](https://ai-powered.com/mcp/github-tools): Github Tools is an open-source MCP server for developer tools.
- [Iris Code](https://ai-powered.com/mcp/iris-code): Iris Code is a freemium MCP server for developer tools.
- [Git Why](https://ai-powered.com/mcp/git-why): Git Why is an open-source MCP server for developer tools.
- [rag-rat](https://ai-powered.com/mcp/rag-rat): rag-rat is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/githits
