repofit — Claude Code MCP server: what it does, how to install
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.
MIT ★ 7 updated 2026-11-16
claude mcp add repofit -- uvx repofitWhat repofit 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.
What it helps with
- 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 for the agent
- Use repofit to recommend some GitHub projects for me.
- Which of my installed skills do I never use?
How to install repofit
Platform CLI
claude mcp add repofit -- uvx repofituvx runs the command named after the package; if the README names another one, use uvx --from repofit <command>
Platform CLI
codex mcp add repofit -- uvx repofituvx runs the command named after the package; if the README names another one, use uvx --from repofit <command>
Config file
{
"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>
Config file
{
"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>
Platform CLI
gemini mcp add repofit uvx repofituvx runs the command named after the package; if the README names another one, use uvx --from repofit <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about repofit
How to install repofit in Claude Code?
Run the command claude mcp add repofit -- uvx repofit.
What does repofit do?
It scans your past agent sessions to identify recurring tasks and suggests relevant libraries or tools, while also flagging unused extensions.
What is required to use repofit?
You need Python 3.11+ and existing session history within your coding agents.