apipost_mcpserver

caoxianshuo333/apipost_mcpserver

3.2

If you are the rightful owner of apipost_mcpserver and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

ApiPost MCP Server is a tool for managing API documentation based on the Model Context Protocol (MCP).

Tools
8
Resources
0
Prompts
0

ApiPost MCP Server

基于 MCP 协议的 ApiPost API 文档管理工具。

本仓库 Fork 自 jlcodes99/apipost-mcp,感谢原作者的贡献。

功能特性

  • 接口文档的创建、查看、修改、删除
  • 工作空间(团队/项目)管理与切换
  • 目录层级管理
  • 多维度搜索与批量操作
  • 多种安全模式(只读/读写/完全访问)

快速开始

环境要求

  • Node.js >= 18.0.0
  • npm >= 8.0.0

安装

git clone https://github.com/caoxianshuo333/apipost_mcpserver.git
cd apipost_mcpserver
npm install && npm run build

配置

在 MCP 配置文件中添加:

{
  "mcpServers": {
    "apipost": {
      "command": "node",
      "args": ["/your/path/to/apipost_mcpserver/dist/index.js"],
      "env": {
        "APIPOST_TOKEN": "your_access_token_here",
        "APIPOST_SECURITY_MODE": "limited",
        "APIPOST_DEFAULT_TEAM_NAME": "你的团队名称",
        "APIPOST_DEFAULT_PROJECT_NAME": "你的项目名称"
      }
    }
  }
}

环境变量

变量名必需说明
APIPOST_TOKENAPI 访问令牌
APIPOST_SECURITY_MODE安全模式:readonly / limited / full
APIPOST_DEFAULT_TEAM_NAME默认团队名称
APIPOST_DEFAULT_PROJECT_NAME默认项目名称
APIPOST_URL_PREFIX接口 URL 前缀,如 {{host}}

获取 Token

  1. 打开 Apipost 客户端
  2. 进入:工作台 → 项目设置 → 对外能力 → Open API
  3. 复制你的 api_token

详见 ApiPost OpenAPI 官方文档

可用工具

工具功能
apipost_test_connection连接测试
apipost_workspace工作空间管理
apipost_create_folder创建目录
apipost_smart_create创建接口
apipost_list接口列表搜索
apipost_detail查看接口详情
apipost_update修改接口
apipost_delete删除接口

相关链接

License

MIT