Skip to main content

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 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

  1. Visit the GitHub repository
  2. Click “Fork” to create your own copy
  3. Clone your fork locally for any customizations

Step 2: Connect to Railway

1

Create Railway Project

  1. Go to Railway
  2. Sign up/login with GitHub
  3. Click “New Project”
  4. Select “Deploy from GitHub repo”
  5. Choose your forked repository
2

Configure Environment Variables

  1. In Railway dashboard, go to your project
  2. Click “Variables” tab
  3. 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 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

Error: [Errno 48] error while attempting to bind on address ('0.0.0.0', 8001): [errno 48] address already in useSolutions:
Error: Server uses demo API key despite setting FMP_API_KEYSolutions:
Error: Container exits immediately after startingSolutions:

Performance Optimization

Production Optimizations

Next Steps

Monitoring Setup

Set up comprehensive monitoring and alerting

Security Guide

Implement security best practices

Scaling Guide

Handle high-traffic scenarios

API Documentation

Explore all available endpoints