Skip to main content
Glama

database-mcp

Dockerfile973 B
FROM python:3.10-slim # Set working directory WORKDIR /app # Install system dependencies for database clients RUN apt-get update && apt-get install -y --no-install-recommends \ # MySQL dependencies default-libmysqlclient-dev \ pkg-config \ # PostgreSQL dependencies libpq-dev \ # MSSQL dependencies freetds-dev \ freetds-bin \ # General build tools build-essential \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Copy the project files COPY . /app # Install the project dependencies RUN pip install --no-cache-dir . # The database connection parameters should be provided at runtime # Example environment variables (these will be overridden at runtime) ENV DB_TYPE="pg" ENV DB_CONFIG='{"host":"localhost","port":5432,"user":"username","password":"password","dbname":"database_name"}' # Expose the default MCP server port EXPOSE 5678 # Set the entrypoint command to run the MCP server ENTRYPOINT ["database-mcp"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheRaLabs/legion-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server