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

@maybexubin/mcp-toolkit

v1.0.4

Published

A modern, extensible Node.js toolkit for building MCP (Model Context Protocol) servers with automatic tool discovery

Readme

MCP Toolkit 🔧

A modern, extensible Node.js toolkit for building MCP (Model Context Protocol) servers with automatic tool discovery.

npm version License: MIT

✨ Features

  • 🚀 Zero Configuration: Works out of the box with npx
  • 🔍 Auto-Discovery: Automatically finds and loads tools
  • 📦 Extensible: Easy to add new tools following the open/closed principle
  • 🛡️ Type Safe: Built with modern ES modules and validation
  • 🎯 Claude Ready: Perfect integration with Claude Code
  • 📖 Self-Documenting: Tools include rich descriptions and examples

🚀 Quick Start

Using with Claude Code

Add to your Claude Code MCP configuration:

{
  "mcpServers": {
    "mcp-toolkit": {
      "command": "npx",
      "args": ["-y", "@maybexubin/mcp-toolkit"],
      "env": {}
    }
  }
}

Command Line Usage

# Start MCP server
npx @maybexubin/mcp-toolkit

# List available tools
npx @maybexubin/mcp-toolkit --list-tools

# Show version
npx @maybexubin/mcp-toolkit --version

# Show help
npx @maybexubin/mcp-toolkit --help

🔧 Available Tools

Calculator

Perform mathematical calculations and evaluate expressions.

Features:

  • Basic arithmetic: +, -, *, /, %
  • Advanced functions: sqrt, pow, abs, round, ceil, floor
  • Trigonometric: sin, cos, tan, asin, acos, atan
  • Logarithmic: log, log10, log2, exp
  • Constants: PI, E
  • Complex expressions with parentheses

Examples:

// Basic arithmetic
calculator({"expression": "2 + 3 * 4"})  // Result: 14

// Advanced functions
calculator({"expression": "sqrt(16) + pow(2, 3)"})  // Result: 12

// Trigonometry
calculator({"expression": "sin(PI/2)"})  // Result: 1

// Complex expressions
calculator({"expression": "(sqrt(16) + 2) * 3 - 1"})  // Result: 17

🛠️ Development

Adding New Tools

  1. Create a new tool file in src/tools/:
import { BaseTool } from '../base-tool.js';

export class MyNewTool extends BaseTool {
  get name() {
    return 'my-new-tool';
  }

  get description() {
    return 'Description of what this tool does for Claude to understand';
  }

  getInputSchema() {
    return {
      type: 'object',
      properties: {
        input: {
          type: 'string',
          description: 'Input parameter description'
        }
      },
      required: ['input']
    };
  }

  async execute(args) {
    const { input } = args;
    // Tool logic here
    return this.success(`Processed: ${input}`);
  }
}
  1. The tool will be automatically discovered and loaded! ✨

Tool Base Class

All tools extend BaseTool which provides:

  • Validation: Automatic input validation against JSON schema
  • Error Handling: Consistent error responses
  • Success Helpers: Standardized success responses
  • Metadata: Tool definitions for MCP registration

Architecture

mcp-toolkit/
├── index.js              # Main entry point with CLI
├── src/
│   ├── base-tool.js      # Base class for all tools
│   ├── tool-loader.js    # Automatic tool discovery
│   ├── server.js         # MCP server implementation
│   └── tools/            # Tool implementations
│       ├── calculator.js # Calculator tool
│       └── index.js      # Tool exports
├── package.json          # NPM configuration
└── README.md            # This file

📚 API Reference

MCPServer

The main server class that handles MCP protocol communication.

import { MCPServer } from '@maybexubin/mcp-toolkit';

const server = new MCPServer({
  name: 'my-server',
  version: '1.0.0'
});

await server.start();

ToolLoader

Automatically discovers and loads tools from the tools directory.

import { ToolLoader } from '@maybexubin/mcp-toolkit';

const loader = new ToolLoader();
await loader.loadAllTools();

BaseTool

Base class for creating new tools.

import { BaseTool } from '@maybexubin/mcp-toolkit';

class MyTool extends BaseTool {
  // Implementation
}

🔍 Troubleshooting

NPX Issues

If npx @maybexubin/mcp-toolkit doesn't work:

  1. Clear npm cache: npm cache clean --force
  2. Use with -y flag: npx -y @maybexubin/mcp-toolkit
  3. Check Node.js version (requires >=18.0.0)

Claude Code Integration

  1. Ensure the MCP server configuration is in the correct format
  2. Restart Claude Code after adding the configuration
  3. Check Claude Code logs for connection errors

Development Mode

Set environment variables for debugging:

DEBUG=1 node index.js
NODE_ENV=development node index.js

📄 License

MIT License - see the LICENSE file for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

🏷️ Version History

  • 1.0.2 - Simplified architecture, improved npx support, comprehensive calculator tool
  • 1.0.1 - Initial release with basic MCP server functionality

Built with ❤️ for the Claude Code and MCP community