GeekCoding101 make your way to geek

Skills Over MCP: Serve Agent Skills From an MCP Server

Skills over MCP lets an MCP server ship Agent Skills as skill:// resources. See how it works, build a Python server and client, and the host security rules.

8 min read
Terminal screenshot of a Python client listing a commit-message skill from an MCP server, printing skill:// URIs, SHA-256 digests, resource lines and the file names SKILL.md and types.md
On this pageWhat is skills over MCP?

Skills over MCP is an MCP extension that lets a server deliver Agent Skills (a SKILL.md plus its supporting files) to a client as ordinary skill:// resources. The client discovers them with skills/list, reads the files with resources/read, and the skill arrives from the server instead of from a folder on the user’s disk.

This guide covers what the extension is, how it differs from local skills and from MCP tools, resources and prompts, and then builds a small working server and client in Python. One caveat up front: the example is a small local demo using an in-memory client, not a production deployment. I ran it with Python 3.12, fastmcp 4.2.6 and mcp 2.3.0. I did not test Claude, Claude Code or VS Code against it; their support is described only as listed in the project docs.

What is skills over MCP?

An Agent Skill is a folder with a SKILL.md file whose frontmatter has a name and a description, plus any files the instructions refer to. If you have not used them locally, see Claude Code skills and SKILL.md: a tutorial.

Skills over MCP (also called the MCP skills extension) keeps that format and changes the delivery. The server exposes each skill’s files as resources under a skill:// URI, so a team can publish skills once from a server and every connected client can find them. The extension identifier is io.modelcontextprotocol/skills.

If you are new to servers in general, start with What is an MCP server?.

Status: is it official?

The proposal is SEP-2640, the Skills Extension. Its status is Final; it was created on 2026-04-23 and merged on 2026-09-13.

The extension’s own repository, ext-skills, is a separate matter. Its spec page describes the extension as Beta in the extension lifecycle and is written against protocol revision 2026-07-28. So the SEP is final, while the extension is still labelled Beta. Work is coordinated by a working group.

How it differs from local skills and from tools, resources and prompts

Versus local skills. A local skill lives in a directory the user controls and is loaded by the agent from disk. A skill over MCP lives on a server and reaches the host through the protocol. The skill format is the same.

Versus MCP primitives. There is no new transport and no new message type for the files themselves:

PrimitiveWhat it is for
ToolsActions the model can call, which run code on the server
ResourcesData the host can read by URI
PromptsTemplates the user or host can invoke
Skills extensionInstructions and files, carried as resources, in the Agent Skills format

A skill is mostly text that tells the model how to do something. A tool is something that does it. If you need to call an API or change state, build a tool; if you need to teach the model a procedure or a house style, a skill fits. For the wider picture of how MCP relates to plain APIs, see MCP vs API.

How a skill is exposed: skill:// resources

Every file in a skill gets a URI of the form:

skill://<skill-path>/<file-path>

The entry point is always skill://<skill-path>/SKILL.md. The last segment of the skill path must equal the name in the frontmatter, and the frontmatter needs both name and description. Supporting files sit beside it, for example skill://commit-message/types.md.

Two rules for hosts follow from this. They must not resolve the first path segment over the network, and they must not treat a resource as a skill just because its URI starts with skill://.

How clients discover skills

The extension defines these methods:

  • skills/list (optional cursor) returns a skills array. Each entry has uri, frontmatter and resources, which is either an array of {uri, digest, size} objects or the string "dynamic". The response also carries ttlMs and cacheScope for caching.
  • skills/get takes params.uri and returns one skill. An unknown URI gives error -32602.
  • resources/directory/read is available only if the server enables directoryRead.

There is no index resource in the spec. Files are fetched with the normal resources/read.

Limits: at most 512 resources per skill and 16 MiB in total. Each digest is sha256: followed by 64 hex characters, computed over the raw bytes of the file.

How a server declares support

The server adds the extension to its capabilities and must also declare resources:

{
"capabilities": {
"resources": {},
"extensions": {
"io.modelcontextprotocol/skills": {}
}
}
}

An empty object is valid. To let clients list the direct children of a skill directory, set "directoryRead": true. It defaults to false and gates resources/directory/read.

Build it in Python

FastMCP added skills support in 4.2.0 (see the FastMCP skills docs). In 4.1 you needed the experimental_skills flag, which is no longer required. Install a pinned version:

Terminal window
uv venv -p 3.12 .venv && uv pip install -p .venv fastmcp==4.2.6

Create this layout:

skills/commit-message/SKILL.md
skills/commit-message/types.md
server.py
client.py

skills/commit-message/SKILL.md:

---
name: commit-message
description: Write a git commit message in the team's format. Use when committing changes.
---
# Commit message
Read [types.md](types.md), pick one type, then write `type: summary` under 60 characters.

