1Panel + Amazon Q CLI: Complete MCP Integration
1Panel is a MCP server that MCP server implementation that provides 1Panel interaction.
When integrated with Amazon Q CLI, you can:
- Monitor system status and dashboard information
- Create and manage websites on 1Panel
- Handle SSL certificates and HTTPS configuration
This guide provides step-by-step instructions to set up 1Panel in Amazon Q CLI, including configuration, examples, and troubleshooting.
What You'll Achieve
After completing this setup:
- 1Panel will be fully integrated and operational
- You can use 1Panel tools directly in Amazon Q CLI
- All 1Panel capabilities will be available for your workflows
- Access to 5 different tools
Prerequisites
Before starting, ensure you have:
- 1Panel access token for authentication
- 1Panel server address
- Amazon Q CLI installed and configured
- Compatible operating system (Windows, macOS, Linux)
Installation
Step 1: Install 1Panel
Configuration
Step 2: Configure Amazon Q CLI
- Install Amazon Q CLI
Download and install Q CLI for your platform
Visit: https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-installing.html
- Authenticate
Set up authentication with AWS Builder ID or IAM Identity Center
q auth
Note: Follow interactive authentication flow
- Verify Installation
Test Q CLI installation and configuration
q doctor
- Install MCP Server
Install the MCP server you want to integrate
Note: Ensure server is accessible from command line
- Configure MCP Integration
Add MCP server configuration to Q CLI
Note: Use q config commands to set server parameters
- Test Integration
Verify MCP server works with Q CLI
q chat "Use 1Panel to help me"
Configuration Details
Configure MCP servers through Q CLI commands:
# Configure MCP server integration
q config set mcp.servers.1panel.command "1panel"
q config set mcp.servers.1panel.args ""your-access-token", "http://localhost:8080""
q config set mcp.servers.1panel.env ""PANEL_ACCESS_TOKEN": "your-1panel-access-token-here",
"PANEL_HOST": "http://localhost:8080""
# Verify configuration
q config list mcp.servers
Examples
Once configured, you can use 1Panel in Amazon Q CLI:
Get System Overview
Check 1Panel server status and system information
Ask Amazon Q CLI: "Show me the dashboard information and system status"
Expected Result: Dashboard data including CPU, memory, disk usage, and running services
Create New Website
Set up a new website with domain configuration
Ask Amazon Q CLI: "Create a website for domain example.com with PHP support"
Expected Result: Website created with virtual host configuration and PHP environment
Install Database Server
Install and configure MySQL server
Ask Amazon Q CLI: "Install MySQL and create a database called myapp_db"
Expected Result: MySQL installed, database created, and connection details provided
SSL Certificate Setup
Generate and configure SSL certificate for website
Ask Amazon Q CLI: "Create an SSL certificate for my website example.com"
Expected Result: SSL certificate generated and configured for HTTPS access
Testing Your Setup
- Run q doctor to verify system health
- Start Q CLI chat session
- Ask Q to list available MCP tools
- Test specific 1Panel functionality
Test commands:
q doctor
q chat
q config list mcp.servers
Troubleshooting
Common Issues
Authentication Failed
Symptoms: Access denied errors, Invalid token messages, Connection refused
Cause: Invalid or missing PANEL_ACCESS_TOKEN
Solution:
- Verify PANEL_ACCESS_TOKEN is set correctly
- Check token validity in 1Panel admin interface
- Ensure token has sufficient permissions
Connection to 1Panel Failed
Symptoms: Connection timeout, Server unreachable, Network errors
Cause: Invalid PANEL_HOST or 1Panel server not running
Solution:
- Verify PANEL_HOST URL is correct
- Check 1Panel server is running on specified port
- Test network connectivity to 1Panel server
- Ensure firewall allows connections
SSE Mode Not Working
Symptoms: SSE endpoint not responding, Transport errors
Cause: Incorrect SSE configuration or port conflicts
Solution:
- Verify -addr parameter is accessible
- Check port is not in use by another service
- Ensure SSE transport is specified correctly
- Test SSE endpoint with curl
Binary Not Found
Symptoms: Command not found, mcp-1panel: command not found
Cause: Binary not in PATH or not properly installed
Solution:
- Verify binary is in /usr/local/bin or system PATH
- Check file permissions (executable bit)
- Re-download and reinstall binary
- Use full path to binary if needed
Installation Failed
Symptoms: Q command not found, Installation errors
Cause: Incomplete installation or PATH issues
Solution:
- Verify installer completed successfully
- Check PATH environment variable includes Q CLI
- Try running q doctor for diagnostics
- Reinstall using platform-specific method
Authentication Problems
Symptoms: Auth errors, Cannot connect to AWS services
Cause: Invalid credentials or network issues
Solution:
- Run q auth to re-authenticate
- Verify AWS Builder ID or IAM credentials
- Check network connectivity to AWS
- Ensure proper AWS permissions are set
MCP Server Not Found
Symptoms: Server command not found, MCP tools unavailable
Cause: Server not installed or not in PATH
Solution:
- Verify MCP server installation
- Check server executable permissions
- Use absolute path in configuration
- Test server independently with direct command
Configuration Errors
Symptoms: Config commands fail, Settings not persisting
Cause: Invalid configuration syntax or permissions
Solution:
- Check Q CLI configuration file permissions
- Verify configuration syntax is correct
- Use q config list to review current settings
- Report issues with q issue command
1Panel not appearing in Amazon Q CLI
Symptoms: Server not listed, Tools not available
Cause: Configuration or installation issue
Solution:
- Verify configuration syntax
- Check 1Panel installation
- Restart Amazon Q CLI
- Check logs for error messages
Next Steps
Now that 1Panel is integrated with Amazon Q CLI:
- Explore all 1Panel capabilities through Amazon Q CLI
- Check out other MCP servers that work with Amazon Q CLI
- Join the MCP community for tips and support
- Consider contributing to 1Panel development
Need Help?
- Search for 1Panel documentation
- Check the Amazon Q CLI MCP guide
- Join the MCP community discussions