MCP Server built with NestJS

MCP Server built with NestJS

mcp-serverv2•byklever24v

A modular, extensible NestJS MCP server that lets LLMs and external clients call specialized tools over HTTP, with each tool registered with a name, a Zod-validated input schema and a handler function.

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

WHAT IT DOES

  • •Exposes reusable tools including calculator, temperature, filesystem and code-analyzer-local.
  • •Provides a calculator tool performing basic math operations (add, subtract, multiply, divide).
  • •Includes a filesystem tool that reads, writes or deletes files.
  • •Includes a code analyzer tool that analyzes project files and generates a descriptive markdown file.

BEST FOR

  • •Developers building LLM agents that need to call specialized tools over HTTP.
  • •Projects that need structured validation of LLM outputs with Zod.

ABOUT MCP-SERVERV2

MCP Server built with NestJS is cataloged as an MCP server attributed to klever24v. A modular, extensible NestJS MCP server that lets LLMs and external clients call specialized tools over HTTP, with each tool registered with a name, a Zod-validated input schema and a handler function. 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 Server built with NestJS 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 endpoint are the tools available through?

All tools are available through the POST /mcp endpoint.

How is tool input validated?

Each tool is registered with an input schema validated with Zod.

上游原版 README

在 GitHub 查看同一版本原文

README.md · e1b90b074af3 · 采集于 2026-11-13 11:21:38 UTC

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

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

🧠 MCP Server con NestJS

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Discord Backers on Open Collective Sponsors on Open Collective Donate us Support us Follow us on Twitter


Este proyecto es un servidor modular extensible construido con NestJS que actúa como un MCP (Model Context Protocol) Server. Su propósito es permitir que modelos LLM (como Claude, GPT, etc.) o clientes externos puedan interactuar con una colección de herramientas especializadas a través de peticiones HTTP. Cada herramienta es registrada dinámicamente con un nombre, un esquema de entrada validado con Zod, y una función handler que ejecuta su lógica.

🚀 Características

  • ✨ Arquitectura modular (basada en herramientas).
  • 📦 Herramientas reutilizables: calculator, temperature, filesystem, code-analyzer-local.
  • 🧠 Preparado para integrarse con LLMs.
  • 📝 Generación automática de archivos Markdown con descripciones de código.
  • 📁 Soporte para lectura/escritura/eliminación de archivos.
  • 🔧 Configuración con .env y rutas dinámicas.

📁 Estructura del Proyecto

src/
├── docs/                         # Resultados en Markdown
├── mcp/                          # Módulo MCP con controlador y servicio
├── tools/                        # Herramientas disponibles
│   ├── calculator.tool.ts
│   ├── code-analyzer-local.tool.ts
│   ├── filesystem.tool.ts
│   ├── temperature.tool.ts
│   └── index.ts
├── app.module.ts
├── main.ts

🧰 Herramientas Disponibles

Todas las herramientas están disponibles mediante el endpoint:
POST /mcp

🔹 calculator

  • Descripción: Realiza operaciones matemáticas básicas.
  • Parámetros:
    • a (number)
    • b (number)
    • operation: "add", "subtract", "multiply", "divide"
  • Ejemplo:
{
  "toolName": "calculator",
  "params": {
    "a": 10,
    "b": 2,
    "operation": "multiply"
  }
}

🔹 temperature

  • Descripción: Devuelve una temperatura ficticia basada en un prompt.
  • Parámetros:
    • prompt (string)
  • Ejemplo:
{
  "toolName": "temperature",
  "params": {
    "prompt": "Temperatura en Madrid"
  }
}

🔹 filesystem

  • Descripción: Lee, escribe o elimina archivos del sistema.
  • Parámetros:
    • path (string)
    • action: "read", "write", "delete"
    • content (string, opcional): Requerido si action = write
  • Ejemplo:
{
  "toolName": "filesystem",
  "params": {
    "path": "src/main.ts",
    "action": "read"
  }
}

🔹 code-analyzer-local

  • Descripción: Analiza archivos de un proyecto y genera un .md descriptivo.
  • Parámetros:
    • directory (string): Carpeta a analizar.
    • outputName (string, opcional): Nombre del archivo de salida.
  • Ejemplo:
{
  "toolName": "code-analyzer-local",
  "params": {
    "directory": "mcp-server/src"
  }
}

🛡️ Validación con Zod

¿Qué es Zod?

Zod es una biblioteca de validación y parsing de esquemas para TypeScript. Permite definir estructuras de datos de forma declarativa y luego validar que los datos cumplan con esos esquemas. Es especialmente útil al trabajar con Modelos de Lenguaje (LLMs), donde la salida puede variar o no seguir una estructura estricta.

¿Para qué se usa en este proyecto?

Zod se utiliza para validar las respuestas generadas por el modelo LLM y asegurarse de que cumplen con el formato esperado. Esto permite:

  • Detectar errores de estructura en tiempo de ejecución.
  • Garantizar que la información recibida sea procesable por otras partes del sistema.
  • Mejorar la robustez de los agentes o pipelines basados en LLM.

📦 Instalación

npm install zod

---
Usamos Zod para definir y validar esta estructura:
import { z } from "zod";

// Definición del esquema esperado
const TaskSchema = z.object({
  title: z.string(),
  completed: z.boolean(),
});

// Ejemplo de salida de un LLM (como texto JSON)
const llmOutput = `{
  "title": "Escribir documentación",
  "completed": false
}`;

try {
  const parsed = TaskSchema.parse(JSON.parse(llmOutput));
  console.log("✅ Datos válidos:", parsed);
} catch (err) {
  console.error("❌ Validación fallida:", err);
}


## ⚙️ Configuración `.env`

```env
PORT=3000
ANALYSIS_DIR=./src/docs

🧪 Probar el servidor

npm install
$ npm run start:dev 

Consultar herramientas:

curl -X POST http://localhost:3000/mcp -H "Content-Type: application/json" -d '{"toolName":"calculator","params":{"a":5,"b":3,"operation":"add"}}'

Deployment

When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the deployment documentation for more information.

If you are looking for a cloud-based platform to deploy your NestJS application, check out Mau, our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:

$ npm install -g @nestjs/mau
$ mau deploy

With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.

Resources

Check out a few resources that may come in handy when working with NestJS:

  • Visit the NestJS Documentation to learn more about the framework.
  • For questions and support, please visit our Discord channel.
  • To dive deeper and get more hands-on experience, check out our official video courses.
  • Deploy your application to AWS with the help of NestJS Mau in just a few clicks.
  • Visualize your application graph and interact with the NestJS application in real-time using NestJS Devtools.
  • Need help with your project (part-time to full-time)? Check out our official enterprise support.
  • To stay in the loop and get updates, follow us on X and LinkedIn.
  • Looking for a job, or have a job to offer? Check out our official Jobs board.

🧑‍💻 Autor

Desarrollado por klever - 2025


📝 Licencia

Nest is MIT licensed. Este proyecto está bajo la licencia MIT.

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 Server built with NestJS 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-serverv2)

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