Used for making HTTP requests to external APIs, particularly for interfacing with the Bytedance Oceanengine advertising platform.
Supports containerized deployment of the MCP server, with configuration for building images and running containers.
Enables configuration through environment variables for settings like API tokens, service ports, and logging levels.
Provides the web framework foundation for exposing the API endpoints that interface with various advertising services.
Can be used as an API gateway for the MCP server to manage traffic, authentication, and routing.
Can be used as an alternative API gateway for the MCP server for reverse proxy, load balancing, and request routing.
Serves as the runtime environment for the MCP server, supporting the backend API service implementation.
Used for package management, dependency installation, and running scripts for development, testing, and deployment.
MCP (Microservice Control Panel)
项目概述
MCP是一个集成巨量API并对外提供服务的平台。该项目旨在简化API的管理、监控和使用,为开发人员和业务提供一站式服务解决方案。特别适合引流电商业务场景。
主要功能
- 巨量引擎API集成:集成巨量引擎广告平台的API,提供统一访问接口
- 广告账户管理:查询广告账户信息、获取账户列表
- 广告数据报表:支持多维度数据查询,包括广告主报表、小时报表和自定义报表
- 项目和广告管理:获取项目列表和广告列表,支持多种过滤条件
- 灵活的认证机制:Access-Token管理,支持按广告账户设置和管理Token
- 完善的API文档:详细的接口说明、参数定义和使用示例
- 错误处理和日志:提供错误码和详细日志,方便调试和问题定位
集成API
已计划集成的API
- 巨量引擎开放平台
- 广告账户服务API - 文档链接
- 主要功能:查询广告账户信息、获取账户列表、获取广告性能数据等
- 已实现接口:
GET /api/oceanengine/ad-accounts/{account_id}
- 获取广告账户详情GET /api/oceanengine/ad-accounts
- 获取广告账户列表GET /api/oceanengine/ad-accounts/{account_id}/performance
- 获取广告关键指标(展示、点击、转化、消耗等)GET /api/oceanengine/ad-accounts/{account_id}/hourly-report
- 获取广告主按小时统计的报表数据POST /api/oceanengine/ad-accounts/{account_id}/custom-report
- 获取自定义报表GET /api/oceanengine/ad-accounts/{account_id}/report/advertiser
- 获取广告主报表GET /api/oceanengine/ad-accounts/{account_id}/projects
- 获取项目列表GET /api/oceanengine/ad-accounts/{account_id}/promotions
- 获取广告列表POST /api/ad-accounts/{account_id}/token
- 设置账户的Access-TokenGET /api/ad-accounts/{account_id}/token
- 检查账户的Access-Token状态DELETE /api/ad-accounts/{account_id}/token
- 删除账户的Access-Token
技术栈
- 后端:Node.js/Express
- API调用:Axios
- 容器化:Docker
- API网关:Kong/Nginx
项目结构
开发与部署
环境要求
- Node.js 16+
- Docker (用于容器化部署)
环境变量配置
在项目根目录创建一个 .env
文件,可参考 .env.example
:
本地开发
测试
生产部署
API文档
API文档请参考 docs/api.md
引流电商应用场景
本项目特别适合引流电商业务场景,提供了以下功能:
- 获取广告账户基本信息:包括账户ID、名称、状态、余额等
- 批量获取账户列表:用于管理多个广告账户
- 获取广告关键指标:包括展示量、点击量、转化量、点击率、转化率等,帮助引流电商评估广告效果
- 获取广告主小时报表:按小时查看广告表现,及时调整策略
- 自定义报表:根据需求定制报表,支持多维度分析
路线图
- 项目初始化
- 基础框架搭建
- API管理实现
- 巨量引擎广告账户服务API集成
- 获取账户信息接口
- 获取账户列表接口
- 获取广告关键指标接口
- 获取广告主小时报表接口
- 获取自定义报表接口
- 获取广告主报表接口
- 获取项目列表接口
- 获取广告列表接口
- 巨量引擎广告账户服务API集成
- 认证管理
- Access-Token 管理接口
- 用户认证与授权
- 服务监控模块
- 高级特性
- 缓存机制
- 请求限流
- 错误重试
- 单元测试覆盖
- 完整API文档
贡献指南
- Fork 该仓库
- 创建您的特性分支 (
git checkout -b feature/amazing-feature
) - 提交您的更改 (
git commit -m 'Add some amazing feature'
) - 推送到分支 (
git push origin feature/amazing-feature
) - 打开一个 Pull Request
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 platform that integrates and manages APIs from ByteDance's Ocean Engine (巨量引擎) advertising platform, providing unified access interfaces for e-commerce traffic acquisition scenarios.
Related MCP Servers
- -securityAlicense-qualityActs as a bridge between AI models and Google's PageSpeed Insights API, enabling detailed performance analysis of websites.Last updated -4196JavaScriptMIT License
- AsecurityAlicenseAqualityA server implementation that streams real-time Binance market data (spot and futures) via WebSockets, enabling applications to receive and process cryptocurrency market information through the Model Context Protocol.Last updated -643316TypeScriptMIT License
- -securityAlicense-qualityA modular, extensible FastAPI-based platform that aggregates multiple AI tools and microservices into a unified interface with standardized I/O formats, perfect for frontend integration or LLM system orchestration.Last updated -2PythonMIT License
- -securityFlicense-qualityA Node.js Express server that integrates with Facebook Marketing API to provide a platform for managing ad campaigns, analyzing performance, and receiving optimization recommendations.Last updated -6JavaScript