Overview
The Financial MCP Server can be deployed to various platforms, from simple cloud services to enterprise Kubernetes clusters. This guide covers the most popular deployment options with step-by-step instructions.Railway
Recommended for beginners
- Zero-config deployment
- Automatic scaling
- Built-in monitoring
Docker
Flexible containerization
- Platform independent
- Easy scaling
- Production ready
Railway Deployment (Recommended)
Railway offers the simplest deployment experience with automatic builds and scaling.Prerequisites
- GitHub account
- Railway account (free tier available)
- FMP API key (optional but recommended)
Step 1: Fork the Repository
- Visit the GitHub repository
- Click “Fork” to create your own copy
- Clone your fork locally for any customizations
Step 2: Connect to Railway
1
Create Railway Project
- Go to Railway
- Sign up/login with GitHub
- Click “New Project”
- Select “Deploy from GitHub repo”
- Choose your forked repository
2
Configure Environment Variables
- In Railway dashboard, go to your project
- Click “Variables” tab
- Add the following variables:
3
Deploy
Railway automatically detects the Python app and deploys it using the
Procfile.The deployment process:- Detects Python runtime
- Installs dependencies from
requirements.txt - Runs the command from
Procfile - Assigns a public URL
Step 3: Verify Deployment
Railway Configuration
Docker Deployment
Docker provides a consistent deployment environment across different platforms.Prerequisites
- Docker installed
- Docker Hub account (for image hosting)
- Basic Docker knowledge
Step 1: Build Docker Image
Step 2: Docker Compose (Recommended)
Step 3: Production Docker Setup
Heroku Deployment
Heroku provides a simple platform-as-a-service solution.Prerequisites
- Heroku account
- Heroku CLI installed
- Git repository
Deployment Steps
1
Prepare Application
Ensure your repository has the required files:
2
Create Heroku App
3
Deploy
Heroku Configuration
VPS/Cloud Server Deployment
Deploy to any cloud server (AWS EC2, DigitalOcean, Linode, etc.).Prerequisites
- Ubuntu/Debian server
- SSH access
- Domain name (optional)
Step 1: Server Setup
Step 2: Process Management
Step 3: Reverse Proxy (Nginx)
Kubernetes Deployment
For enterprise deployments requiring high availability and scaling.Prerequisites
- Kubernetes cluster
- kubectl configured
- Basic Kubernetes knowledge
Deployment Manifests
Kubernetes Commands
Monitoring & Maintenance
Health Monitoring
Log Management
Troubleshooting
Common Deployment Issues
Port Already in Use
Port Already in Use
Error:
[Errno 48] error while attempting to bind on address ('0.0.0.0', 8001): [errno 48] address already in useSolutions:Environment Variables Not Loading
Environment Variables Not Loading
Error: Server uses demo API key despite setting FMP_API_KEYSolutions:
Docker Container Exits
Docker Container Exits
Error: Container exits immediately after startingSolutions: