Skip to main content
Glama
OpenSkillMapper

OpenSkillMapper

OpenSkillMapper

OpenSkillMapper is a small MCP service for finding Agent Skills and loading the exact SKILL.md files an agent selects. It uses the public skills.sh index for discovery and verifies each selected public GitHub package at an immutable commit before serving it. No model calls, background service, or required third-party Python dependencies.

Quickstart

Requires Python 3.10+. Install a tested, pinned wheel in an isolated environment:

uv tool install /path/to/openskillmapper-0.15.1-py3-none-any.whl

Use standard MCP stdio or optional Streamable HTTP (loopback by default):

osm mcp
osm mcp --transport http

The HTTP endpoint defaults to http://127.0.0.1:8765/mcp. For common JSON-based stdio configuration, use absolute paths:

{
  "mcpServers": {
    "openskillmapper": {
      "command": "/path/to/osm",
      "args": ["mcp", "--cache-dir", "/path/to/cache"]
    }
  }
}

MCP tools

Tool

Behavior

search_skills(query, limit=10)

Returns skill_id, name, description, source, token_estimate, installs, stars, declared_license, repository_pushed_at, and verification without returning instructions. Unknown metadata is null. errors reports index failures; network counts requests, response-body bytes, and cache hits, including enrichment and optional automatic verification.

load_skills(skill_ids, token_budget?)

Loads up to 20 exact IDs in input order. Returns the original SKILL.md text and inventories supporting files without returning their bodies. Checks trust, license, static security, and integrity. Each unsuccessful ID has an error_code and a human-readable reason in failed; other IDs still load. The optional budget skips whole skills rather than truncating them.

load_skill_file(skill_id, file_path, offset?, max_chars?)

Reads a specific hash-verified UTF-8 supporting file with pagination. Refuses unverified paths and never executes files.

Prefer 1–3 words per search expression and separate independent capabilities with commas, for example game-design, playwright, neural-network. Avoid long or overly specific queries. If the results are insufficient or the selected skill cannot be loaded, search again with broader keywords. This is guidance, not a query limit or an automatic retry.

Search ranks provider hits and local metadata matches together by query relevance, installs, GitHub stars, and provider order. Verification is a bonus rather than a guarantee of first place; rejected, missing, and known older revisions are demoted. verified_at_ingestion is local; verified_at_revision is a historical GitHub verification at the returned pinned_revision, even after LFU eviction. Loading still checks integrity. rejected_at_revision includes the rejected SHA, error_code, and reason.

Search may enrich up to three leading incomplete candidates. A locally known path and commit allow a direct, size-limited SKILL.md read without fetching a tree or package. declared_license is a claim, not a license verdict; repository_pushed_at dates the last push to the repository, not an edit to that particular skill. Metadata and failure cooldowns survive restarts. Enrichment never grants verification or adds package files to the LFU cache.

When a load or automatic check reads a complete GitHub tree, it also catalogs the repository's SKILL.md paths without extra requests or sibling downloads. Subsequent related searches can find those entries even offline. Results from the tree include skill_path and observed_revision; the latter is the last observed commit, not necessarily today's upstream head or the pinned_revision of a verified package. Newly discovered siblings are unverified; description and token estimates remain unset until available from the provider or a metadata read. missing_at_revision means the path was absent from the last complete tree; it is not promoted or automatically verified. Explicitly loaded historical packages remain usable while cached and intact.

With a comparable verified match, search may check one new candidate: at least 2× the best known verified count and at least 1,000 more installs or 500 more GitHub stars. If stars are missing, search may use its one candidate slot to look up public repository metadata. With no comparable baseline, an explicit load can seed the catalog. The agent still chooses which IDs to load; popularity never grants trust. --offline disables index queries and new remote verification; verified catalog metadata and cached packages remain usable. Do not submit secrets or private project details in online queries.

Optional tools: refresh_skills for explicit source management (--sources-config) and audit_skill for directories explicitly allowed with --allow-dir. MCP resources expose ingested local-catalog skills. Search does not rescan explicitly ingested sources.

CLI and Python

osm search 'CSS, SwiftUI, Playwright, PostgreSQL' --limit 8 --json
osm load microsoft/playwright-cli/playwright-cli mattpocock/skills/tdd --json

osm ingest --source ./skills --db ./catalog.db
osm search 'browser testing' --db ./catalog.db --offline --json
osm verify --db ./catalog.db --reaudit
from openskillmapper import IndexedSkills, SkillCatalog

catalog = SkillCatalog.load_sqlite("./catalog.db")  # empty catalog if absent
mapper = IndexedSkills("./cache")
metadata = mapper.search(catalog, "Playwright, browser testing", limit=5)
# Select IDs yourself; ranked candidates are not automatically trusted.
pack = mapper.load(catalog, ["openai/skills/playwright"])

Explicit sync, check-updates and update commands continue to manage the local catalog and source pins. See examples/trusted-sources.json.

Trust and cache

On a cache miss, the loader checks that GitHub confirms the requested repository is public, pins its default branch to the current commit, and uses that commit's tree to locate the package. It downloads only the package and applicable license files, not a clone or archive. It checks Git blob hashes, verifies open-source license evidence, runs the static scanner, and requires exact SHA-256 inventory matches on reads. Install counts do not affect verification. Static auditing is not a security guarantee; the service never runs package code.

--cache-dir stores bounded search metadata and a verified-package LFU cache (default 128 packages / 64 MiB; --cache-max-skills / --cache-max-bytes). Eviction uses lowest successful load count, then oldest use; metadata and usage history survive eviction. The loader rejects over-limit packages instead of silently dropping supporting files (16 files, 768 KiB total, 256 KiB per file). For a root SKILL.md it inspects the standard package directories (references, templates, scripts, assets) and license evidence, not unrelated repository files. Keep the cache and source manifest writable only by the server account.

Upgrading to 0.12: Remove --sources-config from osm load and sources_config from IndexedSkills(...). For osm mcp, keep the flag only if you use explicit refresh_skills; it no longer restricts remote loads. Use --offline to disable new public lookups. Existing verified indexed-v1 packages remain at their recorded commits while cached. Use a fresh --cache-dir to resolve current commits immediately. Keep the previous verified wheel and its checksum for rollback.

Related MCP server: ThirdBrain skills-mcp

Development and evidence

pip install -e '.[dev]'
pytest -q
uv build --wheel
python benchmarks/indexed_mcp.py --cli /path/to/isolated/osm

See live indexed search measurements, architecture, and the security policy. Historical retrieval and agent A/B results describe earlier versions, not this release.

Licensed under Apache-2.0. See NOTICE.

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
      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
      A
      quality
      B
      maintenance
      Enables MCP hosts to discover, browse, and load Agent Skills from one or many SKILL.md libraries over the Model Context Protocol, with namespaced libraries, search/list/get tools, progressive disclosure, and a digest-verified pull client for syncing skills to disk.
      7
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to discover, search, and load agent skills from many sources, including other agents' skill directories, Claude Code plugin marketplaces, and remote git repositories, with no copying or syncing required.
      614 npm
      8
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to discover, load, and recommend versioned skills from a self-hosted library over MCP, with scoped access and immutable revisions.
      284
      MIT