Overview
Self-host the CodeAlive MCP server for complete control over your deployment. The MCP server can be deployed using Docker or from source code.Prerequisites
- CodeAlive API key from app.codealive.ai
- Docker (for container deployment) or Python 3.11+ (for source deployment)
Docker Deployment
The easiest way to self-host CodeAlive MCP:Docker Compose
Createdocker-compose.yml:
Source Code Deployment
Deploy from the GitHub repository:Custom Port
To run on a different port:Connecting to Self-Hosted Instance
Once your server is running, configure your AI assistant to use the local URL:For Docker
For Custom Port
For Self-Hosted CodeAlive Backend
If you’re running a self-hosted CodeAlive instance (not just the MCP server), configure the base URL:Docker
Source Code
Set additional environment variable:Basic Troubleshooting
Container won't start
Container won't start
Check:
- API key is correctly set
- Port 8000 is not already in use
- Docker daemon is running
Connection refused
Connection refused
Check:
- Server is running:
docker psor check Python process - Correct URL in your AI assistant configuration
- Firewall allows connections to the port
Authentication failures
Authentication failures
Check:
- API key is valid and active
- Environment variable is set correctly
- For self-hosted backend, verify base URL is correct