Metalsmith Plugin MCP Server

Metalsmith Plugin MCP Server

Provides tools for scaffolding, validating, and maintaining Metalsmith plugins with an opinionated toolkit.

Category
Visit Server

README

Metalsmith Plugin MCP Server

MCP server for scaffolding and validating high-quality Metalsmith plugins.

metalsmith:plugin npm: version license: MIT test coverage Known Vulnerabilities

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

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, no lib/, no microbundle
  • src/index.js using the two-phase plugin factory pattern
  • test/index.test.js using node:test + node:assert/strict against a real Metalsmith instance
  • biome.json for unified lint + format
  • Native test coverage via node --test --experimental-test-coverage
  • README.md, CLAUDE.md, docs/THEORY.md skeletons
  • .github/workflows/test.yml, test-matrix.yml, claude-code.yml
  • .github/dependabot.yml
  • scripts/release.sh for secure manual releases (gh auth token based)

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


Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured