repofit
A local MCP server that turns your coding-agent history into evidence-backed GitHub recommendations and audits unused installed tools.
Read redacted, numbered evidence from local agents: installed tools, memory/instruction files, and optionally session messages/tool calls, with day filters and paged results.
Build and save a user profile from that evidence, dropping references that do not exist.
Save search expansions and retrieve candidate GitHub repositories in configurable pool sizes and parts.
Rank and save recommendations, then show the saved profile or last recommendations.
Check whether a specific GitHub repository fits you and search indexed repositories while excluding tools you already use.
List installed MCP servers and skills that no session ever called.
Provides discovery and fit-checking of GitHub repositories based on the user's coding-agent history, recommending projects that match recurring tasks and interests.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@repofit Recommend GitHub repos that fit my coding history"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Stop scrolling trending. Ask the agent that has watched you work.
Every week another wave of repositories hits ten thousand stars, and every "tools you should try" list is written for everyone at once. Meanwhile your coding agents have been taking notes on you for months: what you build, what keeps breaking, what you complained about at 2 a.m. repofit reads those notes on your own machine, from Claude Code, Codex, Cursor and a dozen more, and turns them into picks you have not heard of and will actually use. Every pick shows you the moment in your own history that earned it.
Try it in one line
uvx repofit unusedNo install, no account, no API key and no model. It reads the session logs your agents already keep and lists
the MCP servers and skills you installed but never called. Each one still costs context on every request.
Without uv, run pipx run repofit unused.
Read 17 sessions from Claude Code, Codex, Gemini CLI. Nothing left this machine.
7 of 9 installed MCP servers and skills were never called:
Claude Code · 12 sessions
MCP server sqlite
skills canvas-design, docx, pptx
Codex · 4 sessions
MCP server puppeteer
skills slack-gif-creator, xlsx
Each one still costs context on every request. Remove the ones you do not need.
Not checked: 1 tool in Gemini CLI. Its logs do not say which server or skill each call went
to, or hold no sessions yet.
Want GitHub projects picked from the same history? Connect `repofit mcp` to your agent:
https://github.com/pth2002/repofitOutput on a sample history.
https://github.com/user-attachments/assets/c7ac0bcf-74ed-4a09-9295-b6d06e6d67c1
Related MCP server: suggest-skills
Install
pipx install repofitThen point the agents you use at repofit mcp. Most of them read the same MCP config:
{ "mcpServers": { "repofit": { "command": "repofit", "args": ["mcp"] } } }That line goes in ~/.cursor/mcp.json for Cursor, ~/.gemini/settings.json for Gemini CLI,
~/.qwen/settings.json for Qwen Code, and the MCP settings of Cline, Windsurf or Claude Desktop. Codex reads
TOML, and Claude Code adds servers from the command line:
# ~/.codex/config.toml
[mcp_servers.repofit]
command = "repofit"
args = ["mcp"]claude mcp add repofit -- repofit mcprepofit runs inside your agent, so your agent's own model does the thinking: no API key, no account, nothing
to host. To skip the install step, use uv and make the command uvx repofit mcp.
Just ask
Open a new session in any agent you connected and talk to it like a colleague who has read your history:
"Use repofit to recommend some GitHub projects for me."
"Does github.com/owner/name fit me?"
"Is there a good tool for turning PDFs into Markdown?"
"Which of my installed skills do I never use?"
The agent shows you the picks in the chat, and the same list stays one command away:
The picks come from a sample history. The text is exactly what the CLI prints.
Every pick has a receipt. No "because you starred X": the seen in line points at the session where the need
showed up and quotes what you said. If repofit cannot point at your history, it does not make the pick.
The list at the bottom matters more than it sounds. Every skill and MCP server you installed and forgot still costs context on every single request, and repofit names the ones none of your sessions ever called.
How it picks
Each agent stores its history differently, and the formats change every few months, so repofit ships one adapter per agent. The profile is written from a redacted, numbered evidence pack, and any claim that cites evidence that does not exist is thrown out by the code, not left to the model's good manners. Retrieval runs one query per task you actually do, with project names and search phrases the model adds, so it finds the library a task depends on even when you never typed its name. The ranker is told to skip the household names you already know. The candidate pool is rebuilt every Monday from the GitHub API: active repositories above 3,000 stars, new ones above 1,000, the agent ecosystem above 300, plus GitHub trending.
Your history stays yours
Everything runs on your machine. repofit reads the files your agents already keep and writes its own to
~/.repofit.You choose the depth: installed tools only, plus memory and instruction files (the default), or plus your own messages and tool calls.
Before any model sees a line, API keys, tokens, passwords, emails, phone numbers and random-looking strings (yes, including the password you once pasted after
ssh) are stripped, and your home folder becomes~.With MCP, the text goes to the model your agent already uses. From the command line it goes only to the provider you name, after you confirm.
Your notes and other people's READMEs can hide instructions. repofit hands everything over as data, and the agent is told never to follow what it finds inside.
Supported agents
Agent | Sessions | Memory and instructions | Installed tools |
Claude Code | yes |
| skills, plugins, MCP servers |
Codex | yes, CLI and desktop |
| skills, plugins, MCP servers |
Cursor | yes | user rules, pending memories | MCP servers, extensions |
Hermes Agent | yes |
| skills, MCP servers |
Gemini CLI, Qwen Code | yes |
| MCP servers, extensions |
Cline, Roo Code, Kilo Code | yes |
| MCP servers |
Continue | yes |
| MCP servers |
VS Code Copilot | yes |
| MCP servers, extensions |
Kimi CLI, Aider | yes | ||
OpenCode | counted |
| MCP servers |
Windsurf, Claude Desktop, WorkBuddy, Trae | no local sessions | memories where present | MCP servers |
Project instruction files (AGENTS.md, CLAUDE.md, .cursorrules and friends) are read too. Run
repofit scan to see what it finds on your machine. If your agent hides its data somewhere else, open an
issue with the path and it gets an adapter.
Install with pipx install repofit, or put uvx in front of each command.
repofit unused # installed MCP servers and skills no session ever called
repofit scan # which agents are installed and what each one stores
repofit profile build --level L2 --provider deepseek
repofit recommend --provider deepseek --lang zhProviders: deepseek, openai, ollama, anthropic, or any OpenAI-compatible endpoint with
--provider compatible --base-url ... --model .... Keys come from DEEPSEEK_API_KEY, OPENAI_API_KEY or
ANTHROPIC_API_KEY, and repofit shows how much text it will send before it sends anything.
No provider at all? Each model step prints a prompt to paste into any chat and imports the answer:
repofit profile prompt --level L2 > prompt.md # then: repofit profile apply answer.json
repofit profile expand --prompt # then: repofit profile expand --apply answer.json
repofit recommend --prompt --lang en # then: repofit recommend --apply answer.json
repofit recommend --no-llm # keyword retrieval only, nothing leaves your machineDevelopment
git clone https://github.com/pth2002/repofit && cd repofit
python -m pip install -e . pytest
python -m pytest
repofit index build # rebuild the candidate pool yourself; needs a GitHub tokenLicense
MIT
Available Tools
10 toolscheck_repoCheck one repositoryARead-only
Judge whether one GitHub repository fits the user: its facts, whether they already use it, and which profile entries it matches. Looks the repo up on GitHub if it is not indexed.
Inputs: repo (required).
find_candidatesFind candidate repositoriesB
Retrieve candidate GitHub repositories for the profile and return them with ranking instructions. Long results come in parts.
Inputs: top, part, pool, language.
get_evidenceRead the user's agent historyA
Collect what the user's local coding agents know (installed tools, memory files and, at level L2, the user's own session messages), redacted and numbered, with instructions for writing a profile. Long results come in parts.
Inputs: days, part, level.
save_expansionSave search expansionC
Save the search terms and project names written for each profile entry.
Inputs: expansion (required).
save_profileSave the profileB
Save the profile JSON written from get_evidence. Refs that do not exist are dropped. Returns the profile and the instructions for the search expansion.
Inputs: synthesis (required).
save_recommendationsSave recommendationsA
Save the ranking JSON written from find_candidates. Picks that name unknown candidates or profile entries are dropped. Returns the recommendations to show the user.
Inputs: answer (required), top.
search_reposSearch repositoriesARead-only
Keyword search over the indexed GitHub repositories, leaving out what the user already uses.
Inputs: query (required), limit, include_used.
show_profileShow the profileARead-only
Show the saved profile.
Inputs: no named parameters.
show_recommendationsShow recommendationsBRead-only
Show the last saved recommendations.
Inputs: no named parameters.
unused_toolsUnused installed toolsARead-only
List installed MCP servers and skills that no session ever called.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
The tools mostly represent distinct pipeline stages: evidence collection, profile saving/showing, candidate finding, recommendation saving/showing, repo checking, and repo searching. The closest overlap is between find_candidates, search_repos, and check_repo, but their descriptions distinguish profile-based retrieval, keyword search, and single-repo judgment.
Most names follow a clear verb_noun snake_case pattern such as save_profile, find_candidates, and show_recommendations. The only notable deviation is unused_tools, which is a noun phrase rather than an action verb.
Ten tools is well within a reasonable scope for a multi-step profile-to-recommendation workflow. Each tool appears to serve a specific step in that flow, with search and check helpers adding useful coverage.
The surface covers the core lifecycle: collecting evidence, saving/showing a profile, expanding searches, finding candidates, saving/showing recommendations, and checking or searching repositories. Minor gaps exist around deleting or resetting saved profiles/recommendations and explicitly viewing saved expansions.
Maintenance
Related MCP Connectors
Search, vet & assemble MCP servers from your agent: verified tools, risk labels, and trust scores.
Hosted MCP server and Agent Skills for specs, engineering threads, and project memory.
An MCP server that gives your AI access to the source code and docs of all public github repos
Capability registry for the agentic economy. Semantic search over verified MCP server listings.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to fetch public GitHub repository lists for any username via HTTP or stdio transports. It provides a specialized tool for repository retrieval and supports both remote web server and local integration modes.2ISC
- AlicenseNot gradedqualityBmaintenanceAn MCP server that generates skill manifests from GitHub skills directories and provides tools to recommend and download AI agent skills.16 npmApache 2.0
- FlicenseAqualityDmaintenanceA lightweight MCP server that enables fetching public GitHub user profiles, repository stats, recent events, and pull request insights through simple tool calls.21-
- AlicenseNot gradedqualityBmaintenanceMCP server that helps coding agents research and prepare GitHub contributions by gathering repository guidance, related work, code context, and validation evidence into a local SQLite corpus, without ever writing to GitHub.79 npm37MIT