Cover image
Try Now
2025-03-22

Mirror ofhttps://github.com/Nekzus/mcp-server

3 years

Works with Finder

0

Github Watches

1

Github Forks

0

Github Stars

MCP Server Nekzus

Github Workflow npm-version npm-month npm-total Donate

A Model Context Protocol (MCP) server that provides utility tools for development and testing
This implementation is built on top of the official MCP SDK and offers an extensible architecture for adding new tools

🌟 Features

  • 🔄 MCP Protocol Implementation
  • 🛠️ Integrated Utility Tools
  • 📝 Schema Validation with Zod
  • 🚀 ESM Support
  • 🔒 Strict TypeScript Types
  • 🧩 Extensible Architecture for New Tools

🛠️ Available Tools

1. greeting

Generates a personalized greeting message.

Parameters:

  • name (string): Recipient's name

Example:

// Result: 👋 Hello John! Welcome to the MCP server!
{
  name: "John";
}

2. card

Gets a random card from a standard poker deck.

Parameters:

  • No parameters required

Example:

// Result: 🎴 You drew: Ace of ♠️ Spades
{}

3. datetime

Gets the current date and time for a specific timezone.

Parameters:

  • timeZone (string, optional): Timezone identifier (e.g., "America/New_York")
  • locale (string, optional): Locale identifier (e.g., "en-US")

Example:

// Result: 
// 🗓️ Date: March 20, 2024
// ⏰ Time: 7:25:25 PM
// 🌍 Timezone: America/New_York
{
  timeZone: "America/New_York",
  locale: "en-US"
}

4. calculator

Performs mathematical calculations with support for basic and advanced operations.

Parameters:

  • expression (string): Mathematical expression (e.g., "2 + 2 * 3")
  • precision (number, optional): Decimal places in the result (default: 2)

Example:

// Result: 8
{
  expression: "2 + 2 * 3"
}

5. passwordGen

Generates secure passwords with customizable options.

Parameters:

  • length (number, optional): Password length (default: 16)
  • includeNumbers (boolean, optional): Include numbers (default: true)
  • includeSymbols (boolean, optional): Include special characters (default: true)
  • includeUppercase (boolean, optional): Include uppercase letters (default: true)

Example:

// Result: 4v7&9G8$
{
  length: 16,
  includeNumbers: true,
  includeSymbols: true,
  includeUppercase: true
}

6. qrGen

Generates QR codes for text or URLs.

Parameters:

  • text (string): Text or URL to encode
  • size (number, optional): Size in pixels (default: 200)
  • dark (string, optional): Dark module color (default: "#000000")
  • light (string, optional): Light module color (default: "#ffffff")

Example:

// Result: QR code for "https://example.com"
{
  text: "https://example.com"
}

7. kitchenConvert

Converts between common kitchen measurements and weights, including volume-to-weight conversions based on specific ingredients.

Parameters:

  • value (number): Value to convert
  • from (string): Source unit (e.g., "cup", "tbsp", "g", "oz", "ml")
  • to (string): Target unit (e.g., "cup", "tbsp", "g", "oz", "ml")
  • ingredient (string, optional): Ingredient for accurate volume-to-weight conversions

Supported Units:

Volume:

  • ml (milliliters)
  • l (liters)
  • cup (US cup)
  • tbsp (tablespoon)
  • tsp (teaspoon)
  • floz (fluid ounce)

Weight:

  • g (grams)
  • kg (kilograms)
  • oz (ounces)
  • lb (pounds)

Supported Ingredients:

  • water
  • milk
  • flour
  • sugar
  • brown sugar
  • salt
  • butter
  • oil
  • honey
  • maple syrup

Examples:

// Simple volume conversion
// Result: 🔄 Conversion Result:
// • 1 cup = 236.59 ml
{
  value: 1,
  from: "cup",
  to: "ml"
}

// Volume to weight conversion with ingredient
// Result: 🔄 Conversion Result:
// • 1 cup of flour = 140.25 g
{
  value: 1,
  from: "cup",
  to: "g",
  ingredient: "flour"
}

🚀 Usage

As MCP Server

  1. Global Installation:
npm install -g @nekzus/mcp-server
  1. Execution:
npx @nekzus/mcp-server

As a Dependency

import { McpUtilityServer } from "@nekzus/mcp-server";

const server = new McpUtilityServer();
server.start();

🔧 Development

# Clone repository
git clone https://github.com/nekzus/mcp-server.git

# Install dependencies
npm install

# Development mode
npm run dev

# Build
npm run build

# Run
npm start

📁 Project Structure

src/
├── types/          # Type definitions
│   └── index.ts    # Shared types
├── utils/          # Utilities
│   ├── cards.ts    # Card functions
│   ├── datetime.ts # Date/time functions
│   └── schema.ts   # Schema conversion
├── tools/          # Tool implementations
│   └── index.ts    # Tools registry
└── index.ts        # Main entry point

🔍 Technical Details

  • Transport: Uses StdioServerTransport for communication
  • Validation: Converts JSON schemas to Zod for input validation
  • Types: Fully typed implementation with TypeScript
  • Error Handling: Robust error handling and resource cleanup
  • Signals: Handles SIGTERM and SIGINT signals for graceful shutdown

📄 License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

👤 Author

Nekzus

🌟 Support

Give a ⭐️ if this project helped you!

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • momi
  • Provides initial medical assessments and advice.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • justmywyw
  • Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.

  • sligter
  • Lite-MCP-Client是一个基于命令行的轻量级MCP客户端工具

    Reviews

    1 (1)
    Avatar
    user_cmFQrluH
    2025-04-16

    The ExploitDB MCP Server by Cyreslab-AI is an impressive tool that I highly recommend. The intuitive interface and robust features provide an excellent platform for managing and analyzing exploit databases efficiently. The seamless integration and user-friendly approach make it an indispensable asset for cybersecurity professionals. Check it out at https://mcp.so/server/exploitdb-mcp-server/Cyreslab-AI.