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

@netmex/mcp

v1.0.5

Published

A lightweight developer-friendly MCP server toolkit with auto-loading tools.

Readme

Netmex MCP

A lightweight and extendable Model Context Protocol (MCP) server toolkit for building custom tools that integrate with AI assistants.

This package provides a ready-to-use MCP server, a clean structure for defining tools, and the option for developers to add their own tools without modifying the package.

Installation

npm install @netmex/mcp
Or with yarn:
yarn add @netmex/mcp

Usage

After installing, you can run the MCP server using:

npx netmex-mcp

Creating Custom Tools

To add your own tools, create a tool file inside a mcp-tools/ directory in your project root:

Example Tool (TypeScript)

import type { Tool } from "@netmex/mcp/types";

const GreetTool: Tool = {
    name: "greet",
    description: "Returns a friendly greeting",
    inputSchema: {
        type: "object",
        properties: {
            name: { type: "string", description: "Name to greet" }
        },
        required: ["name"]
    },
    handler: async ({ name }) => ({
        content: [
            {
                type: "text",
                text: `Hello, ${name}!`
            }
        ]
    })
};

export default GreetTool;

Using Tools Inside Your Project

Once placed inside mcp-tools/, tools are automatically discovered by the loader and exposed to MCP clients.

No registration needed. No editing package code. Just drop the tool file in place.

Accessing Tool Input

Each tool receives structured arguments, validated according to its inputSchema.

Recommended Directory Layout

your-project/
├── mcp-tools/
│   ├── GreetTool.ts
│   └── AnotherTool.ts
├── node_modules/
├── package.json
└── ...

NPM Plugin Tools

You can also install tools from npm. Any dependency whose name starts with:

netmex-mcp-tool-

will be auto-loaded by the server.

Example:

npm install netmex-mcp-tool-analytics

Handling Errors

If a tool throws or returns an invalid value, the server automatically returns a JSON-RPC error:

{
  "error": {
    "code": -32603,
    "message": "Internal error",
    "data": { "details": "Something went wrong" }
  }
}

Use try/catch inside handlers for custom error responses.

Built-In Tools

This package includes a few tools by default:

  • about
  • hello
  • (more coming soon)

Development

To build the MCP server locally:

npm install
npm run build

To start it directly:

npm run start

More About MCP

For more information on the Model Context Protocol, visit the official MCP documentation.

License

This project is licensed under the MIT License.