Standalone MCP server for REST API testing and management
npm install postmancerbash
Install globally
npm install -g postmancer
Or run directly with npx
npx postmancer
`
$3
Add this to your Claude Desktop configuration file:
- Windows: %USERPROFILE%\.claude\claude_desktop_config.json
- macOS/Linux: ~/.claude/claude_desktop_config.json
`json
{
"mcpServers": {
"postmancer": {
"command": "npx",
"args": ["-y", "postmancer"],
"env": {
"LOG_LEVEL": "info"
}
}
}
}
`
$3
`bash
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)