Gitctx banner
winfunc winfunc

Gitctx

Git community

Description

gitctx is an MCP server that gives agents and IDE assistants targeted, up-to-date access to GitHub repositories. Open-source alternative to Amp's Librarian.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

gitctx

High-signal GitHub context for AI coding tools via MCP

`gitctx` is an MCP server that gives agents and IDE assistants targeted, up-to-date access to GitHub repositories. Code, Issues, PRs, Commits, Releases, everything. This is an open-source alternative to Amp's [Librarian](https://ampcode.com/news/librarian) and was inspired by the same.

![Screenshot 2026-02-14 at 12 48 59 AM](https://github.com/user-attachments/assets/e2a3ccca-3e9c-43e8-8b03-2f44ce69155b)

Why gitctx

  • Focused GitHub exploration primitives instead of generic web scraping
  • Stateful repository context across tool calls (repo, branch, path)
  • Good defaults for iterative code understanding workflows
  • Works with any MCP client that supports stdio transport

Feature Summary

  • Repository discovery and selection (find_repo)
  • Codebase navigation: tree/list/read/search/switch branch
  • Issue and PR exploration with filters and metadata
  • Commit, blame, and release analysis
  • Repository statistics and dependency graph lookups
  • MCP resource exposing current selected context
  • In-memory API caching to reduce repeated calls

Table of Contents

Installation

From source

git clone https://github.com/winfunc/gitctx.git
cd gitctx
cargo build --release
./target/release/gitctx-mcp

Cargo

cargo install gitctx
gitctx-mcp

Quick Start

  1. Set a GitHub token (recommended