Skip to main content
Glama
ModelBound
by ModelBound

modelbound-mcp

Local-first MCP server for agent skills. Validate, lint, diff, and convert agent skill files across Cursor, Claude, Codex, Kiro, Windsurf, VS Code, and Amazon Q — no account required. Optional cloud sync with ModelBound.

npm License: MIT ModelBound Skill Checks

Why ModelBound?

AI tools come and go. You might use Cursor today, switch to Claude Code tomorrow, and try Kiro next week — but your skills, rules, and context shouldn't be locked into any one of them. ModelBound gives you a single place to store and manage your agent skills, so you can move between tools freely without rebuilding your setup each time. Write a skill once, sync it everywhere, and get more value out of every AI subscription you're already paying for.

Related MCP server: local-skills-mcp

What it does

modelbound-mcp is a small Model Context Protocol server you run locally over stdio. It exposes tools to your IDE / agent using dot-notation naming for navigable discovery:

Local (no API key, no network):

  • ide.detectLayout — find which IDE conventions your repo uses

  • skills.listLocal, skills.readLocal, skills.writeLocal

  • skills.lint — front-matter, token count, broken links, TODO scan, pass / warn / fail checks (scanner h5)

  • skills.flightCheck — Flight Check offline safety scan (injection, exfiltration, secrets, destructive commands, wildcard tools, loop hazards); same rules as npx modelbound check

  • skills.checks — deterministic safety/quality checks without full lint (no numeric score)

  • skills.scaffold — create a skill with default scope constraints

  • skills.reviewStatus, skills.reviewRequest, skills.reviewApprove, skills.reviewReject, skills.reviewGate

  • skills.validateFormat — agentskills.io compliance

  • skills.convert — translate between IDE formats (e.g. Cursor → Claude)

  • skills.diff — compare a local skill with its cloud counterpart

Cloud (with MODELBOUND_API_KEY):

  • cloud.pullSkill, cloud.pushSkill, cloud.search

  • cloud.listSkills — now accepts ai_type and source_platform filters; every row includes ai_type, source_platform, source_path, and repo

  • cloud.resourceTree — returns the team's full hierarchy grouped by platform → top-level dir (.claude/skills, .cursor/rules, .kiro/steering, …) → files. Use this before cloud.listSkills when an orchestrator needs to map context before loading.

  • cloud.installMarketplaceSkill

  • optimization.health

Resource hierarchy

Orchestrators that juggle multiple AI platforms can call cloud.resourceTree once to get a complete map of available skills, rules, hooks, steering files, and system prompts — grouped exactly how each platform expects them on disk. Pair it with the new ai_type / source_platform filters on cloud.listSkills to load only the slice you need. See examples/resource-tree.ts.

The cloud tools are a thin JSON-RPC proxy to mcp.modelbound.co. All business logic stays server-side; this repo never touches your data or secrets.

Migration from 0.1.x — old snake_case names (detect_ide_layout, pull_skill, …) were removed in 0.2.0. The hosted ModelBound MCP server still accepts both forms forever for backward compatibility.

Anti-slop (0.4.x) — trust scanner bumped to h5 with scope-limit, unbounded-wording, dependency, and refactor findings. skills.readLocal now returns checks, scanner_version, review_state, and review_meta. Override default scope limits via .modelbound/task-budgets.json. Use skills.reviewGate in CI to block unapproved skills.

Install

npx modelbound-mcp

Or install globally:

npm i -g modelbound-mcp

Use as an MCP server

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "modelbound": {
      "command": "npx",
      "args": ["-y", "modelbound-mcp"],
      "env": { "MODELBOUND_API_KEY": "mb_live_..." }
    }
  }
}

MODELBOUND_API_KEY is optional. Without it, local tools still work.

See examples/ for Claude Desktop, Kiro, Windsurf, and VS Code configs.

Use as a CLI

modelbound-mcp detect                                  # which IDE layouts exist here?
modelbound-mcp ls                                      # list every skill file
modelbound-mcp lint .cursor/rules/                     # lint a directory
modelbound-mcp lint .codex/skills/                     # lint Codex skills
modelbound-mcp validate ./SKILL.md                     # agentskills.io compliance
modelbound-mcp convert --from cursor --to claude ./rule.mdc > out.md

