This is an auto-generated, read-only mirror. Source: smith-horn/skillsmith (
packages/mcp-server). Do not open pull requests here — they will be closed automatically. File issues and contribute at the canonical repo instead.
Important: The bare
skillsmithpackage on npm is not this project. Install@skillsmith/mcp-serverfor the MCP server or@skillsmith/clifor CLI usage.
MCP (Model Context Protocol) server for agent skill publishing, installation, and lifecycle management.
Part of Skillsmith: a registry for sharing, scanning, and tracking agent skills across teams.
- The WASM fallback can no longer corrupt your database: when the native SQLite driver can't load, the server opens the database read-only instead of saving over it, which could lose another Skillsmith process's work and corrupt the search index (SMI-7260). It says so once, with the fix for your install, and doesn't start background sync. Reads and the API-backed tools work; tools that record something return a clear error, and
skill_rescanstill returns every finding. - Startup advice names the real fix: it now says
npm rebuild better-sqlite3(or reinstall with install scripts enabled) and no longer suggestsSKILLSMITH_FORCE_WASM, which now gives a read-only database. ~/.skillsmithis created private (0700).
From 0.8.0:
- Skills outside the allowlisted tiers need confirmation (behaviour change):
install_skillnow needsconfirmed: truefor any registry skill whose trust tier is not official, verified, curated, community or local (for exampleunverified). Without it you getCONFIRMATION_REQUIREDwith the tier and the reason. These skills can't useskipScan, and the security scan always runs. Clients that never sendconfirmedcan't install them. officialskills are now recognised: anofficialregistry skill was treated asunknown. All eight trust tiers are now accepted.- Executable frontmatter is refused: the security scan rejects a skill whose SKILL.md, or a bundled non-doc file other than
package.json, opens with---jsor---javascript, soinstall_skillrefuses it unless the scan is skipped (allowed only for the official, verified, curated, community or local tiers).skill_rescanquarantines an installed skill whose SKILL.md does. - Private-registry audit log fixed: denials, failures and reads are now recorded on the standard deployment, through a new database function that uses your own login. This needs migration
20261008000000_private_registry_audit_attempt_rpc.sql; until it's applied, audit writes fail soft.
See CHANGELOG.md for previous releases.
The MCP server checks for updates on startup and notifies you when a newer version is available:
[skillsmith] Update available: 0.7.3 → 0.7.4
Restart your MCP client to use the latest version.
To disable update checks, set SKILLSMITH_AUTO_UPDATE_CHECK=false in your environment.
Local-first by design. Skillsmith caches the registry in a local SQLite database at ~/.skillsmith/skills.db, shared across the MCP server, the CLI, and the VS Code extension. Search is FTS5 (SQLite's built-in keyword search) by default; semantic search is opt-in (SKILLSMITH_USE_HNSW=true) and runs over local ONNX embeddings (an open ML model format that runs on CPU — no API call). Inside the Local Skill Database walks through the schema, the FTS5 / HNSW search paths, and how sync keeps the cache fresh.
npm install @skillsmith/mcp-serverSkillsmith works with any MCP-compatible AI agent. Pick the snippet for your client.
SMI-4580: snippets are sourced from @skillsmith/cli/templates/mcp-server.template.snippets.ts
so this README and the website docs cannot drift.
Claude Code — ~/.claude/settings.json
{
"mcpServers": {
"skillsmith": {
"command": "npx",
"args": ["-y", "-p", "@skillsmith/mcp-server", "skillsmith-mcp"],
"env": {
"SKILLSMITH_API_KEY": "sk_live_..."
}
}
}
}Restart Claude Code after editing settings.json.
Skillsmith contributors: If you're working inside the skillsmith monorepo, do NOT add the above global
~/.claude/settings.jsonentry. The project's.mcp.jsonalready configures theskillsmithMCP server viascripts/mcp-skillsmith-launcher.sh. Adding a global entry causes Claude Code to attempt a second connection that also announces asskillsmith-mcp, resulting in "Failed to reconnect to skillsmith" errors. Remove the global entry; the project entry takes precedence.
Cursor — ~/.cursor/mcp.json
{
"mcpServers": {
"skillsmith": {
"command": "<paste output of: which skillsmith-mcp (macOS/Linux) or where skillsmith-mcp (Windows)>",
"env": {
"SKILLSMITH_API_KEY": "sk_live_...",
"SKILLSMITH_CLIENT": "cursor"
}
}
}
}Cursor 2.4+ required, Node >=22.22 (Cursor's own bundled Node meets this). SKILLSMITH_CLIENT routes installs to ~/.cursor/skills instead of the default ~/.claude/skills.
Setup: run npm install -g @skillsmith/mcp-server, then run which skillsmith-mcp (macOS/Linux) or where skillsmith-mcp (Windows) and paste that path into command above — Cursor's bundled Node cannot resolve packages via npx (a real ENOENT on a missing Resources/app/resources/lib directory), so pointing directly at the installed binary is the only form confirmed to work inside Cursor. Prefer to try npx first anyway? Replace command with "npx" and add "args": ["-y", "-p", "@skillsmith/mcp-server", "skillsmith-mcp"] — simpler, but may hit the same ENOENT, plus EBADENGINE or ENOTEMPTY on repeated installs. After saving: enable the server in Cursor's Settings → MCP panel and start a new chat — a correctly-configured entry still shows disconnected until toggled on there — then reload the window.
GitHub Copilot (VS Code) — .vscode/mcp.json (workspace)
{
"mcpServers": {
"skillsmith": {
"command": "npx",
"args": ["-y", "-p", "@skillsmith/mcp-server", "skillsmith-mcp"],
"env": {
"SKILLSMITH_API_KEY": "sk_live_..."
}
}
}
}VS Code 1.108+ required. Workspace-scoped (commit to repo if team-shared, or use user settings.json instead).
Windsurf — ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"skillsmith": {
"command": "npx",
"args": ["-y", "-p", "@skillsmith/mcp-server", "skillsmith-mcp"],
"env": {
"SKILLSMITH_API_KEY": "${env:SKILLSMITH_API_KEY}"
}
}
}
}Supports ${env:VAR} interpolation; export SKILLSMITH_API_KEY in your shell instead of inlining the secret.
Codex CLI — ~/.codex/config.toml (TOML, not JSON)
[mcp_servers.skillsmith]
command = "npx"
args = ["-y", "-p", "@skillsmith/mcp-server", "skillsmith-mcp"]
[mcp_servers.skillsmith.env]
SKILLSMITH_API_KEY = "sk_live_..."Codex reads ~/.agents/skills. When installing via Skillsmith CLI, pass --client agents.
Cross-agent (open standard) — ~/.agents/mcp.json
{
"mcpServers": {
"skillsmith": {
"command": "npx",
"args": ["-y", "-p", "@skillsmith/mcp-server", "skillsmith-mcp"],
"env": {
"SKILLSMITH_API_KEY": "sk_live_..."
}
}
}
}Read by any agent honouring the cross-agent skill convention.
Get your API key at https://skillsmith.app/account (free Community tier available).
After adding to your MCP client settings and restarting, try asking:
"Search for testing skills"
"Find verified skills for git workflows"
"Install the commit skill"
"Compare jest-helper and vitest-helper"
The Skillsmith API provides access to hundreds of thousands of indexed skills that are:
- Indexed daily from GitHub repositories
- Security screened hourly for vulnerabilities and malicious patterns
- Quality scored based on documentation, structure, and community feedback
- Categorized by trust tier (eight tiers, from Official to Unverified; see Trust Tiers below)
Skills are served from api.skillsmith.app and cached locally for 24 hours.
Note (v0.3.8): Fixed critical bug where the MCP server defaulted to offline mode for all users. Search now correctly connects to the production API.
Without an API key, the MCP server falls back to a built-in public key: you get the Community per-minute rate (30/min), but each edge endpoint has one bucket shared by every keyless client, so it can be exhausted by others. (The 10-call trial with a 100/min per-IP cap applies to direct HTTP requests that do not successfully authenticate; keyless MCP requests authenticate with the built-in key and never reach it.) With a free Community account, you get 100 calls/month at up to 30 requests/minute with access to all live skills. When enabled, a per-IP daily budget can also apply to that shared key (ENFORCE_ANON_BUDGET; off by default).
Benefits of API key:
- Access to live indexed skills (not just cached)
- Higher rate limits based on your tier
- Usage tracking on your dashboard
- Priority during high-traffic periods
Step 1: Get your API key from https://skillsmith.app/account
Step 2: Add to your Claude settings at ~/.claude/settings.json:
{
"mcpServers": {
"skillsmith": {
"command": "npx",
"args": ["-y", "-p", "@skillsmith/mcp-server", "skillsmith-mcp"],
"env": {
"SKILLSMITH_API_KEY": "sk_live_your_key_here"
}
}
}
}Step 3: Restart your MCP client
Security Note: Never paste your API key in chat. Configure it via the settings file above. For testing, set the env var using the appropriate command for your platform:
Platform Command Mac/Linux !export SKILLSMITH_API_KEY='your-key-here'Windows PowerShell !$env:SKILLSMITH_API_KEY='your-key-here'Windows CMD !set SKILLSMITH_API_KEY=your-key-hereThe
!prefix in Claude Code runs the command without exposing the output.
| Tier | Monthly quota | Per-minute limit | Monthly Cost | Best For |
|---|---|---|---|---|
| No API key (MCP default) | Community rate, shared public key | 30/min per endpoint, shared across all keyless clients | Free | Quick evaluation |
| Community | 100 | 30/min | Free | Personal projects |
| Individual | 1,000 | 200/min | $9.99/mo | Active developers |
| Team | 10,000 | 300/min | $25/user/mo | Development teams |
| Enterprise | Unlimited | 600/min | Contact Sales | Large organizations |
Quota note: the monthly figure is a hard limit only where enforced. Edge functions hard-block on monthly quota for Community only, and only when
ENFORCE_COMMUNITY_QUOTAis'true'. The MCP server's own monthly quota counts onlyskill_suggestand the tier-gated tools, and hard-blocks them by default (SKILLSMITH_ENFORCE_MCP_QUOTA=falseturns that off).
All tiers include:
- Full access to skill search, details, and recommendations
- Security screening results
- Quality scores and trust tier information
| Variable | Default | Description |
|---|---|---|
SKILLSMITH_API_KEY |
- | Personal API key for usage tracking |
SKILLSMITH_API_URL |
https://api.skillsmith.app/functions/v1 |
API endpoint |
SKILLSMITH_OFFLINE_MODE |
false |
Use local database instead |
SKILLSMITH_TELEMETRY |
true |
Enable anonymous telemetry |
| Tool | Description | Tier |
|---|---|---|
search |
Search for skills with filters | Community |
get_skill |
Get detailed skill information | Community |
install_skill |
Install a skill to ~/.claude/skills | Community |
uninstall_skill |
Remove an installed skill | Community |
skill_recommend |
Get contextual skill recommendations | Community |
skill_validate |
Validate a skill's structure | Community |
skill_compare |
Compare skills side-by-side | Community |
skill_suggest |
Suggest skills based on project context (counts against monthly quota) | Community |
skill_outdated |
Check installed skills for staleness and dependency status | Community |
index_local |
Index skills from a local directory | Community |
skill_publish |
Prepare a skill for publishing | Community |
skill_rescan |
Re-scan an installed skill's content | Community |
skill_recover_source |
Recover the canonical GitHub source of locally-installed skills (read-only report + candidates) | Community |
inventory_push |
Push this machine's installed-skill inventory to your Skillsmith account for the web dashboard (read-only; requires skillsmith login) |
Community |
skill_inventory_audit |
Audit every installed AI coding client's skill inventory for local namespace collisions; returns rename + edit suggestions | Community |
apply_namespace_rename |
Apply a rename suggestion from an inventory audit (apply/custom/skip/revert) |
Community |
apply_recommended_edit |
Apply a recommended prose edit from an inventory audit (gated on APPLY_TEMPLATE_REGISTRY) | Community |
undo_apply |
Session-scoped undo for the most recent apply_namespace_rename / apply_recommended_edit changeset(s), restored from the apply tool's own backup | Community |
apply_manifest_reconcile |
Repair a corrupted or ambiguous manifest entry (mark_local/relink/drop_entry/verify/revert) — see skill_outdated's identity-mismatch/local-drift diagnosis |
Community |
skill_updates |
Check registry for newer skill versions | Individual+ |
skill_diff |
Section-level diff between skill versions | Individual+ |
skill_pack_audit |
Audit all skills in a directory | Individual+ |
skill_audit |
Check skills for security advisories | Team+ |
team_workspace |
Manage team workspaces (create, list, get, delete) | Team+ |
share_skill |
Add, remove, or list skills in a team workspace | Team+ |
publish_private |
Mark a skill private on this machine (local only; hides it from your own search results) | Team+ |
team_analytics_dashboard |
Per-user tool usage counts, top tools, daily trend | Team+ |
team_usage_report |
Weekly/monthly usage summary with period comparison | Team+ |
compliance_report |
Generate SOC2, CycloneDX SBOM, or JSON compliance reports | Team+ |
audit_export |
Export audit log events for a time range | Enterprise |
audit_query |
Query audit logs with filters | Enterprise |
siem_export |
Export audit events for SIEM ingestion | Enterprise |
analytics_dashboard |
Recommendation accuracy, adoption curves, team aggregation | Enterprise |
usage_report |
Comprehensive usage report with all metrics | Enterprise |
configure_sso |
Configure SSO/SAML (set, test, remove, claim_domain, verify_domain) | Enterprise |
sso_settings |
View current SSO/SAML configuration | Enterprise |
private_registry_publish |
Publish a skill to your private registry | Enterprise |
private_registry_manage |
Manage private registry skills (list, get, install, deprecate, undeprecate, namespace, submissions, approve, reject) | Enterprise |
rbac_manage |
Inspect and adjust per-role permissions (list_roles, get_role, set_role_permission, reset_role_permission) | Enterprise |
rbac_assign_role |
Assign, revoke or list role assignments | Enterprise |
rbac_create_policy |
Bulk-set, clear or list per-role permission overrides | Enterprise |
webhook_configure |
Configure HMAC-SHA256 signed webhooks for skill events (in preview — availability pending production migration) | Enterprise |
api_key_manage |
Manage API keys for programmatic access (in preview — availability pending production migration) | Enterprise |
The automatic session-start namespace audit is a Team and Enterprise feature; skill_inventory_audit, apply_namespace_rename, apply_recommended_edit and undo_apply can be run by hand on any tier.
Search for skills matching a query.
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | Conditional | Search term (min 3 characters); required unless a filter (category/trust_tier/min_score) is provided |
category |
string | No | Filter by category (development, testing, devops, etc.) |
trust_tier |
string | No | Filter by trust tier (verified, curated, community, experimental, unknown) |
min_score |
number | No | Minimum quality score (0-100) |
limit |
number | No | Max results (default 10) |
Response fields include: repository_url, homepage_url (when declared by the skill author), and compatibility tags (LLMs, IDEs, platforms supported).
Get detailed information about a specific skill.
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Skill ID in format author/name |
Response fields include: also_installed — an array of skills frequently co-installed alongside this one (surfaced once ≥5 co-installs are observed). Each entry contains skillId, name, description, and installCount.
Install a skill to your local environment. The table lists the common parameters; the tool's input schema has the rest (skipOptimize, conflictAction, client, alsoLink, symlink, cwd, scope).
| Parameter | Type | Required | Description |
|---|---|---|---|
skillId |
string | Yes | Registry ID (author/name), GitHub path (owner/repo/skill) or GitHub URL |
force |
boolean | No | Reinstall if already installed |
skipScan |
boolean | No | Skip the security scan. Refused for any tier other than official, verified, curated, community or local |
confirmed |
boolean | No | Confirm installing a registry skill whose trust tier is not official, verified, curated, community or local (for example unverified). Without it, those installs return CONFIRMATION_REQUIRED. It never skips the security scan |
Remove an installed skill.
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Skill ID to uninstall |
Get skill recommendations based on context.
| Parameter | Type | Required | Description |
|---|---|---|---|
context |
string | Yes | Description of your project or needs |
limit |
number | No | Max recommendations (default 5) |
Validate a skill's SKILL.md file.
| Parameter | Type | Required | Description |
|---|---|---|---|
path |
string | Yes | Path to skill directory or SKILL.md |
Compare two skills side-by-side.
| Parameter | Type | Required | Description |
|---|---|---|---|
skill_a |
string | Yes | First skill ID (author/name) |
skill_b |
string | Yes | Second skill ID (author/name) |
Proactively suggest relevant skills based on current project context. Counts against your monthly API quota.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_path |
string | Yes | Absolute path to the project directory |
current_file |
string | No | File currently being edited |
recent_commands |
string[] | No | Recent terminal commands (last 5) |
error_message |
string | No | Recent error message, if any |
installed_skills |
string[] | No | Currently installed skill IDs (for filtering) |
limit |
number | No | Max suggestions to return (default 3, max 10) |
session_id |
string | No | Session identifier (optional, for informational purposes) |
Check installed skills for available updates and dependency satisfaction status.
| Parameter | Type | Required | Description |
|---|---|---|---|
include_deps |
boolean | No | Include dependency satisfaction status (default: true) |
Show a section-level diff between two versions of a skill. Returns added, removed, and modified headings along with a change type (major/minor/patch) and update recommendation. Requires Individual tier or higher.
| Parameter | Type | Required | Description |
|---|---|---|---|
skillId |
string | Yes | Registry skill identifier (e.g. author/skill-name) |
oldContent |
string | Yes | Previous SKILL.md content |
newContent |
string | Yes | Updated SKILL.md content |
oldRiskScore |
number | No | Risk score of the old version (0–100) |
newRiskScore |
number | No | Risk score of the new version (0–100) |
hasLocalModifications |
boolean | No | Whether the installed skill has local edits (default: false) |
trustTier |
string | No | Registry trust tier: verified, community, experimental (default: community) |
Check installed skills for known security advisories. Requires Team tier or higher. The advisory system is in early access.
| Parameter | Type | Required | Description |
|---|---|---|---|
skillIds |
string[] | No | Specific skill IDs to audit (omit to return all skills with active advisories) |
Index local skills from ~/.claude/skills/ directory.
| Parameter | Type | Required | Description |
|---|---|---|---|
force |
boolean | No | Force re-indexing even if cache is valid (default: false) |
skillsDir |
string | No | Custom skills directory path (defaults to ~/.claude/skills/) |
Every skill carries one of eight trust tiers. Descriptions are the ones the server shows (TrustTierDescriptions, packages/core/src/types.ts).
| Tier | Description |
|---|---|
official |
Official or partner skill with full security review. Maintained by Skillsmith or verified partners. |
verified |
Manually reviewed by the Skillsmith team. High quality and safe to use. |
curated |
Third-party publisher. Manually opted into the registry. |
community |
Highly rated by the community. Generally reliable. |
experimental |
New or beta skill. Use with caution. |
unknown |
Not yet assessed. Review carefully before using. |
unverified |
No verification performed. Review carefully before installing. |
local |
Local skill from your ~/.claude/skills/ directory. You control this skill. |
Installing a registry skill outside official, verified, curated, community and local needs confirmed: true, and those skills can't use skipScan. That list is an install policy, not a review claim: local is on it because you control the skill, not because anyone reviewed it.
| Variable | Description | Default |
|---|---|---|
SKILLSMITH_DB_PATH |
Database file location | ~/.skillsmith/skills.db |
SKILLSMITH_TELEMETRY_ENABLED |
Enable anonymous telemetry | false |
SKILLSMITH_FORCE_WASM |
Force the WASM SQLite driver (sql.js), for testing. The database is then read-only: nothing local is saved | unset |
SKILLSMITH_ERROR_LOG_DISABLE |
Disable structured error logging to disk (set to '1' or 'true' to opt-out) |
unset (logging ON) |
SKILLSMITH_LOG_LEVEL |
Filter log verbosity: debug, info, warn, error |
warn |
POSTHOG_API_KEY |
PostHog API key (required if telemetry enabled) | - |
SKILLSMITH_API_KEY_HMAC_SECRET |
HMAC secret for hashing Custom Integration API keys before DB storage. Required if you invoke webhook_configure or api_key_manage. See setup below. |
- |
The webhook_configure and api_key_manage tools hash secrets server-side via HMAC-SHA-256 before persisting to the shared api_keys table. The HMAC key lives in SKILLSMITH_API_KEY_HMAC_SECRET rather than as a hardcoded constant — defense-in-depth so a leaked DB cannot be reverse-cracked offline.
Distribution model: a single shared secret. The same secret value must be set on every MCP host that creates or verifies Custom Integration API keys, otherwise hashes computed on host A won't match hashes verified on host B.
The MCP server automatically logs errors to disk in a structured, redacted format for debugging and post-incident analysis.
Log Location: ~/.skillsmith/logs/skillsmith-mcp-<YYYY-MM-DD>.jsonl
Log Format: One JSON-line record per error event, with fields:
ts— ISO 8601 timestamplevel— log level (debug,info,warn,error)surface— invocation surface (mcp,cli, orvscode)event— short machine-readable category tagmsg— human-readable message (redacted)err— normalized error object withname,message, and first 20 stack frames (all redacted)correlationId— trace ID that links related log entries, telemetry events, and API calls within a single skill invocationtoolOrCommand— MCP tool name being executedskillId— skill ID when applicableversion— MCP server package versionpid— process IDdetails— additional structured context beyond the fields above, when provided (redacted)
Automatic Redaction: Secrets, tokens, API keys, passwords, connection strings, and PEM keys are automatically redacted before any record is written to disk (SMI-883). This redaction applies to the message, error stack, and any structured context, so logs are always safe to inspect or share without manual review.
Rotation & Retention: Log files rotate daily (one file per UTC calendar date) and are capped at ~10MB each, with .1/.2 continuation files for larger days. Files older than 14 days are automatically deleted on server startup.
Console Mirror: The warn and error levels always mirror to stderr in real-time (matching the level), so terminal output is never silent. Log files add redacted persistence on top, not instead of console output.
Control Logging:
Set either variable to disable or filter logging:
# Disable error logging entirely
export SKILLSMITH_ERROR_LOG_DISABLE=1
# Enable debug-level verbosity for more detail
export SKILLSMITH_LOG_LEVEL=debugValid log levels: debug, info, warn, error (default: warn). Higher levels are included (e.g., warn also logs error).
If the variable is missing or shorter than 32 characters when these tools are invoked, the call fails fast with:
SKILLSMITH_API_KEY_HMAC_SECRET must be set to a 32+ character random secret
before integration tools can be used. Generate one via: openssl rand -base64 48
First-time provisioning (Skillsmith admin, once per organization):
openssl rand -base64 48Distribute that value through a secure channel (e.g., 1Password vault, encrypted onboarding email). Each Team-tier admin sets it on their own MCP host alongside their other secrets — no Supabase credential of any kind is required here; the private registry and Custom Integration tools authenticate as the signed-in user (skillsmith login) plus your personal/team key, never a shared database credential:
Rotation: replace the secret on every host in lockstep. Existing rows in the api_keys table become unverifiable after rotation, so coordinate with affected admins or invalidate keys explicitly. As of 2026-04-26 the table has zero rows, so the first rotation post-launch is free.
If you only use Community/Individual tools (search, install, recommend, etc.), this variable is not needed.
When the native SQLite driver (better-sqlite3) does not load, the MCP server falls back to a WASM driver (sql.js). That fallback can read but not save: it opens an existing database read-only and never writes the file, and on a first run local results stay empty. Searches through the Skillsmith API still work; anything that records locally (installs, sync, quarantine records) fails with a message naming the cause. The server prints one line at startup when this happens.
If better-sqlite3 is not installed at all (an install with --omit=optional), the startup line says so: reinstall without that flag. Otherwise, to get the native driver back, rebuild it, or reinstall with install scripts enabled, then restart your MCP client:
npm rebuild better-sqlite3Set SKILLSMITH_DEBUG=1 to see why the native driver did not load. SKILLSMITH_FORCE_WASM=true forces the WASM driver, for testing only: with it set, the database is read-only.
Skillsmith includes optional, anonymous telemetry to help improve the product. Telemetry is disabled by default.
To enable telemetry:
export SKILLSMITH_TELEMETRY_ENABLED=true
export POSTHOG_API_KEY=your_api_keySee PRIVACY.md for full details on what data is collected and how it's used.