MCP Shipping Control Center
Enables comprehensive shipping and order management through EasyPost and Veeqo integrations. Supports creating orders, generating shipping labels, tracking shipments, and managing unified workflows with a web-based dashboard interface.
README
MCP Shipping Control Center
A comprehensive shipping and order management platform built with the Model Context Protocol (MCP), integrating EasyPost shipping services and Veeqo order management.
🚀 Features
Core Functionality
- Order Management: Create, update, and track orders through Veeqo integration
- Shipping Management: Generate labels, track shipments, and manage rates via EasyPost
- Unified Workflows: Cross-platform operations combining order and shipping data
- Real-time Dashboard: Web-based interface for monitoring operations
- Authentication: JWT-based security with role-based access control
Technical Features
- MCP Protocol: JSON-RPC 2.0 compliant API
- TypeScript: Full type safety throughout the application
- Error Handling: Comprehensive error management with retry logic
- Logging: Structured logging with correlation IDs
- Testing: Complete test coverage for all components
- Docker: Containerized deployment ready
- Kubernetes: Production-ready orchestration
📁 Project Structure
mcp-server/
├── src/
│ ├── clients/ # API client implementations
│ │ ├── easypostClient.ts
│ │ └── veeqoClient.ts
│ ├── methods/ # MCP method implementations
│ │ ├── easypost.ts
│ │ ├── veeqo.ts
│ │ ├── unified.ts
│ │ └── web.ts
│ ├── utils/ # Utility functions
│ │ ├── auth.ts
│ │ ├── errors.ts
│ │ ├── logger.ts
│ │ ├── middleware.ts
│ │ └── retry.ts
│ ├── web/ # Web interface components
│ │ ├── components/
│ │ ├── pages/
│ │ ├── services/
│ │ └── types/
│ ├── server.ts # Main server implementation
│ └── schema.ts # JSON-RPC schemas
├── tests/ # Test suites
├── k8s/ # Kubernetes manifests
├── Dockerfile
├── docker-compose.yml
├── package.json
└── README.md
🛠️ Installation
Prerequisites
- Node.js 18+
- npm or pnpm
- Docker (optional)
- Kubernetes cluster (optional)
Setup
- Clone and install dependencies:
cd mcp-server
npm install
# or
pnpm install
- Environment configuration:
cp .env.example .env
# Edit .env with your API keys and configuration
- Required environment variables:
# API Keys
EASYPOST_API_KEY=your_easypost_api_key
VEEQO_API_KEY=your_veeqo_api_key
# JWT Configuration
JWT_SECRET=your_jwt_secret
JWT_EXPIRES_IN=24h
# Default Admin User
DEFAULT_ADMIN_PASSWORD=admin123
# Logging
LOG_LEVEL=info
🚀 Usage
Development
# Start the development server
npm run dev
# Run tests
npm test
# Build for production
npm run build
Production
# Using Docker
docker build -t mcp-server .
docker run -p 3000:3000 mcp-server
# Using Docker Compose
docker-compose up -d
# Using Kubernetes
kubectl apply -f k8s/
📡 API Reference
MCP Methods
Veeqo Methods
veeqo.createOrder- Create a new orderveeqo.getOrder- Retrieve order detailsveeqo.listOrders- List orders with paginationveeqo.updateOrder- Update existing orderveeqo.deleteOrder- Delete an orderveeqo.syncInventory- Sync inventory data
EasyPost Methods
easypost.createShipment- Create a new shipmenteasypost.getRates- Get shipping rateseasypost.buyLabel- Purchase shipping labeleasypost.trackShipment- Track shipment status
Unified Methods
unified.createOrderWithShipping- Create order and shipping in one operationunified.processReturn- Handle return processingunified.bulkOperations- Batch operations
Web Methods
web.login- User authenticationweb.getDashboardStats- Dashboard statisticsweb.searchOrders- Search orders
Example Request
{
"jsonrpc": "2.0",
"method": "veeqo.createOrder",
"params": {
"order": {
"line_items_attributes": [
{
"product_id": "123",
"quantity": 2
}
],
"deliver_to": {
"first_name": "John",
"last_name": "Doe",
"address1": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US"
}
}
},
"id": 1
}
🔧 Configuration
Docker Configuration
The application includes Docker and Docker Compose configurations for easy deployment:
- Dockerfile: Multi-stage build for production optimization
- docker-compose.yml: Complete stack with all services
- k8s/: Kubernetes manifests for production deployment
Monitoring
- Prometheus: Metrics collection and monitoring
- Structured Logging: JSON-formatted logs with correlation IDs
- Health Checks: Built-in health check endpoints
🧪 Testing
# Run all tests
npm test
# Run specific test suites
npm test -- --testNamePattern="EasyPost"
npm test -- --testNamePattern="Veeqo"
npm test -- --testNamePattern="Unified"
# Run with coverage
npm run test:coverage
📊 Monitoring
The application includes comprehensive monitoring:
- Metrics: Prometheus metrics for all operations
- Logging: Structured logging with correlation IDs
- Health Checks: Built-in health check endpoints
- Error Tracking: Comprehensive error handling and reporting
🔒 Security
- JWT Authentication: Secure token-based authentication
- Role-based Access: Admin and user role permissions
- Input Validation: Comprehensive input validation
- Rate Limiting: Built-in rate limiting protection
- CORS: Configurable CORS policies
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
For support and questions:
- Create an issue in the repository
- Check the documentation
- Review the test examples
🔄 Version History
- v1.0.0 - Initial release with core functionality
- Complete MCP server implementation
- EasyPost and Veeqo integrations
- Web dashboard interface
- Docker and Kubernetes deployment ready
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。