Tests

npm test              # unit tests (registry parity, checks, review, harness)
npm run smoke         # local MCP tools + CLI subcommands (+ cloud if MODELBOUND_API_KEY set)
npm run test:e2e      # offline anti-slop / review lifecycle

CLI vs MCP tool mapping: docs/PARITY.md.

Contributing

We want help. Specifically:

  • New IDE adapters — Zed, Aider, Continue, JetBrains AI, Cline. See CONTRIBUTING.md for the ~50 line recipe.

  • Linter rules — token estimation accuracy, dead-link detection, format-specific gotchas.

  • Format converters — fidelity improvements between adapter pairs.

Browse good first issues and the roadmap.

Project

Description

ModelBound CLI · npm

Terminal + CI for token optimization, skill pipeline, and version management

Cursor Extension · Marketplace

VS Code/Cursor extension for rules sync and MCP bridge

Cursor Plugin

Cursor slash commands for pipeline, safety checks, and versions

Claude Code Plugin

Claude Code plugin for pipeline, hooks, and skill sync

Dev Packs

Open-source curated AI context packs for engineering teams

Also on Smithery (stdio via npx modelbound-mcp) and the MCP Registry. Install hub: modelbound.co/connect

License

MIT © ModelBound

Available Tools

51 tools
check_harnessA

Check whether a skill is cleared to run unattended. Returns a pass/warn/fail status across the four harness pillars (context, permissions, guardrails, verification) from the skill's latest pipeline run, with the reasons for anything blocking. Call this before using a skill for a task you will not review.

Inputs: skill_id (required).

cloud.installMarketplaceSkillB

Install a public marketplace skill into your library. Requires MODELBOUND_API_KEY.

Inputs: slug (required).

cloud.listSkillsA

List skills in the cloud library. Supports ai_type (skill|hook|steering|system-prompt|rule|agent|memory|spec|instructions|prompt) and source_platform (claude-code|cursor|kiro|amazon-q|copilot|windsurf|codex|agents|modelbound) filters. Each row includes ai_type, source_platform, source_path, and repo for hierarchy-aware orchestration. Requires MODELBOUND_API_KEY.

Inputs: ai_type, source_platform.

cloud.pullSkillB

Pull a skill from the ModelBound cloud library. Response includes ai_type, source_platform, source_path, and repo when known. Requires MODELBOUND_API_KEY.

Inputs: slug (required).

cloud.pushSkillB

Create or update a skill in the cloud library. Requires MODELBOUND_API_KEY.

Inputs: slug (required), body_md (required), title.

cloud.resourceTreeA

Return the team's full AI resource hierarchy grouped by platform → top-level directory (.claude/skills, .cursor/rules, .kiro/steering, …) → files. Use this BEFORE listSkills when an orchestrator needs to map available context before loading. Requires MODELBOUND_API_KEY.

Inputs: repo, platform.

cloud.searchC

Full-text search across all cloud content. Requires MODELBOUND_API_KEY.

Inputs: q (required).

eval.createCaseB

Create a new eval test case (name, input_prompt, optional expected_output, rubric). Requires agent scope.

Inputs: name (required), input_prompt (required), rubric, agent_id, +2 more.

eval.listCasesA

List all eval cases for the team. Requires agent scope.

Inputs: no named parameters.

eval.listResultsC

List past eval results, optionally filtered by eval_case_id.

Inputs: limit, eval_case_id.

eval.runB

Submit actual output for scoring against an eval case. Pass score/pass for manual judging or omit for AI judge.

Inputs: eval_case_id (required), actual_output (required), pass, score, +1 more.

ide.detectLayoutA

Detect which IDE skill/rule layouts exist in the current working directory. Returns the list of matching adapters (e.g. cursor, claude, codex, kiro). Local-only, no network.

Inputs: no named parameters.

optimization.dryRunA

Same as optimization.run but never writes. Returns projected savings. Safe to call from auto-suggest hooks. Requires MODELBOUND_API_KEY.

