Skip to main content
Glama
NestJS MCP Server

NestJS MCP Server

by RenzoReccio

Description

This repository demonstrates a MCP implementation with NestJS

Related MCP server: MCP Test Server

Installation

$ npm install

Running the Application

# Development mode
$ npm run start

# Watch mode
$ npm run start:dev

# Production mode
$ npm run start:prod

Run MCP Playground

$ npx @modelcontextprotocol/inspector@0.16.2

More information: https://modelcontextprotocol.io/

Testing

# Unit tests
$ npm run test

# End-to-end tests
$ npm run test:e2e

# Test coverage
$ npm run test:cov

Docker

You can run the application using Docker for a consistent and isolated environment.

Build the Docker Image

$ docker build -t nestjs-mcp .

Run the Docker Container

$ docker run -p 3000:3000 nestjs-mcp

Stop the Docker Container

To stop the running container, find its container ID and stop it:

$ docker ps
$ docker stop <container_id>

Author

  • Renzo Reccio

Stay Connected

Stay updated with the latest developments and news related to this project.

Available Tools

2 tools
weather-toolC

Returns weather information with progress updates

Inputs: name.

weather-tool-interactiveC

Create new weather data interactively

Inputs: name (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 2 tools

    Disambiguation3/5

    The two tools do have different actions (create vs. retrieve weather data), but the names are very similar and 'weather-tool' is generic enough that an agent may need to parse descriptions carefully. The server name also does not clarify the weather-focused tool surface.

    Naming Consistency4/5

    Both names use consistent kebab-case with a shared 'weather-tool' prefix, so the pattern is readable. However, neither name uses an action verb, and the base name 'weather-tool' is vague compared with 'weather-tool-interactive'.

    Tool Count3/5

    Two tools is borderline thin for a weather data server, especially since one is a create operation and one is a read operation. It is not an extreme mismatch, but the surface feels minimal.

    Completeness3/5

    The set covers create and read-style weather operations, but there are notable gaps such as update, delete, listing/history, or forecast operations. Agents can perform basic tasks but will hit dead ends for lifecycle management.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A TypeScript-based test implementation for the Model Context Protocol (MCP) with example configurations and Jest test cases. Provides a development foundation for building and testing MCP server functionality.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A comprehensive reference implementation demonstrating all features of the Model Context Protocol (MCP) specification, serving as documentation, learning resource, and testing tool for MCP implementations.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A NestJS module for building Model Context Protocol (MCP) servers using decorators to expose services as tools, resources, and prompts. It features auto-discovery, a built-in playground UI, and support for multiple transports including SSE and Stdio.
      19 npm
      MIT