Metalsmith Plugin MCP Server
Provides tools for scaffolding, validating, and maintaining Metalsmith plugins with an opinionated toolkit.
README
Metalsmith Plugin MCP Server
MCP server for scaffolding and validating high-quality Metalsmith plugins.
This MCP (Model Context Protocol) server gives Claude and other AI
clients a small, opinionated toolkit for creating and maintaining
Metalsmith plugins. Scaffolded plugins are ESM-only (Node 22+), use
Biome for unified lint + format, and run tests via the native
node:test runner with native coverage. CommonJS consumers can still
require() ESM-only plugins via Node 22's stable require(esm).
Use it two ways: as an MCP server inside Claude Desktop / Claude Code,
or directly from the terminal with npx.
Documentation
- docs/tools.md — per-tool MCP reference (options, examples, validation rules)
- docs/cli.md — full CLI command reference
- docs/setup.md — installing the server in Claude Desktop or Claude Code
- MIGRATION.md — upgrading existing plugins to the current scaffold
- CHANGELOG.md / GitHub releases — version history
- CONTRIBUTING.md — contributing guidelines
- TESTING.md — testing the server locally
- RELEASE.md — release process
Installation
npm install -g metalsmith-plugin-mcp-server
Or use directly with npx (no install):
npx metalsmith-plugin-mcp-server --help
Quick start
Scaffold a new plugin:
npx metalsmith-plugin-mcp-server scaffold metalsmith-my-plugin "Processes markdown files" ./plugins
Validate an existing plugin:
npx metalsmith-plugin-mcp-server validate ./metalsmith-my-plugin
Use with Claude Code:
claude mcp add metalsmith-plugin npx "metalsmith-plugin-mcp-server@latest" "server"
Then in Claude: "Create a Metalsmith plugin called metalsmith-json-feed that generates JSON feeds from markdown files." See docs/setup.md for the full setup, including Claude Desktop config.
Available tools
| Tool | What it does |
|---|---|
plugin-scaffold |
Generate a complete plugin (src/, test/, package.json, README.md, CLAUDE.md, GitHub workflows). Use only for new plugins in an empty directory. |
validate |
Check an existing plugin against 17 quality checks (structure, tests, docs, package shape, native methods, marketing language, hardcoded values, etc.) |
audit-plugin |
Validation + lint + tests + coverage in one health report |
configs |
Generate config files (biome.json, .release-it.json, .editorconfig, .gitignore) |
show-template |
Display a canonical config template (release-it, package-scripts, biome, etc.) |
list-templates |
List every template the server can hand back |
get-template |
Retrieve a specific template file verbatim |
install-claude-md |
Add or smart-merge a CLAUDE.md into an existing plugin |
diff-template |
Detect drift between a plugin and the current scaffold templates |
update-deps |
Update dependencies via npm-check-updates |
The CLI adds batch-audit for processing every plugin in a directory.
See docs/tools.md for full options, examples, and the complete list of validation checks.
What a scaffolded plugin looks like
A plugin-scaffold call produces:
- ESM-only
package.json("type": "module","exports": "./src/index.js") — no build step, nolib/, no microbundle src/index.jsusing the two-phase plugin factory patterntest/index.test.jsusingnode:test+node:assert/strictagainst a real Metalsmith instancebiome.jsonfor unified lint + format- Native test coverage via
node --test --experimental-test-coverage README.md,CLAUDE.md,docs/THEORY.mdskeletons.github/workflows/test.yml,test-matrix.yml,claude-code.yml.github/dependabot.ymlscripts/release.shfor secure manual releases (gh auth tokenbased)
The scaffold enforces use of Metalsmith's native methods
(metalsmith.debug(), metalsmith.match(), metalsmith.env(),
metalsmith.path()) over external debug, minimatch, process.env,
or path.join.
Validation philosophy
The validate tool returns four categories:
- Passed — requirement met
- Failed — must-fix
- Warnings — quality concern (low coverage, unfilled THEORY.md stub)
- Recommendations — optional, with the exact command you can paste
Naming and license are recommendations, never failures — author choice
is respected. Each check lives in its own file under
src/tools/validate/checks/ and is
described in docs/tools.md.
Plugin types
The scaffold supports the three common plugin shapes:
- Processor — transforms file contents (markdown rendering, image optimization)
- Transformer — reshapes file metadata or structure (permalinks, collections)
- Validator — checks files against rules (HTML validation, link checking)
Contributing
See CONTRIBUTING.md. Before any commit:
npm run lint
npm run format
npm test
Resources
License
MIT © Werner Glinka
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。