MCP Skill Registry
A self-hostable MCP server that turns a folder of skills into callable tools via MCP and REST APIs.
README
<div align="center">
๐งฉ 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.
What it does ยท How it works ยท Connect a client ยท Authoring skills ยท Deployment
</div>
๐ฏ 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:
- Discovers it automatically (reads the manifest at startup).
- 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.
- 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/ ...
โ๏ธ 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
-
Open Settings โ Developer โ Edit Config (opens
claude_desktop_config.json). -
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-remotebridge (npxfetches it automatically; requires Node.js). Alternatively, Settings โ Connectors โ Add custom connector accepts the/mcpURL directly on supported plans. -
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.