Inputs: file_id, pack_id, agent_id, skill_id, +1 more.

optimization.healthA

Get token health scores and staleness for your context library. Requires MODELBOUND_API_KEY.

Inputs: no named parameters.

optimization.previewC

Fetch a cached optimized variant of a skill or file without re-running optimization. Useful when an agent wants the lean version for inference but the raw version for editing.

Inputs: file_id, skill_id.

optimization.runA

Run AI token optimization on a cloud skill, file, agent, or pack. Returns tokens_saved, savings_pct, version snapshot id, and a per-file breakdown. Requires MODELBOUND_API_KEY. Server creates a backup version automatically; for local-file edits the caller MUST snapshot via the BackupEngine first.

Inputs: dry_run, file_id, pack_id, agent_id, +2 more.

pipeline.configA

Read or update a skill's pipeline_config (max_latency_ms, enforce_latency/enforce_tests flags, default targets). Pass config to update; omit to read.

Inputs: skill_id (required), config.

pipeline.runA

Run the Skill Development Pipeline (Test → Optimize → Production) on a skill. Streams stage results into skill_pipeline_runs. Returns { run_id, status, version_after }. Use pipeline.status to watch progress. Requires MODELBOUND_API_KEY.

Inputs: skill_id (required), stage, targets, changelog, +3 more.

pipeline.statusA

Get pipeline run status. Pass run_id for a specific run, or skill_id + limit for recent runs. Poll every 1-2s while status === 'running'.

Inputs: limit, run_id, skill_id.

report_runA

Report a finished agent run to ModelBound so each step is tied to the skill that shaped it. Send step summaries only (name, kind, duration, tokens, status) — never prompts or outputs. Failed runs become outcome reports for the skill.

Inputs: steps (required), name, run_id, skill_id.

skill.benchmarkC

Run benchmark latency suite for a skill. Requires MODELBOUND_API_KEY.

Inputs: skill_id (required).

skill.compareVersionsC

Compare two skill versions (e.g. latest vs current). Requires MODELBOUND_API_KEY.

Inputs: skill_id (required), to_version, from_version.

skill.createTestCaseC

Create a saved automated check test case for a skill. Requires skill_id, name, and prompt. Optional notes for grading.

Inputs: name (required), prompt (required), skill_id (required), notes, +1 more.

skill.diffA

Return a unified diff between two versions of a skill (or between the live version and an arbitrary string). Use skill.versions first to find version labels.

Inputs: skill_id (required), from_version (required), to_version, against_body.

skill.findingsB

List safety and quality findings for a skill. Returns findings with stable keys, and ignored_keys. Requires MODELBOUND_API_KEY.

Inputs: skill_id (required).

skill.ignoreFindingB

Ignore a finding by stable key (or class/severity/message). Requires MODELBOUND_API_KEY.

Inputs: skill_id (required), class, message, severity, +1 more.

skill.reliabilityA

Read back how the team's skills have performed in real use (worked / partial / failed over a rolling window). Use it to pick the most reliable skill for a task, or to find the ones that need attention. Requires MODELBOUND_API_KEY.

Inputs: days, skill_id.

skill.report_outcomeA

Report how a skill performed after you used it. Call this once the task that used the skill is finished — it is how the skill gets improved. Keep excerpts short. Requires MODELBOUND_API_KEY.

Inputs: verdict (required), skill_id (required), note, category, +2 more.

skills.checksB

Check a local skill with deterministic heuristics (scanner h5). Returns pass / warn / fail with findings — no numeric score.

Inputs: path (required).

skills.convertA

Convert a skill file from one IDE format to another (e.g. cursor → claude). Round-trips through a canonical {frontmatter, body} representation.

Inputs: to (required), from (required), path (required), outPath.

skills.diffA

Diff a local skill file against its cloud counterpart by slug. Local-side diff is computed here; the cloud half requires MODELBOUND_API_KEY.

Inputs: path (required), slug (required).

skills.flightCheckA

