New in version 3.0.0Agent skills are directories containing instructions and supporting files that teach an AI assistant how to perform specific tasks. Tools like Claude Code, Cursor, and VS Code Copilot each have their own skills directories where users can add custom capabilities. The Skills Provider exposes these skill directories as MCP resources, making skills discoverable and shareable across different AI tools and clients.
Skills live in platform-specific directories (~/.claude/skills/, ~/.cursor/skills/, etc.) and typically contain a main instruction file plus supporting reference materials. When you want to share skills between tools or access them from a custom client, you need a way to discover and retrieve these files programmatically.The Skills Provider solves this by exposing each skill as a set of MCP resources. A client can list available skills, read the main instruction file, check the manifest to see what supporting files exist, and fetch any file it needs. This transforms local skill directories into a standardized API that works with any MCP client.
Each subdirectory containing a SKILL.md file becomes a discoverable skill. Clients can then list resources to see available skills and read them as needed.
Copy
from fastmcp import Clientasync with Client(mcp) as client: # List all skill resources resources = await client.list_resources() for r in resources: print(r.uri) # skill://my-skill/SKILL.md, skill://my-skill/_manifest, ... # Read a skill's main instruction file result = await client.read_resource("skill://my-skill/SKILL.md") print(result[0].text)
A skill is a directory containing a main instruction file (default: SKILL.md) and optionally supporting files. The directory name becomes the skill’s identifier.
The main file can include YAML frontmatter to provide metadata. If no frontmatter exists, the provider extracts a description from the first meaningful line of content.
Copy
---description: Process and extract information from PDF documents---# PDF ProcessingInstructions for handling PDFs...
Each skill exposes three types of resources, all using the skill:// URI scheme.The main instruction file contains the primary skill content. This is the resource clients read to understand what a skill does and how to use it.
Copy
skill://pdf-processing/SKILL.md
The manifest is a synthetic JSON resource listing all files in the skill directory with their sizes and SHA256 hashes. Clients use this to discover supporting files and verify content integrity.
Copy
skill://pdf-processing/_manifest
Reading the manifest returns structured file information.
SkillProvider handles a single skill directory. It loads the main file, parses any frontmatter, scans for supporting files, and creates the appropriate resources.
SkillsDirectoryProvider scans one or more root directories and creates a SkillProvider for each valid skill folder it finds. A folder is considered a valid skill if it contains the main file (default: SKILL.md).
When scanning multiple root directories, provide them as a list. The first directory takes precedence if the same skill name appears in multiple roots.
FastMCP includes pre-configured providers for popular AI coding tools. Each vendor provider extends SkillsDirectoryProvider with the appropriate default directory for that platform.
Provider
Default Directory
ClaudeSkillsProvider
~/.claude/skills/
CursorSkillsProvider
~/.cursor/skills/
VSCodeSkillsProvider
~/.copilot/skills/
CodexSkillsProvider
/etc/codex/skills/ and ~/.codex/skills/
GeminiSkillsProvider
~/.gemini/skills/
GooseSkillsProvider
~/.config/agents/skills/
CopilotSkillsProvider
~/.copilot/skills/
OpenCodeSkillsProvider
~/.config/opencode/skills/
Vendor providers accept the same configuration options as SkillsDirectoryProvider (except for roots, which is locked to the platform default).
With supporting_files="template", supporting files are accessed through a ResourceTemplate rather than being listed as individual resources. Clients see only the main file and manifest in list_resources(), then discover supporting files by reading the manifest.
Copy
from pathlib import Pathfrom fastmcp.server.providers.skills import SkillsDirectoryProvider# Default behavior - supporting files hidden from list_resources()provider = SkillsDirectoryProvider( roots=Path.home() / ".claude" / "skills", supporting_files="template", # This is the default)
This keeps the resource list compact when skills contain many files. Clients that need supporting files read the manifest first, then request specific files by URI.
With supporting_files="resources", every file in every skill appears as an individual resource in list_resources(). Clients get full enumeration upfront without needing to read manifests.
Copy
from pathlib import Pathfrom fastmcp.server.providers.skills import SkillsDirectoryProvider# All files visible as individual resourcesprovider = SkillsDirectoryProvider( roots=Path.home() / ".claude" / "skills", supporting_files="resources",)
Use this mode when clients need to discover all available files without additional round trips, or when integrating with tools that expect flat resource lists.
With reload=True, the provider re-discovers skills on each list_resources() or read_resource() call. New skills appear, removed skills disappear, and modified content reflects current file state.
Reload mode adds overhead to every request. Use it during development when you’re actively editing skills, but disable it in production.
Use list_skills() to see what skills are available on a server.
Copy
from fastmcp import Clientfrom fastmcp.utilities.skills import list_skillsasync with Client("http://skills-server/mcp") as client: skills = await list_skills(client) for skill in skills: print(f"{skill.name}: {skill.description}")
Use get_skill_manifest() to see what files a skill contains before downloading.
Copy
from fastmcp import Clientfrom fastmcp.utilities.skills import get_skill_manifestasync with Client("http://skills-server/mcp") as client: manifest = await get_skill_manifest(client, "pdf-processing") for file in manifest.files: print(f"{file.path} ({file.size} bytes, {file.hash})")