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
- Clone the Repository.
- Configure Environment Variables.
- Build and Start the Containers.
- 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.