Flight Check: offline safety scan for a skill or prompt (prompt injection, exfiltration, secrets, destructive commands, wildcard tools, loop hazards, clarity, token budget). Pass a file path or raw content. Local-only, zero AI cost. Blocking findings should be fixed before shipping.

Inputs: path, content.

skills.lintA

Lint a skill file: front-matter, token count, broken links, TODO markers. Local-only.

Inputs: path (required), maxTokens.

skills.listLocalA

List all skill / rule files found in the detected IDE directories under the current working directory.

Inputs: adapter.

skills.readLocalA

Read a local skill file (raw contents). Path must be inside the current working directory.

Inputs: path (required).

skills.reviewApproveC

Approve a skill; stores the approved body hash and checks status (pass, warn or fail) at approval time.

Inputs: path (required), notes, reviewed_by.

skills.reviewGateC

CI gate: exit semantics via blocked=true when skill is not approved.

Inputs: path (required).

skills.reviewRejectC

Reject a skill with optional reviewer notes.

Inputs: path (required), notes, reviewed_by.

skills.reviewRequestC

Move a skill to pending_review.

Inputs: path (required).

skills.reviewStatusB

Show review_state, review_meta, check status, and confidence trend for a skill.

Inputs: path (required).

skills.scaffoldC

Create a new SKILL.md with default scope constraints and draft review state.

Inputs: name (required), description (required), path, noScope.

skill.suggestImprovementsC

Suggest skill improvements from findings, tests and real-world outcomes. Requires MODELBOUND_API_KEY.

Inputs: skill_id (required).

skills.validateFormatC

Validate a skill file against the agentskills.io standard.

Inputs: path (required).

skills.writeLocalA

Write a local skill file. Creates parent directories. Path must be inside the current working directory.

Inputs: path (required), contents (required).

skill.testA

Run a single skill test case against the live model. Pass test_case_id for a saved case or prompt + skill_md for an ad-hoc run. Returns adherence_score (1-10), verdict, latency_ms.

Inputs: skill_id (required), prompt, skill_md, test_case_id.

skill.testCasesC

List saved test cases for a skill.

Inputs: skill_id (required).

skill.testRunsC

List recent test runs for a skill (latest first).

Inputs: skill_id (required), limit.

skill.unignoreFindingC

Un-ignore a previously ignored finding. Requires MODELBOUND_API_KEY.

Inputs: skill_id (required), class, message, severity, +1 more.

skill.versionsB

List historical versions of a skill or file (from file_versions). Each entry includes version label, sha, created_at, and the actor that produced it.

Inputs: limit, file_id, skill_id.

sync.fromIdeB

Sync a local skill file from the IDE to cloud and return a repo-linked skill UUID. Requires MODELBOUND_API_KEY.

Inputs: body_md (required), source_ide (required), source_path (required), branch, +1 more.

workspace.setContextA

Set workspace context before skill list/get/test/pipeline ops. Scopes skills to the current repo by default. Requires MODELBOUND_API_KEY.

Inputs: workspace_path (required), file_hints, repo_full_name.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 51 tools

    Disambiguation3/5

    Most tools target distinct actions, but several check/safety tools overlap heavily (skills.checks, skills.flightCheck, check_harness, skill.findings all 'check a skill' with subtly different scopes), and test tools (skill.test, eval.run, skill.benchmark, skill.testRuns) blur together. Detailed descriptions help, but selection still requires careful reading.

    Naming Consistency2/5

    Mix of dot-namespaced and flat snake_case tools (check_harness, report_run) with no unified scheme, and even the namespaces are inconsistent (skills. vs skill.). Method casing is also mixed, e.g. skill.report_outcome (snake) alongside skills.reviewRequest (camelCase).

    Tool Count2/5

    51 tools is heavy for a skill-management server and clearly exceeds the 25+ 'too many' threshold. Multiple families (review, checks, tests, optimization) contain near-duplicate capabilities that inflate the surface beyond what the core purpose requires.

    Completeness4/5

    Broad lifecycle coverage: scaffold/create, read/write, cloud push/pull/list, versioning/diff, review workflow, testing, eval, optimization, and outcome reporting are all present. Only minor gaps remain, and agents can work around them.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers