MCP.so
登录

Nestjs Api To Postman Collection

@ChiragKr04

关于 Nestjs Api To Postman Collection

A Model Context Protocol (MCP) tool that automatically converts your NestJS controllers into importable Postman API collections. This eliminates the need to manually create Postman collections or implement complex swagger documentation directly within your code.

基本信息

分类

开发工具

传输方式

stdio

发布者

ChiragKr04

提交者

Chirag Bargoojar

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "Nest-Js-MCP-Postman-Generator": {
      "command": "node",
      "args": [
        "<path_of_cloned_repo>/nestjs-mcp-generator/dist/main.js",
        "start"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Nestjs Api To Postman Collection?

Nestjs Api To Postman Collection is a Model Context Protocol (MCP) server that automatically converts NestJS controllers into importable Postman API collections. It eliminates manual collection creation or Swagger clutter by analyzing controller decorators and generating complete Postman JSON.

How to use Nestjs Api To Postman Collection?

Install dependencies, build the project, then configure your MCP‑compatible AI assistant (e.g., Claude Desktop, VS Code tools) with the command and path to dist/main.js. Alternatively, run the CLI directly: node dist/main.js generate <project-path> -o output.json. Example prompt: "Generate a Postman collection for my user.controller.ts file."

Key features of Nestjs Api To Postman Collection

  • Automatically generates Postman collections from NestJS controllers
  • Detects request/response types and creates meaningful examples
  • Identifies authentication guards and adds auth configurations
  • Captures routes, methods, request bodies, and query parameters
  • Works without modifying your NestJS codebase
  • Integrates with any MCP‑compatible AI assistant

Use cases of Nestjs Api To Postman Collection

  • Quickly generate Postman collections for existing NestJS APIs
  • Keep collections in sync as endpoints change
  • Avoid cluttering code with Swagger/OpenAPI decorators
  • Automate API documentation for testing and team sharing
  • Streamline onboarding by providing ready‑to‑use collections

FAQ from Nestjs Api To Postman Collection

How does this differ from Swagger‑based Postman generation?

It works directly from NestJS controller code without requiring Swagger decorators, keeping your codebase clean. Collections are generated just in time rather than being built from a separate document.

What are the runtime requirements?

Node.js 16 or later and a NestJS project written in TypeScript with a tsconfig.json.

Where does the generated collection data live?

The output is a local JSON file (specified by the -o flag or saved by the AI assistant) that can be imported into Postman.

Does it modify my NestJS source code?

No. The tool reads controllers and decorators without adding any annotations or comments to your project.

What transport and authentication are supported?

It uses the MCP stdio transport (node subprocess). Authentication is handled by detecting NestJS guards and adding corresponding auth headers/parameters to the collection.

评论

开发工具 分类下的更多 MCP 服务器