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.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

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.

Upstream README

View this exact version on GitHub

README.md · 4274d059d4bf · Fetched 2026-11-13 13:43:51 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

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