skills/commit-message/types.md:

# Types
- feat: new behaviour
- fix: bug fix
- docs: documentation only

server.py:

from pathlib import Path
from fastmcp import FastMCP
from fastmcp.skills.provider import SkillsDirectoryProvider
mcp = FastMCP(
"Team skills",
providers=[SkillsDirectoryProvider(Path(__file__).parent / "skills")],
)
if __name__ == "__main__":
mcp.run()

SkillsDirectoryProvider scans the skills folder and serves each subfolder as a skill. The folder name matches the name in the frontmatter, which the URI rule requires.

Read the skill from a client

client.py connects to the server in memory, so no process or network is involved:

import asyncio
from fastmcp import Client
from fastmcp.skills import SkillsClientExtension
from server import mcp
async def main():
async with Client(mcp, extensions=[SkillsClientExtension()]) as client:
for entry in await client.list_skills():
print(entry.uri)
print(" ", entry.frontmatter.description)
print(" ", entry.model_dump_json(indent=2, by_alias=True))
for r in await client.list_resources():
print("resource", r.uri)
print(await client.read_resource("skill://commit-message/types.md"))
skill = await client.read_skill("skill://commit-message/SKILL.md")
print(skill.name, sorted(skill.files))
asyncio.run(main())

Check the installed versions, then run it:

Terminal window
uv pip list -p .venv 2>/dev/null | grep -E '^(fastmcp|mcp) '
.venv/bin/python client.py
Terminal output: fastmcp 4.2.6 and mcp 2.3.0, then client.py printing the skill URI, its JSON entry with digests and sizes, three resource URIs, types.md and the file list

What to look for:

  • list_skills() returns one entry per skill with uri, frontmatter and resources, where each resource has a uri, digest and size.
  • list_resources() shows skill://commit-message/SKILL.md and skill://commit-message/types.md. It also shows skill://commit-message/_manifest, which is FastMCP’s own addition and not part of the spec.
  • read_skill() returns a Skill with the name and the file list ['SKILL.md', 'types.md']. According to the FastMCP docs, it checks size, file count and the SHA-256 digests while reading.

The client must opt in

A client created without the extension refuses to use it:

import asyncio
from fastmcp import Client
from server import mcp
async def main():
async with Client(mcp) as client:
try:
await client.list_skills()
except RuntimeError as e:
print(f"{type(e).__name__}: {e}")
asyncio.run(main())

Save it as no_ext.py and run .venv/bin/python no_ext.py. list_skills() raises a RuntimeError, and the script prints its type and message:

Terminal output: no_ext.py printing a RuntimeError saying the client did not opt into the Skills extension

The fix is the extensions=[SkillsClientExtension()] argument shown above.

Security rules for hosts

The spec treats skill content as untrusted, because it comes from a server the user may not control. The rules for hosts are:

  • No host-side code execution from an MCP skill without explicit approval for that specific skill.
  • A skill from server A must not cause reads on server B.
  • Ignore allowed-tools in the frontmatter unless the user approves it.
  • Digests are an integrity check, not a trust boundary. They show that the bytes match what the server listed, not that the server is trustworthy.
  • Approvals are revoked when the skill’s resource set changes.

If the server is remote, authentication is a separate question; see MCP authorization with OAuth 2.1.

Which SDKs and clients support it

The project keeps a community-maintained implementations list that changes quickly, so check it before you rely on this section. At the time of checking (2026-11-27):

  • SDKs: TypeScript, C#, Rust and Ruby are listed, along with FastMCP 4.2.0. Support in the official Python SDK is merged but not yet released.
  • Clients: Claude, Claude Code and VS Code are listed as beta. In Claude Code the beta starts at v2.1.331, and skills from a server run as /<server>:<skill>.

I did not test any of these clients.

FAQ

Is skills over MCP the same as Claude Code skills?

No. They share the Agent Skills format (a SKILL.md with name and description), but local Claude Code skills are read from disk while skills over MCP are delivered by a server as skill:// resources.

Do I need a tool or a skill?

Use a tool when something must run: calling an API, querying a database, changing state. Use a skill when the model needs instructions or reference files, such as a commit format or a review checklist.

Does the server need to declare anything special?

Yes. It must declare resources and add io.modelcontextprotocol/skills under capabilities.extensions. An empty object is valid; add {"directoryRead": true} only if you want clients to use resources/directory/read.

Can a skill from an MCP server run code on my machine?

Not by default. The spec says hosts must not execute code from an MCP skill without explicit per-skill approval, and must treat skill content as untrusted.

Thanks for reading my blog post! Feel free to check out my other posts or contact me via the social links in the footer.

Keep reading

All posts