Back to Home
hmake98 icon

nestjs-mcp

Verified Safe

by hmake98

Overview

A NestJS library for integrating the Model Context Protocol (MCP) into applications, enabling decorator-based development of MCP servers that expose tools, resources, and prompts.

Installation

Run Command
npm start

Environment Variables

  • MCP_API_KEY
  • MCP_SERVER_NAME
  • MCP_SERVER_VERSION
  • MCP_LOG_LEVEL

Security Notes

The library is well-structured and follows NestJS best practices. It correctly uses `readFileSync` for static internal files (playground HTML) and employs `axios` for client-side introspection, which are standard practices. Transport adapters (`grpc`, `websocket`, `redis`) bind to network interfaces, which is expected server behavior; network exposure should be managed through deployment configurations. No `eval` or arbitrary code execution from untrusted input was found. Input validation for MCP methods leverages Zod schemas. No hardcoded production secrets were identified.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-11-27

Tags

NestJSMCPAILLMJSON-RPC