Skip to main content
Glama
sarveshtalele

MCP Skill Registry

๐Ÿงฉ MCP Skill Registry

A self-hostable Model Context Protocol server that turns a folder of "skills" into tools any MCP client can discover and run.

CI Python License: MIT Code style: black

What it does ยท How it works ยท Connect a client ยท Authoring skills ยท Deployment


๐ŸŽฏ What It Does

MCP Skill Registry is one server that hosts many skills and exposes each one as a callable tool.

A skill is just a folder containing a SKILL.md manifest and a small script. Drop the folder in, and the server:

  1. Discovers it automatically (reads the manifest at startup).

  2. Publishes it on two interfaces at once:

    • as an MCP tool โ€” usable from Claude Code, Claude Desktop, VS Code, or any MCP client;

    • as a REST endpoint โ€” usable from curl, scripts, or any HTTP app.

  3. Executes it safely in an isolated subprocess with a hard timeout.

You add capabilities by adding folders or uploading a ZIP โ€” never by editing the server.

   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     "list/run tools"      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚  MCP client โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚                    โ”‚
   โ”‚ Claude Code โ”‚                           โ”‚   MCP Skill        โ”‚
   โ”‚ Claude Dsk. โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚   Registry server  โ”‚
   โ”‚  VS Code    โ”‚      tool results         โ”‚                    โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                           โ”‚   discovers every  โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     POST /api/v1/...      โ”‚   skills/<name>/    โ”‚
   โ”‚ REST caller โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚   folder           โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                       โ”‚ runs in
                                                       โ–ผ subprocess
                                          skills/text-statistics/
                                          skills/your-skill/ ...

Related MCP server: Skillz

โš™๏ธ How It Works

Architecture

The server is a small, layered FastAPI application. Each layer depends only on the layers beneath it, so it stays testable and easy to extend.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     FastAPI application  (port 7860)                   โ”‚
โ”‚                                                                        โ”‚
โ”‚   api/        Routers:  /  ยท  /health  ยท  /mcp  ยท  /api/v1/skills      โ”‚  โ† transport
โ”‚     โ”‚                                                                  โ”‚
โ”‚   mcp/        Streamable HTTP transport ยท JSON-RPC 2.0 ยท sessions      โ”‚  โ† MCP protocol
โ”‚     โ”‚                                                                  โ”‚
โ”‚   services/   SkillRegistry (facade)                                   โ”‚  โ† application
โ”‚     โ”‚           โ”œโ”€ loader      parse & validate SKILL.md               โ”‚     logic
โ”‚     โ”‚           โ”œโ”€ validator   check inputs against the manifest       โ”‚
โ”‚     โ”‚           โ”œโ”€ executor    run skill in a sandboxed subprocess     โ”‚
โ”‚     โ”‚           โ”œโ”€ search      keyword / optional semantic ranking     โ”‚
โ”‚     โ”‚           โ”œโ”€ installer   safe ZIP upload (zip-slip / bomb guard) โ”‚
โ”‚     โ”‚           โ””โ”€ audit       append-only event log                   โ”‚
โ”‚     โ”‚                                                                  โ”‚
โ”‚   repositories/  execution history ยท audit trail                      โ”‚  โ† persistence
โ”‚     โ”‚                                                                  โ”‚
โ”‚   db/  models/  config/  container/  main                              โ”‚  โ† storage, types,
โ”‚         SQLite + schema.sql ยท pydantic models ยท settings ยท wiring      โ”‚     wiring
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”˜
                                 โ”‚ discovers & executes
                                 โ–ผ
                    skills/   self-contained skill folders
                      โ””โ”€ <name>/  SKILL.md ยท scripts/ ยท references/ ยท assets/

Request lifecycle (running a tool)

client โ†’ tools/call (MCP)  or  POST /api/v1/skills/{name}/execute (REST)
   โ”‚
   โ”œโ”€ 1. look up the skill in the in-memory catalogue        (404 if unknown)
   โ”œโ”€ 2. validate inputs against SKILL.md                    (types, required, enums)
   โ”œโ”€ 3. spawn subprocess: python _runner.py <skill> run     (isolated, timed)
   โ”‚         inputs โ†’ JSON via stdin   ยท   output โ†’ JSON via stdout
   โ”œโ”€ 4. enforce timeout + output-size cap                   (kill child on overrun)
   โ”œโ”€ 5. record execution + audit entry                      (SQLite)
   โ””โ”€ 6. return { status, output | error, duration_ms }

