MCP Test Server

MCP Test Server

mcp-server-nodejs-nabadeep25•bynabadeep25

A Model Context Protocol server built with TypeScript and Express.js, offering BMI calculation, weather lookup, and echo tools over Streamable HTTP.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides a BMI calculator tool that computes Body Mass Index from weight in kilograms and height in meters.
  • •Offers a weather service tool that retrieves current weather information for a specified city, optionally with a country code.
  • •Includes an echo tool for testing that returns the provided message.

BEST FOR

  • •Testing and demonstrating MCP server functionality with simple tools.
  • •Developers who want to add new MCP tools using a modular TypeScript architecture.

ABOUT MCP-SERVER-NODEJS-NABADEEP25

MCP Test Server is cataloged as an MCP server attributed to nabadeep25. A Model Context Protocol server built with TypeScript and Express.js, offering BMI calculation, weather lookup, and echo tools over Streamable HTTP. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Test Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transport does the MCP server use?

It uses Streamable HTTP transport.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 4274d059d4bf · 采集于 2026-11-13 13:43:51 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Test Server

A Model Context Protocol (MCP) server implementation with multiple tools for testing and demonstration purposes.

Overview

This server provides three main tools:

  • BMI Calculator: Calculate Body Mass Index from weight and height
  • Weather Service: Get weather information for any city (with API key support)
  • Echo Tool: Simple echo functionality for testing

Features

  • Built with TypeScript and Express.js
  • Streamable HTTP transport for MCP
  • Environment-based configuration
  • Hot reload development support
  • Modular tool architecture

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn package manager

Installation

  1. Clone or download this repository

  2. Install dependencies:

    npm install
    
  3. Copy the environment example file:

    cp .env.example .env
    
  4. (Optional) Add your weather API key to .env:

    WEATHER_API_KEY=your_openweathermap_api_key_here
    

Build and Run

Development Mode

# Build and start with hot reload
npm run dev

Production Mode

# Build the project
npm run build

# Start the server
npm start

The server will start on http://localhost:3000 (or the port specified in your PORT environment variable).

API Endpoint

The MCP server is accessible at:

POST http://localhost:3000/mcp

Available Tools

1. BMI Calculator (calculate-bmi)

Calculate Body Mass Index from weight and height.

Parameters:

  • weightKg (number): Weight in kilograms
  • heightM (number): Height in meters

2. Weather Service (get-weather)

Get current weather information for a city.

Parameters:

  • city (string): City name
  • country (string, optional): Country code (e.g., "IN", "US")

3. Echo Tool (echo)

Simple echo functionality for testing purposes.

Parameters:

  • message (string): Message to echo back

Testing the Server

Using MCP Inspector

For a GUI interface to test MCP server:

  1. Start server:

    npm start
    
  2. In another terminal, run the MCP inspector:

    npm run inspector
    

VS Code Integration

If you're using VS Code with MCP support, add this server to your settings:

{
  "mcp": {
    "servers": {
      "mcp-test-server": {
        "url": "http://localhost:3000/mcp"
      }
    }
  }
}

Project Structure

├── src/
│   ├── index.ts          # Main server file
│   └── tools/            # Tool implementations
│       ├── bmi.ts        # BMI calculator tool
│       ├── weather.ts    # Weather service tool
│       └── echo.ts       # Echo tool
├── build/                # Compiled JavaScript files
├── package.json          # Project configuration
├── tsconfig.json         # TypeScript configuration
├── .env.example          # Environment variables example
└── README.md             # This file

Development

Adding New Tools

  1. Create a new tool file in src/tools/:

    import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
    import { z } from 'zod';
    
    export const myTool = {
      name: 'my-tool',
      schema: {
        param1: z.string(),
        param2: z.number(),
      },
      handler: async ({ param1, param2 }: { param1: string; param2: number }): Promise<CallToolResult> => {
        return {
          content: [
            {
              type: 'text',
              text: `Result: ${param1} - ${param2}`,
            },
          ],
        };
      },
    };
    
  2. Import and register it in src/index.ts:

    import { myTool } from './tools/my-tool.js';
    
    // In the getServer() function:
    server.tool(
      myTool.name,
      'Description of my tool',
      myTool.schema,
      myTool.handler
    );
    

Available Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run watch - Watch for changes and recompile
  • npm run dev - Development mode with hot reload
  • npm start - Start the compiled server
  • npm run inspector - Launch MCP inspector

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Test Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-nodejs-nabadeep25)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools