# repofit

repofit — an MCP server for Claude Code and other environments that analyzes agent history to recommend GitHub repositories. Suggests tools based on past tasks and recurring code patterns.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7 repo stars
- Author: pth2002
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pth2002/repofit
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/repofit

## What it does

Analyzes local session logs and interaction history from coding agents. Identifies GitHub projects and libraries relevant to current tasks, citing the exact chat moments where they would have been useful. It performs all calculations locally, requiring no external API keys or cloud accounts.

Tracks "dead weight" in the context window by flagging installed skills and MCP servers that were never called but still consume tokens on every request. Supports `Claude Code`, `Codex`, `Cursor`, and other platforms utilizing the MCP protocol. Requires `Python 3.11+` to function.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add repofit -- uvx repofit
```
uvx runs the command named after the package; if the README names another one, use uvx --from repofit <command>

### Codex

**Platform CLI**
```bash
codex mcp add repofit -- uvx repofit
```
uvx runs the command named after the package; if the README names another one, use uvx --from repofit <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "repofit": {
            "command": "uvx",
            "args": [
                "repofit"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from repofit <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "repofit": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "repofit"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from repofit <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add repofit uvx repofit
```
uvx runs the command named after the package; if the README names another one, use uvx --from repofit <command>

## When to use it
- recommend repositories matching my stack
- prune unused MCP servers from context
- find a tool for a specific task
- identify idle skills in agent settings

## Example prompts
- Use repofit to recommend some GitHub projects for me.
- Which of my installed skills do I never use?

## Similar
- [oh-my-issues](https://affpapa.org/en/nevibecode/skills/oh-my-issues.md) — skill · 4500 installs
- [project-session-manager](https://affpapa.org/en/nevibecode/skills/project-session-manager.md) — skill · 937 installs
- [dex](https://affpapa.org/en/nevibecode/skills/dex.md) — skill · 881 installs
- [to-issues](https://affpapa.org/en/nevibecode/skills/to-issues.md) — skill · 469 installs
- [write-issue](https://affpapa.org/en/nevibecode/skills/write-issue.md) — skill · 410 installs
- [ingest](https://affpapa.org/en/nevibecode/skills/ingest.md) — skill · 134 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
