Overview
MCP Enterprise is the administrative interface for managing MCP servers. It consists of a Python backend (FastAPI) and Vue.js frontend, providing a comprehensive dashboard with Role-Based Access Control (RBAC) features.Features
- Server Management Dashboard
- User and Role Management
- Resource Monitoring
- Configuration Management
- Audit Logging
Installation
Prerequisites
- Python 3.8+
- Node.js 14+
- PostgreSQL
- Docker (optional)
Prerequisites
Before starting the installation, ensure you have:- Node.js and npm
- Docker and Docker Compose
- Python 3.10+
- Poetry
Installation Steps
- Clone the Repository
- Set Up Environment Variables
.env.example provides most default values. The only required change is setting PYTHONPATH to point to the backend/apps/admin folder path.
- Install Dependencies and Initialize Database
- Set up the PostgreSQL database
- Install backend dependencies using Poetry
- Install frontend dependencies using npm
Starting the Services
You’ll need two terminal windows to run the services:http://localhost:5199.
First-Time Setup
When you first access the dashboard:- Navigate to http://localhost:5199
- The first login will automatically grant you admin access
- Set up additional users and roles as needed
http://localhost:5199.
Core Components
1. Server Management
The server management interface allows you to:- Add and configure MCP servers
- Monitor server status
- Set resource limits
- Configure server tools
- View server logs
2. User Management
Comprehensive user management includes:- User creation and management
- Role assignment
- Permission configuration
- Activity monitoring
- Access control
3. RBAC System
The Role-Based Access Control system provides:- Role definition
- Permission management
- Access policy creation
- Activity auditing
4. Resource Management
Monitor and manage resources through:- Resource usage tracking
- Limit configuration
- Resource allocation
- Usage analytics
Configuration
Database Configuration
Configure PostgreSQL connection in.env:
RBAC Configuration
Define roles and permissions in the admin interface:- Create roles (e.g., admin, manager, user)
- Define permissions for each role
- Assign users to roles
- Configure access policies
Server Integration
Configure MCP Hub integration:Usage Guide
Managing Servers
-
Adding a New Server
- Navigate to Servers > Add New
- Configure server details
- Set resource limits
- Configure tools
-
Monitoring Servers
- View server status
- Check resource usage
- Monitor performance
- View logs
User Management
-
Creating Users
- Navigate to Users > Add New
- Set user details
- Assign roles
- Configure permissions
-
Managing Roles
- Create/edit roles
- Define permissions
- Set access policies
Security Considerations
-
Authentication
- Use strong passwords
- Enable 2FA if available
- Regular token rotation
- Session management
-
Authorization
- Proper role configuration
- Least privilege principle
- Regular access review
- Audit logging
-
Data Protection
- Database security
- API security
- Data encryption
- Secure communication
Best Practices
-
Server Management
- Regular monitoring
- Resource optimization
- Performance tuning
- Regular updates
-
User Management
- Regular access review
- Role optimization
- Activity monitoring
- Security training
-
Resource Management
- Capacity planning
- Usage optimization
- Cost monitoring
- Regular audits
Troubleshooting
Common Issues
-
Database Connection
-
Server Integration
- Verify MCP Hub connection
- Check API keys
- Validate URLs
- Review logs
-
Frontend Issues
- Check API endpoints
- Verify environment variables
- Clear browser cache
- Check console errors
Maintenance
Regular Tasks
-
Database Maintenance
-
Log Management
- Regular log rotation
- Log analysis
- Error monitoring
- Performance tracking
-
Updates
- Regular security updates
- Feature updates
- Dependency updates
- Configuration review
