Serves a directory of Agent Skills over MCP: list, load, read files, run declared scripts
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server that serves a directory of Agent Skills. Point it at skills; it lists them, hands out their instructions and their bundled files, and runs only the scripts a skill declares.
It is a generic adapter, not a curated set: the skills are content it reads, and the same build serves whatever it is pointed at.
The npm package is @chrischall/skill-mcp (unscoped skill-mcp is taken by
someone else on npm). Everything else β the repo, the binary, the registry
identity io.github.chrischall/skill-mcp β is unscoped.
A directory holding SKILL.md: YAML frontmatter (name, description, and
optionally the mcp-host: block below) followed by instructions, plus whatever
files those instructions refer to. Three layouts are found under each root:
A skill is served under its DIRECTORY name, never under the name in its
own frontmatter (a frontmatter name that disagrees is reported and otherwise
ignored; where the root itself is the skill, the root directory names it). That
is a security rule, not a tidiness one: the owner's grant names a skill, so a
bundle that could choose its own name could claim its neighbour's and be handed
the neighbour's granted script and granted variables. For the same reason, two
directories that really do contribute one name β only possible across two roots
β have both refused and reported, rather than one of them winning by scan
order.
| tool | arguments | returns |
|---|---|---|
skill_list | β | every skill found: name, description, when to use it, file count, whether it declares runnable scripts and exactly which; plus problems, so an empty list is never a mystery |
skill_load | name | the SKILL.md body verbatim, plus a manifest of the bundle's files. Referenced files are not inlined β that is what skill_file is for |
skill_file | name, path | one file from that skill's directory: text, or base64 with its media type. At most 1 MiB, truncated: true rather than a silent cut |
skill_run | name, script, args[], confirm | {exitCode, stdout, stderr, truncated, durationMs} |
skill_file takes one path. The design of record specifies a paths[]
batch (8 paths per call, 1 MiB per entry, 4 MiB per call, one bad path failing
only its own slot); shipping the singular form is a deliberate deferral, not an
oversight, and those three bounds are what a later batching change has to
honour. Read the caps as bounds on this server's own heap: they cap the
allocation, not only the answer, because a hosted child has a hard 256 MiB
data limit and a bundle may be larger than that.
Each skill is also registered as an MCP prompt (its body is the message) and
each bundled file as a resource (skill://<name>/<path>), because a client that
supports those surfaces presents a skill better than a tool call does. It is a
second door, never the only one: when this server runs on
mcp-host and a registration narrows
enabledTools, prompts/list and resources/list come back empty and the
handshake stops advertising those capabilities β so the tools carry the whole
experience.
Anything that keeps a directory from being served comes back in skill_list's
problems, with the path and the reason: no SKILL.md, frontmatter that will
not parse, a name two directories both claim (both refused), a declared script that is not in
the bundle, a symlink leading out of the root or out of a skill, a filename the
read tools could not address. One bad skill costs itself and never the listing,
and there is no third outcome where something is dropped in silence β a
symlinked skill directory is served when it stays inside the root (so
skills/foo -> ../shared/foo works) and reported when it does not.
skill_run executes third-party code. Every rule below narrows which code
runs and what it is handed; each has its own test.
scripts/", not
"anything executable". An undeclared path is refused, saying it must be
declared and listing the ones that are./, no . or .., no backslash, no
percent escape, no NUL) and then again after resolution: the real path,
with symlinks followed, must still be inside the skill's real directory, and
it must be a regular file. Both checks, because a string check alone misses a
symlink planted inside the bundle and a resolved check alone accepts shapes
that should never have been joined. The same discipline governs skill_file:
a read out of a skill directory is another skill's bundle at best.spawn with shell: false, no
interpolation, no sh -c. Arguments are passed through verbatim.node and nothing else (see What v1 cannot run).truncated: true rather than a silent cut, and one skill_run at a time. On
timeout the process group is signalled, which reaches the script and any
child that stayed in its group. It does not reach a grandchild that
detached into a group of its own, and such a grandchild also holds the stdio
pipes open β so the run settles on the process exiting plus a short drain,
under a hard deadline, rather than on the pipes closing. That is what
guarantees the tool call returns within its budget and frees the
one-at-a-time lock; it is not a guarantee that a deliberately detached
grandchild is dead. Bounding that is the tier's job (an unprivileged uid,
prlimit NPROC, and a machine that stops), not this adapter's.PATH, HOME, LANG, TZ, TMPDIR,
MCP_DATA_DIR when the host set one, and exactly the variables that script
asked for and the owner granted β never this server's own environment. The
fixed half mirrors mcp-host's INSTALL_ALLOWLIST
(packages/runner-node/src/spawn-env.ts), for the reason that file gives: a
host constant a hosted declaration cannot widen by one name.skill_run is confirm-gated. Without confirm: true it starts no process
and returns a dry-run preview of exactly what would run: the interpreter, the
argv, the working directory, the timeout, and the names of the variables
the script would be handed.The fleet convention gates mutating tools. Whether a given script mutates anything is something this server cannot know: it never reads a script, and it deliberately does not analyse one β a machine-generated verdict about somebody else's code gets trusted in a way an author's declaration does not. Unknown effects are therefore treated as mutating.
The obvious softening β let a skill mark a script read-only and skip the gate for it β is refused because it is circular: the same author wrote the script and the sentence describing it, so a self-declared "read-only" authorizes nothing. That leaves a blanket gate. Its cost is one extra round-trip on a read-only helper; its benefit is that the preview is the one place a caller sees the exact call before any of it happens.
A declared script is still arbitrary code. These rules narrow which code
runs and with what; none of them makes the code safe. A script you allow can
read the whole skills tree, spend the machine's CPU, and send whatever it holds
anywhere its network permits. skill_run's output caps are truncation, not
confidentiality: nothing redacts a script's stdout, and nothing could.
This is not a sandbox. Run it against skills you have read, or run it
somewhere that fences it β under mcp-host that means the isolated tier
(fly-machine): a microVM per registration, an unprivileged uid, prlimit
bounds, and nftables default-deny with a declared egress allowlist. This server
is a narrowing on top of such a fence, not a replacement for one.
The set of interpreters is node, one entry, and that is a measured decision
rather than an oversight: mcp-host's runner image is Node + git + tar +
util-linux + nftables, with no python3, curl or jq, while real skills are
overwhelmingly Python (70 .py against 1 .js in anthropics/skills at
3b3fad96).
So a skill declaring a Python script is reported by skill_list under
unavailableScripts, with the interpreter and this deployment's set named, and
skill_run refuses it in the same words. Its instructions still serve β
an instructions-only skill is a useful skill, and most published skills are
exactly that. A pinned interpreter is a follow-up that arrives as a dependency,
never as an image change.
mcp-host: declaration blockOptional, inside SKILL.md's frontmatter:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/skill-mcp)<a href="https://allmcps.com/mcp/skill-mcp"><img src="https://allmcps.com/api/badge/skill-mcp?style=directory" alt="Skill MCP on AllMCPs" /></a>