Why subprocesses? Process-level isolation, a clean import namespace per call, and a reliable hard timeout โ€” a misbehaving skill can never hang or crash the server.

Each skill's entrypoint is a single function:

def run(inputs: dict) -> dict:
    ...  # inputs are pre-validated; return a JSON-serializable dict

โœจ Features

  • ๐Ÿ”Œ Dual interface โ€” every skill is an MCP tool and a REST resource.

  • ๐Ÿงญ Zero-config discovery โ€” skills are plain folders; no registration code.

  • ๐Ÿ›ก๏ธ Sandboxed execution โ€” subprocess isolation, per-skill timeouts, output caps.

  • ๐Ÿ“ค Live uploads โ€” install a skill from a ZIP via the API; no restart.

  • ๐ŸŒ Native MCP โ€” Streamable HTTP transport with sessions; no bridge needed.

  • ๐Ÿ” Search โ€” keyword out of the box, optional semantic (vector) search.

  • ๐Ÿงฑ Clean codebase โ€” layered, typed, 37 tests, CI on Python 3.10โ€“3.12.


๐Ÿš€ Quick Start (local)

git clone https://github.com/sarveshtalele/mcp-skills-registry.git
cd mcp-skills-registry

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

skill-registry          # serves on http://localhost:7860
curl http://localhost:7860/health
# {"status":"ok","version":"0.2.0","skills_loaded":1}

A public instance runs at https://sarveshtalele-mcp-skills-registry.hf.space.


๐Ÿ”— Connect an MCP Client

The server speaks the Streamable HTTP MCP transport at /mcp, so modern clients connect directly. Use your local URL (http://localhost:7860/mcp) or the hosted one (https://sarveshtalele-mcp-skills-registry.hf.space/mcp).

Claude Code

claude mcp add --transport http skill-registry \
  https://sarveshtalele-mcp-skills-registry.hf.space/mcp

Verify inside a session:

/mcp          # lists connected servers and their tools

Remove it again with claude mcp remove skill-registry.

Claude Desktop

  1. Open Settings โ†’ Developer โ†’ Edit Config (opens claude_desktop_config.json).

  2. Add the server:

    {
      "mcpServers": {
        "skill-registry": {
          "command": "npx",
          "args": [
            "-y", "mcp-remote",
            "https://sarveshtalele-mcp-skills-registry.hf.space/mcp"
          ]
        }
      }
    }

    Claude Desktop launches MCP servers as local processes, so it reaches a remote HTTP server through the mcp-remote bridge (npx fetches it automatically; requires Node.js). Alternatively, Settings โ†’ Connectors โ†’ Add custom connector accepts the /mcp URL directly on supported plans.

  3. Restart Claude Desktop. The skills appear as tools (look for the ๐Ÿ”Œ icon).

VS Code (GitHub Copilot / Continue)

Create .vscode/mcp.json:

{
  "servers": {
    "skill-registry": {
      "type": "http",
      "url": "https://sarveshtalele-mcp-skills-registry.hf.space/mcp"
    }
  }
}

Any MCP client (raw protocol)

The endpoint is JSON-RPC 2.0 over HTTP POST.

# 1. initialize โ€” returns an Mcp-Session-Id header
curl -i -X POST http://localhost:7860/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'

# 2. list tools
curl -X POST http://localhost:7860/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

# 3. call a tool
curl -X POST http://localhost:7860/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call",
       "params":{"name":"text-statistics","arguments":{"text":"Hello world."}}}'

Method

Behaviour

POST /mcp

initialize, tools/list, tools/call, ping (single or batch).

GET /mcp

405 โ€” no server-initiated stream (spec-permitted).

DELETE /mcp

Terminate the session in the Mcp-Session-Id header.


๐Ÿงฐ REST API

Prefer plain HTTP? Every skill is reachable without MCP.

Method & Path

Description

GET /

Service metadata + entry points.

GET /health

Liveness probe + skill count.

GET /api/v1/skills

List / search skills (q, category, limit, offset).

GET /api/v1/skills/{name}

Full skill manifest.

POST /api/v1/skills/{name}/execute

Run a skill โ€” body {"inputs": {...}}.

POST /api/v1/skills/upload

