skill-mcp
This is a local MCP server that catalogs, suggests, and binds a small set of SKILL.md files (max 3) to keep agent context lean, with optional host-rule injection and safe maintenance tools.
list_skills – Catalog local SKILL.md files, including shadowed duplicates with explanations.
suggest_skills – Lexically rank skills for a prompt (hard cap 3, optional token budget, CJK-aware).
bind_skills – Persist a lean binding (session/project/global) of up to 3 skills; can clear.
get_binding – Return the resolved binding and host contract.
why – Explain the reasoning behind the current binding.
estimate_tokens – Estimate token usage per skill (body or description).
read_skill – Explicitly read a full SKILL.md body (opt-in).
rescan_skills – Rescan skill roots without restarting the server.
write_host_contract – Inject Claude CLAUDE.md and Cursor .cursor/rules listing only bound skills.
doctor – Dry-run diagnostics: roots, counts, shadowing, binding path.
archive_idle – Dry-run or apply archiving of idle/shadowed user skills (recoverable, never silent-delete).
native_skills_bypass – Optionally write or restore Claude skillOverrides to hide descriptions from host listing.
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., "@skill-mcp suggest skills for debugging a Node.js app"
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.
skill-mcp
Local stdio MCP server that helps an agent pick which local SKILL.md files to use — and keeps the context small.
Replacement for the deleted skillbind CLI: MCP-only, no host adapters, no marketplace.
30-second demo
Drop more than three
SKILL.mdfiles into~/.claude/skills(or another configured root).Call
suggest_skillswith a prompt. You get at most 3names[]ready for bind. If nothing matches:This directory has no matching skill for that prompt.Call
bind_skillswith those names (hard max 3).Call
write_host_contract. ClaudeCLAUDE.mdand Cursor.cursor/rulesnow list only the bound skills and forbid the rest.
{ "prompt": "fix login redirect" }{ "names": ["auth-login", "auth-oauth", "auth-token"] }Related MCP server: skillmds
Release v0.2.0
Notes: GitHub Release v0.2.0. This README is part of that release.
Why the cap is hard
Max 3 bound skills. A larger token budget never raises that cap.
Default budget is 4000 tokens (CJK-aware: Han, Hiragana, Katakana, Hangul). Budget can only drop more candidates.
Lean by default:
name/description/path. FullSKILL.mdbody is opt-in viaread_skill.Default roots:
~/.claude/skills,~/.agents/skills,~/.codex/skills,~/.config/opencode/skills.
Install (Mac / local attach)
Requires Node 20+. The one-shot script builds the server and writes absolute-path MCP snippets, then merges them into Claude Desktop and Cursor configs when those files can be created:
git clone https://github.com/tsumon/skill-mcp.git
cd skill-mcp
./scripts/install.sh./scripts/install.sh runs npm install, npm run build, then node dist/install-cli.js. It writes:
docs/output/claude-desktop.mcp.jsondocs/output/cursor.mcp.json
Those files use an absolute args path to dist/index.js on this machine. Restart Claude Desktop / Cursor.
Mac Claude Desktop file: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Cursor: ~/.cursor/mcp.json
Do not paste a relative ./dist/index.js. Use the generated file, or replace the args entry with the absolute path printed by the installer.
Optional env vars:
SKILL_MCP_ROOTS— comma-separated user roots (overrides defaults)SKILL_MCP_PROJECT_ROOTS/SKILL_MCP_PLUGIN_ROOTS— extra roots with project / plugin shadowing tiersSKILL_MCP_STATE_DIR— global binding directory (default~/.config/skill-mcp)SKILL_MCP_PROJECT_DIR— project bind root (default cwd)SKILL_MCP_SESSION_ID— in-memory session bind keySKILL_MCP_EMBEDDINGS—auto(default) /on/off. Ollama is a soft dependency.
Optional single-file binary (bun compile):
./scripts/pack.sh
# dist-pack/skill-mcp — point host args at this absolute pathFallback if bun is missing: npm run build && node dist/index.js. Details in docs/PACKAGING.md.
Host contract (takes effect)
get_binding still returns a contract string, and skill-mcp://binding/contract is the same text. v0.2.0 also writes host files in one shot so Claude Code and Cursor actually load it:
node dist/index.js write-contract
# or MCP tool write_host_contractWrites:
<stateDir>/HOST-CONTRACT.md(canonical)<project>/CLAUDE.md(managedskill-mcp-contractblock)<project>/.cursor/rules/skill-mcp-contract.mdc(alwaysApply: true)
The generated files list only the currently bound skills and say not to load any other SKILL.md. Empty binding: do not load any skill until the user binds.
Empty suggest
When no skill matches the prompt, suggest_skills sets none: true and:
empty_message:This directory has no matching skill for that prompt.empty_message_zh:该目录下没有匹配该提示的技能。
It does not invent names to bind.
G — Auto-uninstall (dry-run / --apply)
Targets idle user-tier skills (not in the current binding) and shadowed user-tier copies.
Mode | What happens |
Default / MCP without | Dry-run. Reports candidates. Does not move or delete. |
| Moves each candidate into |
node dist/index.js archive-idle
node dist/index.js archive-idle --applyMCP: archive_idle with no args is dry-run; { "apply": true } archives.
Never silent-deletes. Bound skills stay. Project-tier skills stay. Recover by copying back from archive/.
H — Native skills bypass (toggle / restore / risk)
Claude Code otherwise stuffs every local skill description into the listing. Optional bypass writes skillOverrides: { "<name>": "name-only" } into ~/.claude/settings.json so the host listing keeps names but drops descriptions. skill-mcp then suggest/bind/read progressively.
Command | Effect |
| Backup current settings, write name-only overrides |
| Restore the backup in one step |
node dist/index.js native-skills enable
node dist/index.js native-skills restoreRisk: this is a routing fight with Claude Code native skills. Name-only hides descriptions from the model listing; it does not delete SKILL.md files. Plugin skills are not covered by skillOverrides. If routing feels wrong, restore immediately. skill-mcp never changes this setting unless you call enable.
Core tools
list_skills
Catalog SKILL.md files from configured roots. Duplicate names are shadowed (project beats user beats plugin). Shadowed rows include a plain-language shadow_message.
suggest_skills
Lexically rank skills for a prompt (optional Ollama embeddings). Returns at most 3. names is ready for bind_skills.
bind_skills
Persist a lean binding. More than 3 names is an error. Optional scope: session / project / global (default). Priority: session > project > global.
Other tools
Tool | Purpose |
| Resolved lean binding + |
| Inject Claude + Cursor rule files |
| Why those skills are bound |
| Reload roots without restarting |
| Per skill ( |
| Explicit full |
| Dry-run: roots, counts, binding path |
| Dry-run idle/shadowed user skills; |
|
|
Eval and CI
Offline goldens (ZH / JA / KO plus multi-skill conflicts):
npm test
npx tsc --noEmit
npm run eval.github/workflows/ci.yml runs those on pull requests and main.
Invariants
Max 3 bound skills; budget never raises the cap
Not a marketplace; no ranker retrain
Lean list / suggest / bind — no full bodies by default
Local stdio MCP only
G never silent-deletes; default dry-run
H is optional and one-step reversible
License
MIT
中文说明见 README.zh-CN.md.
Available Tools
12 toolsarchive_idleA
List idle and shadowed user-tier skills. Default dry-run reports what would move. Pass apply:true to archive into a recoverable path. Never silent-deletes.
Inputs: apply.
bind_skillsC
Persist lean binding (name/description/path only). Max 3. Pass clear:true or none to clear. Optional scope: session (in-memory), project (.skill-mcp/binding.json), or global (~/.config/skill-mcp/binding.json). Default global. Priority: session > project > global.
Inputs: none, clear, names, scope, +1 more.
doctorA
Dry-run only: check skill roots exist, counts, shadowed, and binding path. Never mutates.
Inputs: no named parameters.
estimate_tokensB
Estimate tokens for one/many/all skills (mode: body|description).
Inputs: mode, name, names.
get_bindingA
Return current lean skill binding. Default is the resolved binding (session > project > global). Pass scope to inspect one layer. Includes the host contract (only these N skills).
Inputs: scope.
list_skillsA
Catalog local SKILL.md skills from configured roots; include shadowed duplicates with why.
Inputs: no named parameters.
native_skills_bypassA
Optional: write Claude skillOverrides name-only so the host listing does not dump every skill description. enabled:true writes; enabled:false restores the previous settings in one step. Risk: routing fight with Claude Code native skills.
Inputs: enabled (required).
read_skillB
Read full SKILL.md body by explicit skill name (opt-in; other tools stay lean).
Inputs: name (required).
rescan_skillsA
Rescan skill roots into the in-memory catalog without restarting the MCP process. list_skills and suggest_skills then reflect new/changed/removed skills.
Inputs: no named parameters.
suggest_skillsA
Lexically rank skills for a prompt. Hard cap 3; default token budget 4000 (CJK-aware). Returns reasons and dropped (cap/budget).
Inputs: prompt (required), budget.
whyA
Explain why the current skills are bound.
Inputs: no named parameters.
write_host_contractA
Write the current binding contract into Claude CLAUDE.md and Cursor .cursor/rules in one shot. The files list only bound skills and forbid others.
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 12 tools
Most tools address distinct actions: binding, listing, suggesting, rescanning, archiving, reading, and estimating. A few diagnostic/inspection tools (doctor, list_skills, get_binding, why) have some overlapping concerns, but their descriptions make each purpose clear enough.
Most tools follow an imperative verb_noun pattern like bind_skills, list_skills, rescan_skills, and estimate_tokens. A few names deviate (doctor, why, native_skills_bypass), but the pattern is still predictable overall.
Twelve tools is a well-scoped set for a skill-management server. Each tool covers a distinct part of the workflow: cataloging, binding, suggesting, diagnosing, archiving, reading, and host integration, without obvious bloat.
The tool surface covers core lifecycle needs: listing, reading, binding, suggesting, rescanning, archiving, and host contract writing. Restoring archived skills or configuring skill roots is not directly exposed, but those feel like external/recoverable edge cases rather than critical gaps.
Maintenance
Related MCP Connectors
Governed AI agent skills — one library, distributed to devs and exposed to remote agents over MCP.
Hosted MCP server and Agent Skills for specs, engineering threads, and project memory.
Search and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server.
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search, browse, install, and manage a large library of skills via only 7 MCP tools, with skills stored locally and loaded on demand to minimize context overhead.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable agents to search, inspect, lint, and safely install Agent Skills from the skillmd registry mid-conversation.20 npm144MIT
- 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.762 npm7MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to search a local catalog, load skills, inspect MCP tool schemas, and invoke selected tools through a single unified MCP tool, reducing per-request overhead.1MIT