nestjs-mcp
Verified Safeby 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
npm startEnvironment 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
boilerplate-mcp-server
Provides a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript to connect AI assistants with external APIs and data sources, exemplified by an IP geolocation tool.
mcp
An MCP server providing a set of mathematical tools (calculator functions) for remote execution via the Model Context Protocol.
nestjs-starter
A production-ready NestJS boilerplate for building scalable, enterprise-grade APIs with JWT authentication, PostgreSQL/Prisma, AWS S3/SES, Bull/Redis queues, Docker/Kubernetes support, and AI capabilities via Model Context Protocol (MCP).
mcp-agent-kit
Simplifies the creation and management of AI agents, chatbots, and Model Context Protocol (MCP) servers with various LLM providers.