Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

postmancer

MCP.Pizza Chef: hijaz

Postmancer is an experimental MCP server designed for AI assistants to interact with RESTful APIs via natural language. It enables making HTTP requests, managing API collections, environment variables, and supports multiple authentication methods. Postmancer offers request history and testing features, serving as a specialized alternative to Postman and Insomnia for AI-driven API workflows.

Use This MCP server To

Make HTTP requests to REST APIs via natural language commands Organize and manage API endpoint collections for testing Set and use environment variables with substitution Authenticate API requests using Basic, Bearer, API Key, OAuth2 Review request and response history for debugging Test API responses and validate endpoints Integrate with AI assistants like Claude for API interaction

README

Postmancer

Postmancer

A standalone MCP server for API testing and management, allowing AI assistants to interact with RESTful APIs through natural language.

Overview

Postmancer is an MCP (Model Context Protocol) server that enables AI assistants like Claude to make HTTP requests, manage collections of API endpoints, and test API responses. It provides similar functionality to tools like Postman or Insomnia but designed specifically for AI assistants.

Features

  • Make HTTP requests to any REST API
  • Save and organize requests in collections
  • Set and use environment variables with variable substitution
  • Multiple authentication methods (Basic, Bearer, API Key, OAuth2)
  • Request/response history and testing

Quick Start

Installation

# Install globally
npm install -g postmancer

# Or run directly with npx
npx postmancer

Using with Claude Desktop

Add this to your Claude Desktop configuration file:

  • Windows: %USERPROFILE%\.claude\claude_desktop_config.json
  • macOS/Linux: ~/.claude/claude_desktop_config.json
{
  "mcpServers": {
    "postmancer": {
      "command": "npx",
      "args": ["-y", "postmancer"],
      "env": {
        "LOG_LEVEL": "info"
      }
    }
  }
}

Using with Docker

docker run -i --rm \
  --mount type=bind,src=/path/to/collections,dst=/data/collections \
  postmancer

Available Tools

Postmancer provides the following tools to AI assistants:

  1. http_request - Send HTTP requests to any URL
  2. list_collections - View all your saved API collections
  3. list_requests - View all requests in a collection
  4. save_request - Save a request to a collection
  5. request_from_collection - Execute a saved request
  6. set_environment_variable - Set variables for request templates
  7. get_environment_variables - View all environment variables

Configuration

Configure Postmancer with these environment variables:

  • COLLECTIONS_PATH: Path to store collections (default: ~/.postmancer)
  • LOG_LEVEL: Logging level (debug, info, warn, error) (default: info)
  • POSTMANCER_ENCRYPTION_KEY: Secret key used to encrypt credentials and tokens (generates a random key if not provided)
  • ENCRYPTION_KEY: Secret key used to encrypt environment variables marked as secrets (uses default key if not provided)

For security in production environments, it's strongly recommended to set these encryption keys rather than using the defaults.

License

MIT

postmancer FAQ

How do I install Postmancer?
Install globally with 'npm install -g postmancer' or run directly using 'npx postmancer'.
Can Postmancer handle different authentication methods?
Yes, it supports Basic, Bearer, API Key, and OAuth2 authentication methods.
How does Postmancer integrate with AI assistants?
Postmancer exposes an MCP server interface allowing AI assistants like Claude to make API requests and manage endpoints via natural language.
Does Postmancer support environment variables?
Yes, it allows setting and using environment variables with variable substitution in requests.
Can I save and organize API requests?
Yes, Postmancer lets you save requests in collections for easy management and reuse.
Is there request and response history available?
Yes, Postmancer maintains history for requests and responses to aid debugging and testing.
What platforms can I run Postmancer on?
Postmancer runs on any platform supporting Node.js and npm, including Windows, macOS, and Linux.
How does Postmancer differ from Postman or Insomnia?
Unlike traditional tools, Postmancer is designed specifically as an MCP server for AI assistants to interact with APIs via natural language.