trackmcp
Back to directory
back1ply

agent-skill-loader

View on GitHub

MCP server to expose Claude Code Skills to AI agents

15 stars TypeScriptOthers Updated Aug 20, 2026
claudeclaude-codecursormcpmodel-context-protocolskillstypescriptantigravity

Documentation

Agent Skill Loader ๐Ÿง 

npm version
MCP Registry
License: MIT
Node.js Version
TypeScript
MCP

Agent Skill Loader is a Model Context Protocol (MCP) server that acts as a bridge between your static Claude Code Skills library and dynamic AI agents (like Claude Desktop, Cursor, or any MCP client).

It exposes skills both as MCP Prompts (slash commands, zero tool calls needed) and as MCP Tools (for programmatic use). Skills are auto-discovered from configured directories and stay live โ€” add a new `SKILL.md` and the client is notified automatically.

๐Ÿš€ Features

  • MCP Prompts: Skills appear as slash commands in clients. No tool call needed to inject them.
  • Live updates: `listChanged` notification fires when skills are added or removed (via file watcher).
  • Discovery: `list_skills` โ€” scans configured skill directories, with optional search filter.
  • Dynamic Learning: `read_skill` โ€” fetches the `SKILL.md` content.
  • Persistence: `install_skill` โ€” copies a skill permanently to your project.
  • Configuration: `manage_search_paths` โ€” add/remove skill directories at runtime.
  • Troubleshooting: `debug_info` โ€” diagnose configuration and path issues.

๐Ÿ› ๏ธ Setup

Prerequisites

  • Node.js >= 18
bash
npm install -g agent-skill-loader

Then register in `.mcp.json`:

json
"agent-skill-loader": {
  "command": "agent-skill-loader"
}

Option B: Build from Source

bash
git clone https://github.com/back1ply/agent-skill-loader.git
cd agent-skill-loader
npm install
npm run build

Then register in `.mcp.json`:

json
"agent-skill-loader": {
  "command": "node",
  "args": ["/build/index.js"]
}

๐Ÿ“‚ Configuration

The server automatically detects its workspace and aggregates skill paths from:

1. Default: `%USERPROFILE%\.claude\plugins\cache` (Standard location)

2. Dynamic Config: `skill-paths.json` (Located in the project root)

Environment Variables

VariableDescription
`MCP_SKILL_PATHS`JSON array or semicolon/comma-separated list of additional skill paths
`MCP_WORKSPACE_ROOT`Override auto-detected workspace root
`MCP_NO_WATCH`Set to `1` to disable the file watcher (useful in CI)

Dynamic Path Management

You do not need to manually edit config files. Use the tool to manage paths at runtime:

  • Add: `manage_search_paths(operation="add", path="F:\\My\\Deep\\Skills")`
  • Remove: `manage_search_paths(operation="remove", path="...")`
  • List: `manage_search_paths(operation="list")` creates/updates `skill-paths.json`.

๐Ÿค– Usage

MCP Prompts (Slash Commands)

If your client supports MCP Prompts (Claude Desktop, Cursor, etc.), skills appear automatically as slash commands. Select a skill from the slash command menu to inject its content directly โ€” no tool calls needed.

Tools

The agent has access to five tools:

  • `list_skills(query?)`: Returns a JSON list of available skills. Optional `query` filters by name/description substring (case-insensitive).
  • `read_skill(skill_name)`: Returns the markdown instructions for a skill.
  • `install_skill(skill_name, target_path?)`: Copies the skill folder to `.agent/skills/`. For security, `target_path` must be within the current workspace.
  • `manage_search_paths(operation, path?)`: Add, remove, or list skill search paths.
  • `debug_info()`: Returns diagnostic information (paths, status, warnings).

Example Agent Prompt

> "I need to write a DAX measure but I'm not sure about the best practices."

The agent will automatically call `list_skills`, find `writing-dax-measures`, call `read_skill`, and answer with expert knowledge. Or the user can invoke the skill directly as a slash command.

๐Ÿ”ง Troubleshooting

If skills aren't being discovered, use `debug_info()` to see:

  • search_paths: Which directories are being scanned
  • path_status: Whether each path exists and is readable
  • warnings: Any errors encountered during scanning (permission denied, empty files, etc.)

Example output:

json
{
  "workspace_root": "C:/projects/agent-skill-loader",
  "search_paths": {
    "base": ["C:/Users/pc/.claude/plugins/cache"],
    "dynamic": ["F:/My/Skills"],
    "effective": ["C:/Users/pc/.claude/plugins/cache", "F:/My/Skills"]
  },
  "path_status": [
    { "path": "C:/Users/pc/.claude/plugins/cache", "exists": true, "readable": true },
    { "path": "F:/My/Skills", "exists": false, "readable": false }
  ],
  "skills_found": 12,
  "warnings": [
    { "path": "F:/My/Skills", "reason": "Directory does not exist" }
  ]
}

๐Ÿ“ฆ Project Structure

  • `src/index.ts`: Main server logic (tools + prompts + watcher).
  • `src/utils.ts`: Skill scanning, description extraction, prompt helpers, debounce.
  • `build/`: Compiled JavaScript output.
  • `package.json`: Dependencies (`@modelcontextprotocol/sdk`, `chokidar`, `zod`).

๐Ÿค Contributing

To add new skills, add a folder with a `SKILL.md` file to one of the watched directories. The server picks them up automatically and sends a `listChanged` notification โ€” no restart required.

Frequently asked questions

What is agent-skill-loader?

agent-skill-loader is MCP server to expose Claude Code Skills to AI agents

How do I install agent-skill-loader?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is agent-skill-loader open source?

Yes โ€” it is hosted on GitHub at https://github.com/back1ply/agent-skill-loader and has 15 stars.

Related MCP tools

AVIDS2memorix

Open-source cross-agent memory layer for coding agents via MCP. Compatible with Claude Code, Codex, Cursor, Windsurf, Gemini CLI, Antigravity, OpenClaw, Hermes Agent, Oh-my-Pi, Pi, Copilot, Kiro, OpenCode, and Trae.

721 TypeScript
ai-codingclaude-codecopilot+17
riponcmprojectmem

Open-source coding agent memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.

796 Python
ai-agentsai-memoryai-tools+17
KnockOutEZwigolo

The go-to web for your AI coding agent โ€” local-first search, fetch, crawl & research over MCP. No API keys, no cloud, $0/query. Public beta.

4,906 TypeScript
mcpagentai+17
jamubcgemini-mcp-tool

MCP server that enables AI assistants to interact with Google Gemini CLI, leveraging Gemini's massive token window for large file analysis and codebase understanding

2,278 TypeScript
aiclaudecli+7
IvanMurzakUnity-MCP

AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for free.

4,137 C#
aiai-integrationgame-development+16
jgravellejcodemunch-mcp

Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.

2,651 Python
claudeclaude-codeai-coding+17

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP