Labsco
shannonlal logo

Postman MCP Server

โ˜… 84

from shannonlal

Run Postman collections using Newman, with support for environment and global variables.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Postman MCP Server

smithery badge

An MCP (Model Context Protocol) server that enables running Postman collections using Newman. This server allows LLMs to execute API tests and get detailed results through a standardized interface.

MCP Postman Server Demo

Postman Server MCP server

Features

  • Run Postman collections using Newman
  • Support for environment files
  • Support for global variables
  • Detailed test results including:
    • Overall success/failure status
    • Test summary (total, passed, failed)
    • Detailed failure information
    • Execution timings

Development

Project Structure

src/
  โ”œโ”€โ”€ index.ts           # Entry point
  โ”œโ”€โ”€ server/
  โ”‚   โ”œโ”€โ”€ server.ts     # MCP Server implementation
  โ”‚   โ””โ”€โ”€ types.ts      # Type definitions
  โ””โ”€โ”€ newman/
      โ””โ”€โ”€ runner.ts     # Newman runner implementation
test/
  โ”œโ”€โ”€ server.test.ts    # Server tests
  โ”œโ”€โ”€ newman-runner.test.ts  # Runner tests
  โ””โ”€โ”€ fixtures/         # Test fixtures
      โ””โ”€โ”€ sample-collection.json

Running Tests

# Run tests
pnpm test

# Run tests with coverage
pnpm test:coverage

Building

# Build the project
pnpm build

# Clean build artifacts
pnpm clean