npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@stack-scribe/mcp

v0.3.0

Published

MCP stdio server for creating AWS architecture SVGs

Downloads

456

Readme

@stack-scribe/mcp

@stack-scribe/mcp is a Model Context Protocol (MCP) stdio server and Node library for validating Stack Scribe diagrams, searching icon-backed node types, and rendering AWS architecture diagrams to SVG files.

The published package enables the first-party AWS icon pack by default and exposes a stack-scribe-mcp CLI for MCP hosts.

Requirements

  • Node.js 20 or newer
  • An MCP host that can launch stdio servers
  • Filesystem access to the output paths you pass to save_diagram

Install

Use from an MCP host

Most MCP hosts can launch the server directly with npx:

{
  "mcpServers": {
    "stack-scribe": {
      "command": "npx",
      "args": ["-y", "@stack-scribe/mcp"]
    }
  }
}

If you prefer a global install:

npm install -g @stack-scribe/mcp

Then point your MCP host at the installed CLI:

{
  "mcpServers": {
    "stack-scribe": {
      "command": "stack-scribe-mcp"
    }
  }
}

What The Server Exposes

@stack-scribe/mcp is a tool-only MCP server over stdio. It does not expose HTTP endpoints or SVG resources.

Tools

  • validate_diagram: Validates a diagram against the Stack Scribe schema and semantic rules.
  • save_diagram: Validates, lays out, renders, and writes an SVG file to a server-side path. Returns metadata only, never raw SVG content.
  • search_icons: Searches canonical AWS node types, shorthand aliases, and icon file paths.
  • list_icon_packs: Lists the icon packs currently enabled by the server.
  • get_diagram_schema: Returns the Diagram JSON Schema.

Diagram Example

The server accepts Stack Scribe diagram JSON. Shorthand aliases such as lambda and s3-bucket are normalized through the AWS icon pack.

{
  "title": "Simple API",
  "nodes": [
    {
      "id": "api",
      "type": "aws.networking-content-delivery.api-gateway"
    },
    {
      "id": "fn",
      "type": "lambda"
    },
    {
      "id": "bucket",
      "type": "s3-bucket"
    }
  ],
  "edges": [
    {
      "from": "api",
      "to": "fn",
      "label": "invoke"
    },
    {
      "from": "fn",
      "to": "bucket",
      "label": "write"
    }
  ]
}

Themes

save_diagram and saveDiagramToFile() accept the built-in render themes:

  • default
  • dark

Notes

  • The current bundled icon surface is AWS-only.
  • save_diagram writes files on the machine where the MCP server is running.
  • Invalid diagrams fail before any SVG is written.
  • The library entrypoint is import-safe and does not auto-start the server.