mcp-server-docker

mcp-server-docker

2

This project sets up a Model Context Protocol (MCP) Server using Docker, integrating Redis and TimescaleDB. Key features include FastAPI, Redis caching, TimescaleDB for time-series data, and Docker Compose for orchestration. It supports easy configuration through environment variables and can be set to auto-restart using a systemd service.

๐Ÿš€ MCP Server with Docker, Redis, and TimescaleDB

This repository sets up a Model Context Protocol (MCP) Server using Docker, integrating Redis and TimescaleDB for efficient data management.

๐Ÿ› ๏ธ Features

  • FastAPI: Serves as the web framework for the MCP server.
  • Redis: Provides caching mechanisms.
  • TimescaleDB: A time-series database built on PostgreSQL.
  • Docker Compose: Orchestrates multi-container Docker applications.
  • Environment Variables: Configurable via .env file.
  • Systemd Service: Ensures the server auto-starts on reboot.

๐Ÿ“‹ Prerequisites

  • Docker and Docker Compose installed on your system.
  • Git for version control.
  • Zsh with Oh-My-Zsh (optional, for enhanced shell experience).

๐Ÿš€ Setup Instructions

  1. Clone the Repository.
  2. Configure Environment Variables.
  3. Build and Start the Containers.
  4. Access the MCP Server.

๐Ÿ”„ Auto-Restart on Reboot

Create a systemd service to keep your app alive.

๐Ÿงช Scripts

The scripts/ directory contains utility scripts to automate infrastructure tasks.