skill-router
OfficialThis 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.
skill-router
A lazy router for Claude Code skills: instead of every installed skill costing context every turn, expose the whole library through three small MCP tools — search, load, reindex. Weak/cheap models navigate it fine; that's the point.
Single-file Node MCP server (stdio). One dependency (@modelcontextprotocol/sdk).
No database, no embeddings, no background services. Indexing ~185 skills takes
~25ms at startup.
How it works
On startup (and on skill_reindex) the server walks three roots for SKILL.md
files:
Root | Label | Notes |
|
| symlinks followed (with cycle guard) |
|
|
|
|
| see below |
Frontmatter name:/description: are parsed (including YAML block scalars
like description: >-); duplicates dedupe with precedence
active > plugin > vault.
Tools
skill_search{query, limit?}— ranked{id, name, description, source, path, score}. Token-overlap scoring with query-side stopword filtering (so "make my website load faster" still findsweb-perf), whole-query substring boost, and partial name-fragment credit ("website" matches the nameweb-perf).skill_load{id}— fullSKILL.mdcontent plus sibling files (references/,scripts/, …). Accepts ids or names case-insensitively; unknown ids return the 5 closest matches instead of an error.skill_reindex— rescan, returns counts per source.
The vault
The real context win: move rarely-used skills from ~/.claude/skills/ into
~/.claude/skill-vault/. The harness stops listing them every turn, but they
stay fully discoverable and loadable through the router.
Related MCP server: skill-router-mcp
Install
npm install
node /absolute/path/to/install.mjs
claude mcp add --scope user skill-router node /absolute/path/to/server.mjsinstall.mjs links ~/.claude/skill-router to this repo because the OMP native skill-router extension imports lib.mjs from ~/.claude/skill-router.
Test
node test.mjsSelf-contained: builds a fixture skill tree in a temp HOME (including a
symlinked skill, a block-scalar description, an excluded plugin-cache entry,
and a shadowed vault duplicate) and asserts against it over real stdio JSON-RPC.
Security note
The indexer follows symlinks out of the skill roots and will index any
SKILL.md they reach — so don't point skill roots at (or install skill
bundles containing symlinks to) untrusted or sensitive locations. Loaded
skill content is returned as data, never executed.
Credits
The scoring approach is ported from the Hermes lazy-router plugin in agency-agents (MIT, AgentLand Contributors) — the pattern of exposing a large roster as a few search tools instead of preloading everything.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Coding agents search and load install-ranked Claude Code skills from Skillselion.
Search and load agent skills on demand from a shared skill store.
Agent skills for Claude, Codex and Cursor: find, install and load skills from one connector.
Search, browse & read 340+ Claude Code marketing & SEO skills from any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides intelligent discovery, search, and on-demand loading of Claude Code skills and agents, reducing token usage by lazy loading.-
- AlicenseAqualityDmaintenanceRoutes SKILL.md libraries to any MCP client, enabling task matching and skill loading with embedding-based scoring, keyword fallback, and context-window discipline.525 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables on-demand discovery and loading of skills and MCP tools through a fixed set of routing tools, minimizing token overhead.5MIT
- 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