Supports project installation via Git clone commands.
Requires Node.js 16+ as runtime environment for the MCP server.
Used for dependency management and build processes with commands like 'npm install' and 'npm run build'.
Implemented using TypeScript for type safety and improved development experience.
🚀 ApiPost MCP
基于 MCP (Model Context Protocol) 协议的 ApiPost API 管理工具,支持完整的接口文档管理和团队协作。兼容所有支持 MCP 协议的编辑器。
✨ 功能特性
- 📋 完整接口管理:创建、修改、删除HTTP接口,支持完整参数配置
- 📁 目录结构管理:创建和管理目录层级,支持父子级结构
- 🔍 智能搜索:URL优先匹配,支持名称和关键词搜索
- 👥 团队协作:支持多团队、多项目管理
- 🛡️ 安全模式:可配置安全级别,防止误操作
- 🎯 智能识别:自动识别接口类型,支持多种认证方式
🔧 安装配置
环境要求
- Node.js 16+
- 支持 MCP 协议的编辑器(如 Cursor、VS Code 等)
- ApiPost 账号和项目访问权限
快速安装
MCP 配置
在编辑器的 MCP 配置文件中添加配置(如 Cursor 的 ~/.cursor/mcp.json
或 VS Code 的相应配置文件):
🚀 使用指南
基本操作
- 查看项目概览
- 搜索接口
- 创建接口
- 更新接口
工作空间配置
🚀 推荐方式:直接配置名称
名称配置(最简单):
最简配置 + 动态设置:
然后使用工具设置工作空间:
安全模式说明
🟢 Safe 模式(默认推荐)
- ✅ 查看、创建、修改接口
- ❌ 禁止删除操作
- 🎯 适用:日常开发使用
🔴 Full 模式
- ✅ 所有操作(包括删除)
- ⚠️ 警告:谨慎使用,有删除风险
📋 可用工具
工具名称 | 功能描述 | 主要参数 |
---|---|---|
apipost_list_all | 查看项目总览 | search (可选), show_details (可选) |
apipost_search_apis | 搜索接口 | keyword (必需) |
apipost_create | 创建接口/目录 | type , name , method (接口), url (接口) |
apipost_update | 更新接口/目录 | identifier (必需), new_name (可选) |
apipost_batch_delete | 批量删除 | target_ids (必需) |
apipost_list_teams | 查看团队列表 | - |
apipost_list_projects | 查看项目列表 | team_id (可选) |
apipost_get_api_details | 获取接口详情 | target_ids (必需) |
apipost_set_workspace | 设置工作空间 | team_name (可选), project_name (可选) |
⚙️ 配置参数
必需环境变量
变量名 | 说明 | 示例 |
---|---|---|
APIPOST_TOKEN | API访问令牌 | apk_xxxxxxxxx |
可选环境变量
变量名 | 默认值 | 说明 |
---|---|---|
APIPOST_HOST | https://open.apipost.net | API服务地址 |
APIPOST_SECURITY_MODE | safe | 安全模式(safe/full) |
APIPOST_DEFAULT_TEAM_NAME | - | 默认团队名称 |
APIPOST_DEFAULT_PROJECT_NAME | - | 默认项目名称 |
🔑 获取配置信息
获取 API Token
- 登录 ApiPost
- 点击右上角头像 → 个人设置
- 左侧菜单选择 开放接口
- 复制 访问令牌(格式:
apk_xxxxxxxxxxxx
)
获取项目信息
- 进入要管理的 ApiPost 项目
- 可以直接使用项目名称,支持模糊匹配
- 或者从项目设置中获取具体的项目ID
🔍 故障排除
常见问题
Q: "请设置 APIPOST_TOKEN" 错误?
Q: "获取项目数据失败" 错误?
Q: MCP 工具不可用?
🧪 开发测试
📖 详细文档
- 工具详细说明 - 完整的工具参数和使用示例
- ApiPost官方文档 - ApiPost平台使用指南
🚀 项目特色
💡 技术优势
- 🎯 TypeScript开发:类型安全,开发体验优秀
- 🔧 模块化设计:清晰的代码结构,易于维护
- 🛡️ 完善错误处理:用户友好的错误信息
- ⚡ 智能缓存:性能优化,快速响应
🎮 用户体验
- 🌳 直观展示:树形结构,项目一目了然
- 🔍 智能匹配:URL优先匹配,减少操作错误
- 📝 完整配置:支持所有API参数类型
- 🚀 高效操作:一条命令完成复杂配置
💡 提示:使用过程中遇到问题,请检查 ApiPost 个人设置中的 API Token 是否正确配置。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A server that enables management of ApiPost API documentation and team collaboration through the Model Context Protocol, supporting complete interface management directly from compatible editors.
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI models to interact with GitHub's API, allowing for repository creation and management with descriptions, topics, and website URLs through natural language commands.Last updated -1JavaScript
Appwrite MCP Serverofficial
AsecurityAlicenseAqualityA Model Context Protocol server that allows AI assistants to interact with Appwrite's API, providing tools to manage databases, users, functions, teams, and other resources within Appwrite projects.Last updated -8448PythonMIT License- -securityFlicense-qualityA server that enables accessing and managing ApiFox API information through the Model Context Protocol, supporting both HTTP services and CLI commands.Last updated -161TypeScript
- -securityFlicense-qualityA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.Last updated -61TypeScript