Install a skill from a ZIP (?overwrite=true).

POST /api/v1/admin/reload

Re-scan the skills directory.

Interactive Swagger UI is served at /docs.

curl -X POST http://localhost:7860/api/v1/skills/text-statistics/execute \
  -H 'Content-Type: application/json' \
  -d '{"inputs": {"text": "The quick brown fox jumps over the lazy dog."}}'

๐Ÿงฉ Authoring a Skill

A skill is one self-contained folder:

skill-name/
โ”œโ”€โ”€ SKILL.md          # Required: YAML frontmatter (manifest) + instructions
โ”œโ”€โ”€ scripts/          # Optional: code โ€” entrypoint exposes run(inputs) -> dict
โ”œโ”€โ”€ references/       # Optional: supporting docs
โ”œโ”€โ”€ assets/           # Optional: templates, resources, extra requirements.txt
โ””โ”€โ”€ ...               # Any additional files

1. Scaffold

python scripts/new_skill.py my-skill

2. SKILL.md

---
name: my-skill
version: 1.0.0
description: What it does and the phrases that should trigger it.
execution:
  type: python-script
  entrypoint: scripts/main.py:run
  timeout_seconds: 30
inputs:
  - name: text
    type: string
    required: true
    description: Text to process.
outputs:
  - name: result
    type: string
    description: Processed text.
---

# My Skill
Instructions for the agent.

3. scripts/main.py

def run(inputs: dict) -> dict:
    return {"result": inputs["text"].upper()}

4. Register

curl -X POST http://localhost:7860/api/v1/admin/reload      # local rescan
# or upload a packaged skill (no restart):
zip -r my-skill.zip my-skill/
curl -X POST http://localhost:7860/api/v1/skills/upload -F 'file=@my-skill.zip'

Full guide: docs/ADDING_A_SKILL.md.


๐ŸŒ Deployment

Runs anywhere Docker runs, and ships to a Hugging Face Docker Space out of the box.

docker build -t mcp-skill-registry .
docker run -p 7860:7860 -v "$(pwd)/data:/data" mcp-skill-registry

Pushing to main on GitHub auto-mirrors to the Space, which rebuilds from the Dockerfile. Full instructions (tokens, persistence): docs/DEPLOYMENT.md.


๐Ÿ”ง Configuration

Environment variables, prefixed SKILLREG_ (see .env.example):

Variable

Default

Description

SKILLREG_PORT

7860

HTTP port.

SKILLREG_SKILLS_DIR

skills

Skill catalogue directory.

SKILLREG_DB_PATH

data/registry.db

SQLite path.

SKILLREG_DEFAULT_TIMEOUT_SECONDS

30

Default execution timeout.

SKILLREG_MAX_TIMEOUT_SECONDS

120

Upper bound on any timeout.

SKILLREG_ENABLE_UPLOADS

true

Allow the upload endpoint.

SKILLREG_ENABLE_SEMANTIC_SEARCH

false

Vector search (needs the search extra).


๐Ÿงช Development

make install   # editable install with dev extras
make test      # pytest (37 tests)
make lint      # ruff + black --check
make format    # ruff --fix + black
make run       # local dev server

CI runs lint + tests on Python 3.10, 3.11, and 3.12.


๐Ÿ“ Project Structure

mcp-skills-registry/
โ”œโ”€โ”€ src/skill_registry/     # the server (layered package)
โ”‚   โ”œโ”€โ”€ api/  mcp/  services/  repositories/  db/  models/
โ”‚   โ””โ”€โ”€ config.py ยท container.py ยท main.py
โ”œโ”€โ”€ skills/                 # self-contained skills (auto-discovered)
โ”‚   โ”œโ”€โ”€ _template/          # scaffold skeleton
โ”‚   โ””โ”€โ”€ text-statistics/    # worked example
โ”œโ”€โ”€ scripts/                # new_skill.py ยท HF entrypoint
โ”œโ”€โ”€ tests/                  # pytest suite
โ”œโ”€โ”€ docs/                   # architecture ยท deployment ยท authoring
โ””โ”€โ”€ Dockerfile ยท pyproject.toml ยท Makefile ยท .github/workflows/

๐Ÿ“„ License

MIT โ€” see LICENSE.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sarveshtalele/mcp-skills-registry'

If you have feedback or need assistance with the MCP directory API, please join our Discord server