AI agents · OpenClaw · self-hosting · automation

Quick Answer

How to Add Skills to an MCP Server (2026 Guide)

Published:

The short answer

Put each skill in a folder with a SKILL.md, serve the folders with an SDK that implements the Skills extension, and connect the server to a client that supports it. Anthropic made Skills over MCP a public beta in Claude and Claude Code on November 24, 2026; this guide uses FastMCP because its skills API is documented end to end. For what the extension is and who supports it, read what Skills over MCP is. If you have never built an MCP server, start with how to build an MCP server.

Step 1: Write the skill

A skill follows the Agent Skills specification: a directory whose name matches the skill’s name, containing SKILL.md and optional supporting files.

skills/
  release-notes/
    SKILL.md
    template.md
---
name: release-notes
description: Write release notes from merged pull requests. Use when the user asks for a changelog or release summary.
---

# Release notes

Group changes by theme. Follow template.md.

The description is what the model reads to decide whether to load the skill, so say when to use it. Names use lowercase letters, digits and hyphens. Relative paths such as template.md resolve against the skill’s root.

Step 2: Serve it from your server

With FastMCP 4.2.0 or later, point a directory provider at the folder. Every subfolder with a SKILL.md becomes a skill at skill://<path>/SKILL.md:

from pathlib import Path
from fastmcp import FastMCP
from fastmcp.skills.provider import SkillsDirectoryProvider

mcp = FastMCP("Team Skills", providers=[SkillsDirectoryProvider(Path("skills"))])

if __name__ == "__main__":
    mcp.run()

FastMCP validates every folder at startup and refuses to start if one breaks the rules, so a server never comes up silently missing skills. Pass reload=True while editing. Skills can also be built in code with Skill(name=..., description=..., instructions=..., files={...}) and served with SkillCatalogProvider, or loaded from a database by overriding load_skills().

Other SDKs (November 26, 2026): the extension ships in the official TypeScript SDK v2.4.0 (ext/skills), C# SDK v2.4.0, Rust SDK rmcp v3.9.0 and Ruby SDK v1.9.0. The Python SDK has it merged but unreleased; Go, Java, Kotlin and PHP are in progress.

Step 3: Know what the protocol expects

If you implement it by hand, the server must:

  1. Declare resources and the io.modelcontextprotocol/skills extension in its capabilities (add "directoryRead": true only if you implement resources/directory/read).
  2. Answer skills/list with each skill’s URI, unchanged frontmatter and a complete manifest: every file’s URI, SHA-256 digest and byte size.
  3. Answer skills/get for every skill it serves, even ones it does not list.
  4. Serve the files through resources/read, byte-for-byte matching the manifest.

Clients verify size, digest and frontmatter before using a file, so serve exactly the bytes you hashed. Keep each skill under 512 files or 16 MiB.

Step 4: Reach clients that only call tools

Most hosts do not implement the extension yet. FastMCP’s ResourcesAsTools transform adds list_resources and read_resource tools so any tool-calling client can still read the skill:// files:

from fastmcp.server.transforms import ResourcesAsTools
mcp.add_transform(ResourcesAsTools(mcp))

The model has to choose to call those tools; a host with native support loads skills for it.

Step 5: Test it

  • Locally: fastmcp list server.py --skills prints what you serve. MCP Inspector has partial skill verification.
  • In Claude Code (v2.1.331+): add the server with claude mcp add, start a session, type / or run /skills. Skills appear as <server>:<skill>, for example /team-skills:release-notes.
  • If nothing appears: run claude --debug=mcp. Your server must speak MCP revision 2026-07-28 or later over HTTP or stdio. MCP skills are not supported in claude -p, cloud sessions, GitHub Actions, the Agent SDK, or for servers loaded from claude_desktop_config.json in the Desktop app. They also need a Fable model, or Claude Opus 4.8, Sonnet 5, Haiku 5.5 or later.

Step 6: Plan for approvals and updates

In Claude Code’s default auto mode, a classifier decides whether a skill loads; in Manual mode users approve each version. Any changed, added or removed file revokes stored approval, so batch your skill edits into releases. Claude Code shows up to 100 skills per server. Enterprise admins can turn MCP skills off, and Claude Code v2.1.332 added a PreSkillShellCommand hook that can refuse a skill’s inline shell commands.

Last verified: November 26, 2026.

Sources