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

@workingmodel/create-mcp-server

v1.0.0

Published

Stop wiring up MCP boilerplate by hand. Scaffold a production-ready MCP server with typed tools, local inspector, and CI in under 60 seconds.

Readme

@workingmodel/create-mcp-server

Stop wiring up MCP boilerplate by hand. Scaffold a production-ready MCP server with typed tools, local inspector, and CI in under 60 seconds. Developed by Working Model.

npm version npm downloads license


Install

npx @workingmodel/create-mcp-server my-server

Usage

npx @workingmodel/create-mcp-server my-server
# → interactive wizard
# → installs dependencies
# → ready in < 60 seconds
cd my-server
npm run dev          # start server in watch mode
npm run inspector    # build + open MCP Inspector UI
npm run test         # run unit tests
npm run validate     # typecheck + tests

Templates

| Template | What's included | |----------|----------------| | standard (default) | Tool registry, typed defineTool(), tests, inspector harness, SSE entry point | | minimal | Single index.ts, one example tool — maximum flexibility | | full | Everything in standard + MCP resources, prompts, auth stub, Docker |

Typed tools

The defineTool() helper converts your Zod schema into MCP-compatible JSON Schema automatically, with full TypeScript inference in the handler:

import { z } from "zod";
import { defineTool, text } from "./lib/tool-builder.js";

export const getWeatherTool = defineTool({
  name: "get-weather",
  description: "Get current weather for a location",
  input: z.object({
    location: z.string().describe("City name"),
    units: z.enum(["celsius", "fahrenheit"]).default("celsius"),
  }),
  handler: async ({ location, units }) => {
    // location: string, units: "celsius" | "fahrenheit" — fully typed
    return text(`Weather in ${location}: 22${units === "celsius" ? "°C" : "°F"}`);
  },
});

Register it by adding to src/tools/index.ts:

import { getWeatherTool } from "./get-weather.js";
export const tools = [echoTool, getWeatherTool];

Or use the built-in generator — from inside your project:

npx create-mcp-server add tool get-weather
# → creates src/tools/get-weather.ts (typed, with handler stub)
# → creates src/tools/__tests__/get-weather.test.ts
# → auto-registers in src/tools/index.ts

Transport options

stdio (default) — for Claude Desktop, Cursor, Windsurf, and local clients

SSE — for remote HTTP clients. Select SSE in the wizard and your project gets a node:http server with session routing at GET /sse + POST /messages:

npm run dev:sse     # start SSE server on http://localhost:3000/sse
npm run start:sse   # production

Connecting to Claude Desktop

After running npm run build, add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "my-server": {
      "command": "node",
      "args": ["/absolute/path/to/my-server/dist/index.js"]
    }
  }
}

CLI reference

npx @workingmodel/create-mcp-server [project-name] [flags]
npx @workingmodel/create-mcp-server add tool <tool-name>

Flags:
  --template, -t  Template to use: minimal, standard (default), full
  --yes, -y       Skip prompts, use defaults
  --version, -v   Print version
  --help, -h      Show help

Examples:
  npx @workingmodel/create-mcp-server my-server
  npx @workingmodel/create-mcp-server my-server --yes
  npx @workingmodel/create-mcp-server my-server --template full
  npx @workingmodel/create-mcp-server add tool send-email

Why This Exists

Every MCP server starts the same way: copy someone's example repo, rename a few things, wire up transport, figure out why types aren't inferring, add tests later (or not). This scaffolds the boring part correctly so you can start on the part that actually matters — the tools. Opinionated enough to save you an hour, minimal enough to stay out of your way.


More tools →

More tools from Working Model → workingmodel.co