mcpField
P
Postmancer

Postmancer

Local
github.com/hijazDeveloper Tools29Updated 62w ago

About Postmancer

Postmancer is an experimental MCP server for API testing and management, letting AI assistants call RESTful APIs through natural language. It is intended as an alternative to Postman and Insomnia and is designed for AI assistants.

Key features

  1. 01Send HTTP requests to REST APIs
  2. 02Save and organize requests in collections
  3. 03Environment variables with substitution in templates
  4. 04Basic, Bearer, API Key and OAuth2 authentication
  5. 05Request and response history

Use cases

  1. 01Letting an AI assistant test REST API endpoints
  2. 02Managing and reusing saved API request collections
  3. 03Using environment variables in request templates

MCP support

Postmancer runs as an MCP server and exposes tools such as http_request and save_request to MCP clients like Claude Desktop.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"postmancer": {
"command": "npx",
"args": [
"-y",
"postmancer"
]
}
}
}
Run commandnpx -y postmancer

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmpostmancer

Tools

7

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
urlstringYes
methodenumYesGET | POST | PUT | DELETE | PATCH | HEAD | OPTIONS
headersobjectNo
bodystringNo
query_paramsobjectNo
timeoutnumberNo
authobjectNo
auth.typeenumYesbasic | bearer | oauth2 | api_key | custom
auth.usernamestringNo
auth.passwordstringNo
auth.tokenstringNo
auth.token_typeenumNobearer
auth.keystringNo
auth.valuestringNo
auth.inenumNoheader | query
auth.namestringNo
auth.client_idstringNo
auth.authorization_urlstringNo
auth.token_urlstringNo
auth.redirect_uristringNo
auth.flowenumNoauthorization_code | client_credentials | password | implicit
auth.client_secretstringNo
auth.scopestringNo
auth.headersobjectNo
retrybooleanNo
max_retriesnumberNo
retry_delaynumberNo

Details

From the project README

MseeP.ai Security Assessment Badge

Postmancer

Trust Score

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.