A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
gitctx is an MCP server that gives agents and IDE assistants targeted, up-to-date access to GitHub repositories. Open-so
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 and was inspired by the same.
find_repo)git clone https://github.com/winfunc/gitctx.git
cd gitctx
cargo build --release
./target/release/gitctx-mcp
cargo install gitctx
gitctx-mcp
export GITHUB_TOKEN=ghp_xxx
gitctx-mcp
gitctx-mcp over stdio.Add gitctx as a local stdio MCP server:
claude mcp add --transport stdio --env GITHUB_TOKEN=${GITHUB_TOKEN} gitctx -- gitctx-mcp
Useful follow-ups:
claude mcp list
/mcp
Notes:
local, project, user) with --scope.Add via CLI:
codex mcp add gitctx --env GITHUB_TOKEN=${GITHUB_TOKEN} -- gitctx-mcp
Check status:
codex mcp --help
Alternative config.toml setup (~/.codex/config.toml or project .codex/config.toml):
[mcp_servers.gitctx]
command = "gitctx-mcp"
env_vars = ["GITHUB_TOKEN", "GH_TOKEN"]
Create either project config .cursor/mcp.json or global config ~/.cursor/mcp.json:
{
"mcpServers": {
"gitctx": {
"type": "stdio",
"command": "gitctx-mcp",
"env": {
"GITHUB_TOKEN": "${env:GITHUB_TOKEN}"
}
}
}
}
Notes:
mcp.json-based config for stdio/remote servers.Add gitctx through Amp CLI:
amp mcp add gitctx -- gitctx-mcp
If you manage MCP servers in Amp config (~/.config/amp/settings.json), use the documented amp.mcpServers shape:
{
"amp.mcpServers": {
"gitctx": {
"command": "gitctx-mcp",
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}
If added in workspace settings, Amp may require explicit approval:
amp mcp approve gitctx
If your client supports MCP over stdio but is not listed above, use this generic shape:
{
"mcpServers": {
"gitctx": {
"type": "stdio",
"command": "gitctx-mcp",
"env": {
"GITHUB_TOKEN": "YOUR_GITHUB_TOKEN"
}
}
}
}
Minimum requirements:
gitctx-mcpGITHUB_TOKEN (or GH_TOKEN)gitctx currently exposes 23 MCP tools.
| Category | Tools |
|---|---|
| Repository context | find_repo, switch_branch, get_tree |
| Code navigation | list_dir, read_file, read_files, search_code |
| Issues | search_issues, get_issue, list_issue_comments |
| Pull requests | search_prs, get_pr, list_pr_comments |
| Commits | list_commits, get_commit, compare_commits, blame_file |
| Releases | list_releases, get_release, compare_releases |
| Insights | get_contributors, get_repo_stats, get_dependency_graph |
find_repo first to select a repository.list_dir, get_tree, and read_file/read_files to establish structure and context.search_code, search_issues, search_prs, list_commits) to answer specific questions.get_pr, get_commit, blame_file, get_release) for deeper inspection.The server exposes one MCP resource:
gitctx://context/current: current repository/session context (selected repo, branch, path, auth status)Token resolution order:
GITHUB_TOKENGH_TOKEN~/.config/gitctx/token.jsonRecommended token scopes for full functionality:
reporead:orgread:userWithout a token, public repositories still work, but rate limits are lower.
gitctx is designed for coding agents. You describe the task in natural language, and the agent decides which MCP tools to call.
bug that mention rate limiting."v1.8.0 and v1.9.0 that could affect login?"src/auth."main and release/1.2 for API-breaking differences."jsonwebtoken is used and how tokens are validated."owner/repo).These are intentionally broad prompts where the coding agent should orchestrate many MCP tools behind the scenes and return one integrated answer.
owner/repo, produce a release-readiness brief for authentication: analyze current auth code paths, open auth-related issues, merged PRs since the last release, commit churn in auth files, and release notes deltas. Return top risks, confidence level, and exact file/PR/issue references."owner/repo, investigate whether a recent login regression was introduced between v1.9.0 and main: compare releases, inspect auth commits, review relevant PR discussions, correlate with open bug reports, and identify the most likely root-cause commits with rationale."owner/repo: find sensitive auth/session/token code, check recent security-related commits and PR comments, summarize unresolved high-priority issues, and map dependency risk from the graph. End with a prioritized remediation list."owner/repo: code-level diffs, key PRs, linked issues, notable releases, and maintainers touching critical files. Provide a migration-impact score and supporting evidence."gitctx-mcp.gitctx-mcp
find_repo first, then run other tools.export GITHUB_TOKEN=ghp_xxx
repo, read:org, read:user.repo.search_code returns unexpected resultssearch_code expects literal code patterns, not natural-language queries.RUST_LOG=gitctx_mcp=debug,rmcp=warn gitctx-mcp
gitctx-mcp command is not foundexport PATH=\"$HOME/.cargo/bin:$PATH\"
cargo check
cargo clippy
cargo test --lib --bins
Run server locally:
RUST_LOG=gitctx_mcp=debug,rmcp=warn gitctx-mcp
gitctx/
├── src/
│ ├── mcp/ # MCP server, tool router, resources
│ ├── github/ # GitHub API integrations
│ ├── auth/ # Token loading and validation
│ ├── cache.rs # In-memory API cache
│ ├── context.rs # Shared exploration context
│ ├── xml_format.rs # Structured tool output formatting
│ └── mcp_main.rs # MCP binary entrypoint
├── Cargo.toml
└── README.md
gitctx is modeled after the workflow category popularized by Amp Code’s Librarian: a specialized agent capability for searching and understanding GitHub codebases quickly, including across repositories and dependencies.
Reference:
MIT License. See LICENSE.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba