Skip to main content
Glama
SkillDock MCP Server

SkillDock MCP Server

by xpoorib

SkillDock

A persistent, multi-user AI Skill Manager for ChatGPT (and any MCP client) — served over a remote MCP server.

SkillDock is an open-source, self-hostable service that lets people install, organize, activate, update, and remove Agent Skills — the SKILL.md + supporting files standard used by Claude and other agents — and exposes them through the Model Context Protocol (Streamable HTTP) so assistants like ChatGPT can use them as connector tools.

Users manage their skills by talking naturally to the model: "list my skills", "install the pdf skill from anthropics/skills", "activate frontend-design", "what's in api-design-review?", "uninstall the commit-formatter". There is no slash-command parsing — the MCP tool descriptions and JSON schemas carry the semantics, and the model maps intent to tools.

┌────────────┐  OAuth 2.0 / PKCE   ┌──────────────────────────┐
│  ChatGPT   │────────────────────▶│  SkillDock MCP server     │──▶ PostgreSQL (metadata)
│  (client)  │  Bearer access tok. │  + REST API (Fastify)     │──▶ Object storage (files)
└────────────┘                     └────────────┬─────────────┘
                                                │ public GitHub repos only
                                                ▼
                                     api.github.com (importer)

Feature highlights

  • 10 MCP tools with strict Zod-validated schemas and structured output: list_skills, search_skills, install_skill, install_github_skill, list_installed_skills, activate_skill, get_skill_info, get_skill_resource, update_skill, uninstall_skill.

  • Real OAuth 2.0 authorization-code flow with PKCE (S256) — RFC 8414 / RFC 9728 discovery documents, dynamic client registration (RFC 7591), refresh-token rotation with reuse detection and token-family revocation, plus personal access tokens for CLI/scripting.

  • Multi-user isolation by construction: the user id is always derived from the verified auth context; request arguments can never name another user. Every query and file read is scoped to the caller.

  • Agent Skills standard: SKILL.md with YAML frontmatter (name, description), references/, scripts/, assets/; original directory layout preserved; Claude-compatible skill repositories supported.

  • Full install pipeline: resolve → fetch → validate metadata → validate paths → content security scan → fingerprint (SHA-256) → store files in object storage → persist metadata → confirm. Sources: built-in registry, GitHub repos/subdirectories/branches/commit-SHA-compatible URLs, or user zip uploads.

  • Hardened GitHub importer: public repos only, SSRF/localhost/private-address blocking, path-traversal defense, symlink and submodule skipping, per-file and total size caps, file-count caps, transparent rate-limit handling with backoff, commit-SHA pinning for updates, source attribution.

  • Security scanning of skill content before anything is stored: prompt-injection, exfiltration, secret, and disguised-execution heuristics (SD-INJECT-*, SD-EXFIL-*, SD-SECRET-*, SD-EXEC-*, SD-COVERT-*). strict mode rejects high-severity findings at install time.

  • Activation returns instructions as untrusted contextual content — SkillDock never claims to rewrite system instructions, and activation never persists across conversations.

  • Files in object storage, never in database rows — filesystem or any S3-compatible store, content-addressed by SHA-256 (deduplicated).

  • Prisma + PostgreSQL with 12 models, explicit indexes, cascade rules, and a unique sourceIdentityKey per upstream source for safe versioning/dedup.

  • Tested for real: 125+ tests including integration suites against an embedded real PostgreSQL and the live GitHub API (anthropics/skills), plus end-to-end MCP tests over real HTTP with the official SDK client.

Related MCP server: skillmds

Repository layout

apps/
  mcp-server/     MCP server (Streamable HTTP) + OAuth provider, migration runner
  api/            REST API (auth, PATs, skill management, zip uploads)
packages/
  security/       errors, path safety, URL/SSRF guards, content scanner, hashing, tokens
  skill-core/     SKILL.md frontmatter parsing, bundle validation, zip loading, limits
  github-importer/ GitHub API client, URL resolution, SKILL.md discovery, fetcher
  auth/           OAuth 2.0 service, schemas, RFC 8414/9728 metadata
  skill-manager/  install pipeline, catalog, queries, activation, uninstall, updates
  database/       Prisma schema + migrations, client factory, blob stores, auth store
registry/         built-in skill catalog (index.json)
examples/         sample skills for trying SkillDock locally
tests/            integration + e2e suites (embedded PostgreSQL, real GitHub, MCP client)
docs/             architecture, security, installation, deployment, mcp-setup, commands

Quick start (local development)

Prerequisites: Node.js ≥ 22, pnpm ≥ 10, PostgreSQL 14+ (or use Docker Compose).

pnpm install
cp .env.example .env            # then edit PUBLIC_URL, POSTGRES_PASSWORD, AUTH_JWT_SECRET
pnpm --filter @skilldock/database exec prisma generate
pnpm -r build
node apps/mcp-server/dist/migrate.js   # apply migrations
node apps/mcp-server/dist/index.js     # MCP + OAuth on :8080
node apps/api/dist/index.js            # REST API on :8081

Create an account and a personal access token:

curl -s localhost:8081/v1/auth/register -H 'content-type: application/json' \
  -d '{"email":"you@example.com","password":"a-long-random-password"}'
curl -s localhost:8081/v1/auth/login -H 'content-type: application/json' \
  -d '{"email":"you@example.com","password":"a-long-random-password"}'
# then POST /v1/auth/tokens with the Bearer access_token to get a `skd_...` PAT

Then connect ChatGPT or talk to the server with any MCP client.

Quick start (production, Docker Compose)

See docs/deployment.md for the full walkthrough, including the reverse-proxy TLS setup and the GitHub Actions deploy workflow.

cp .env.example .env    # fill in PUBLIC_URL, POSTGRES_PASSWORD, AUTH_JWT_SECRET
docker compose up -d --build
docker compose exec mcp-server node apps/mcp-server/dist/migrate.js  # first boot only

Documentation

Document

Contents

docs/architecture.md

modular monolith, data model, request flows

docs/security.md

auth model, tenant isolation, importer hardening, content scanner, threat model

docs/installation.md

install pipeline, sources, versioning, duplicates, updates

docs/deployment.md

Docker, migrations, reverse proxy, VPS deploy workflow

docs/mcp-setup.md

connecting ChatGPT and other MCP clients, OAuth endpoints

docs/commands.md

every MCP tool + REST endpoint, with examples

Tests

pnpm --filter @skilldock/security test    # unit tests per package
pnpm --filter @skilldock/tests test       # integration + e2e (boots real embedded PostgreSQL,
                                          # imports real skills from api.github.com)

The integration suite includes real GitHub imports, the full OAuth code flow over HTTP, tenant-isolation attacks, malicious-path and prompt-injection rejections, duplicate installs, updates, and MCP session binding. Nothing is mocked at the HTTP boundary.

License

Apache-2.0 — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to discover, install, and manage SKILL.md skills from a Git-backed registry via MCP tools for search, install, and list operations.
      24 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP-capable agents to search, inspect, lint, and safely install Agent Skills from the skillmd registry mid-conversation.
      41
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to install compatible SKILL.md skills from Git repositories or local directories into a persistent registry, then discover them through search, progressive loading, and asset reads. It exposes only user-selected hot skills as individual activation tools, keeping execution and trust decisions under explicit operator control.
      MIT