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

fastmcp-template

v0.0.1

Published

A minimal template for publishing a Fast MCP project.

Downloads

4

Readme

FastMCP Template

A minimal template for publishing a Fast MCP project. This project provides a lightweight starting point for developing and publishing FastMCP servers.

Purpose

This template was created as a minimal publishable FastMCP template. Since n8n mcp client and Cherry Studio can only use npx in a stateless manner, many Python MCP servers would benefit from being rewritten in JavaScript for better usability. This template serves as a starting point for such development.

Features

  • Simple and minimal implementation
  • Ready to publish
  • Stateless design for compatibility with npx
  • TypeScript support
  • Easy to extend and customize

Quick Start

For more detailed usage and advanced features, please visit the FastMCP GitHub repository.

To develop a new tool for your FastMCP server, follow these steps to modify the src/server.ts file:

# Original file content (starting code)
#!/usr/bin/env node
import { FastMCP, UserError } from "fastmcp";
import { z } from "zod";

const server = new FastMCP({
  name: "FastMCP Minimal implementation",
  version: "0.0.1",
});

server.addTool({
  name: "add",
  description: "Add two numbers",
  parameters: z.object({
    a: z.number(),
    b: z.number(),
  }),
  execute: async (args) => {
    if (false) {
      throw new UserError("Error Message.");
    }

    return String(args.a + args.b);
  },
});

server.start({
  transportType: "stdio",
});

Now, let's add a new tool! For example, you can add a random number generator tool:

#!/usr/bin/env node
import { FastMCP, UserError } from "fastmcp";
import { z } from "zod";

const server = new FastMCP({
  name: "FastMCP Minimal implementation",
  version: "0.0.1",
});

server.addTool({
  name: "add",
  description: "Add two numbers",
  parameters: z.object({
    a: z.number(),
    b: z.number(),
  }),
  execute: async (args) => {
    if (false) {
      throw new UserError("Error Message.");
    }

    return String(args.a + args.b);
  },
});

+ // Add a new random number generator tool
+ server.addTool({
+   name: "random",
+   description: "Generate a random number between min and max (inclusive)",
+   parameters: z.object({
+     min: z.number().default(0),
+     max: z.number().default(100),
+   }),
+   execute: async (args) => {
+     const min = Math.ceil(args.min);
+     const max = Math.floor(args.max);
+     const result = Math.floor(Math.random() * (max - min + 1)) + min;
+     return String(result);
+   },
+ });

server.start({
  transportType: "stdio",
});

For more comprehensive examples and advanced usage patterns, refer to the FastMCP documentation.

Running Your Server

Development

npm run dev

Inspection

npm run inspect

Production

npm run start

How to use with Claude Desktop?

Using the Published Package (Stateless Execution)

After publishing to npm, you can use the package in a stateless manner with npx:

{
  "mcpServers": {
    "fastmcp-template": {
      "command": "npx",
      "args": [
        "fastmcp-template"
      ],
      "env": {
        "NODE_ENV": "production"
      }
    }
  }
}

Using a Local Development Version

For local development or custom versions:

{
  "mcpServers": {
    "my-mcp-server": {
      "command": "npx",
      "args": [
        "tsx",
        "/PATH/TO/YOUR_PROJECT/src/server.ts"
      ],
      "env": {
        "YOUR_ENV_VAR": "value"
      }
    }
  }
}

Using from a Custom Registry

If you're using a private npm registry:

{
  "mcpServers": {
    "fastmcp-template": {
      "command": "npx",
      "args": [
        "--registry=https://your-private-registry.com",
        "fastmcp-template"
      ],
      "env": {
        "NODE_ENV": "production"
      }
    }
  }
}

Issues and Contributions

If you encounter any issues or would like to contribute to this project, please visit our GitHub repository.

  • Report issues: [https://github.com/stephen9412/fastmcp-template/issues]
  • Submit contributions: Create a pull request on our GitHub repository

License

MIT