FastSkillRetrieval
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
FastSkillRetrieval
Local, versioned capability retrieval for coding agents. Index skills, subagents and workflows once, then find the few that matter for a request in milliseconds. No LLM calls, no network, no API keys.
Why
Agent setups accumulate hundreds of skills. Loading all their descriptions into every session wastes context; guessing which one applies wastes turns. FastSkillRetrieval keeps the catalog outside the prompt and returns a bounded shortlist on demand.
Deterministic. SQLite FTS5 with BM25 and fixed field weights. The same query on the same catalog returns the same result.
Versioned and verifiable. Every published capability is an immutable, hashed snapshot. A tampered package returns
stale_referenceinstead of loading.Budgeted. Cards, load groups and per-session output have hard byte limits, so retrieval cannot flood the context.
Read-only on your sources. Original skill folders are never modified, and the framework never executes scripts or models.
Two front ends. A CLI and a
stdioMCP server expose the same operations.
Related MCP server: mcp-server-bm25-code-search
How it works
source root registry (state dir) client
skills/<name>/ --> discover -> submit -> publish --> search / load / resource
SKILL.md validated metadata, snapshots, CLI or MCP over stdio
FTS5 index, session budgetsdiscoverscans an authorized source root (one skill per subfolder, each withSKILL.md).submitattaches reviewed metadata: description, aliases, capabilities, use-when conditions, exclusions, technologies.publishbuilds complete snapshots, then activates the catalog in one SQLite transaction.searchreturns at most five capability cards ranked by BM25;loadandresourceemit the full instructions only for what was selected.
Quick start
Requires Python 3.13 and uv.
uv sync --frozen --extra dev
uv run python -m fastskillretrieval --helpTry it on the bundled example skills:
uv run python -m fastskillretrieval --source-root examples/skills --state .fsr \
--session demo inventory --refreshThe step-by-step walkthrough (inspect, submit, publish, search, load) is in the full guide, currently written in Italian.
Use it with your coding agent (Claude Code, Codex)
FastSkillRetrieval can index every skill, subagent and slash command you have installed and
suggest the relevant ones before your request reaches the model, through a read-only
UserPromptSubmit hook.
fastskillretrieval install --agent claude # or: --agent codex
fastskillretrieval init-index --agent claude # or run /fsr-init-index inside the agentinstallmerges a hook entry into~/.claude/settings.json(Codex:~/.codex/hooks.json) and adds the/fsr-init-indexcommand. It is idempotent, keeps a one-time.fsr-backupand never touches entries it did not create.uninstallremoves only its own. Codex requires you to trust the new hook once from its/hooksscreen.init-indexdiscovers user, project and plugin skills, agents and commands (disabled plugins are skipped), stages copies under~/.fsr/sources/<agent>/and publishes the registry to~/.fsr/index/<agent>/. No model is called. Add--if-staleto rebuild only when the installed set changed. A full rebuild of about 570 items takes roughly three minutes.The hook opens the registry read-only (about 1 to 4 ms) and adds the best matches as context.
FSR_MODE=inject(default),suggest(log only to~/.fsr/suggestions.jsonl) oroff.FSR_HOMEmoves the whole~/.fsrfolder.
Used by Caronte, which installs it automatically.
MCP server
uv run python -m fastskillretrieval serveA configuration template is in examples/mcp-config.template.json.
The source root is fixed at startup and is never accepted from a tool call.
Search behavior
BM25 field weights: description 5, capabilities 4, use-when 4, aliases 3, technologies 2.
Queries are turned into quoted literal terms, never interpreted as FTS syntax.
C,C++andC#stay distinct.Exclusions are not indexed as positive signals. Negations in natural language are not understood: use explicit filters (
--technology,--exclude-id,--explicit-id).Popularity and validation scores never influence ranking.
Descriptions are matched literally, so queries should use the language of the indexed descriptions. Translate or enrich queries upstream when your catalog is in another language.
Querying the index from other runtimes
The registry is a plain SQLite file. A read-only consumer can open registry.sqlite3
directly and run an FTS5 query, which avoids starting Python for every lookup. For example,
node:sqlite answers a query in about 1 to 4 ms on a catalog of roughly 480 entries.
Windows notes
Snapshots are stored under packages/<24 hex>/<64 hex>/<file>. With the default 260-character
MAX_PATH a long state directory can break publication, so the registry now fails early
with policy_denied / state_path_too_long. Use a short state path such as C:/fsr.
Development
uv sync --frozen --extra dev
uv run python -m pytest -q
uv run ruff check src testsCurrent status: 335 passed, 1 skipped (the skipped test is platform-specific).
Project layout
Path | Contents |
| registry, catalog, ingestion, planner, CLI, MCP server |
| acceptance and regression tests |
| JSON schemas for contracts |
| sample skills, candidate metadata, MCP config template |
| benchmarks and verification scripts |
| design notes, evaluations and the Italian guide |
| implementation plans |
Scope and limits
This is version 0.3. Byte counts used for budgets are a conservative estimate, not a
tokenizer count. The host verification matrix does not certify generalized preloading or
permission enforcement, and automatic planner dispatch is deliberately absent. See
doc/Capability_Host_Verification.md.
License
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
Search and fetch curated AI agent skills, prompts and MCP servers.
Search and fetch AI agent skills, rules files and MCP servers indexed from GitHub.
Search and load AI agent skills. Free metadata; full content requires a Pro or Studio account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables coding agents to search, recommend, and validate a stack of reusable skills from a local catalog, producing deterministic plans without modifying the project.1MIT
- AlicenseAqualityBmaintenanceEnables fast, low-token code search for AI coding agents via a local BM25 engine built on SQLite FTS5, with support for camelCase, snake_case, and Japanese text. Provides a stateless MCP stdio server and a Hermes adapter for multi-agent environments.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to discover, search, and load agent skills from many sources, including other agents' skill directories, Claude Code plugin marketplaces, and remote git repositories, with no copying or syncing required.806 npm7MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to store and retrieve source-backed context locally in SQLite, with FTS5 search, optional reranking, and stdio MCP tools.1MIT