Cover image
Try Now
2025-03-30

实验性MCP服务器REST客户端,旨在替代工具邮递员和失眠症

3 years

Works with Finder

1

Github Watches

0

Github Forks

4

Github Stars

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

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • albert tan
  • Japanese education, creating tailored learning experiences.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • rahulc0dy
  • 测试您的MCP服务器。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

    Reviews

    4 (1)
    Avatar
    user_zw3mhKSV
    2025-04-17

    Postmancer is an outstanding tool for messaging queue management! Hijaz did a terrific job with this project. It's incredibly efficient and easy to integrate into various applications. The clear documentation and seamless functionality have greatly streamlined my workflow. Highly recommend checking it out on GitHub!