Skip to main content
Glama

MCP Complete Implementation Guide

by saksham0712
docker-compose.yml•1.94 kB
version: '3.8' services: # Node.js MCP Server mcp-server-node: build: context: . target: node-base ports: - "3000:3000" environment: - NODE_ENV=production - PORT=3000 volumes: - ./logs:/app/logs - ./.env:/app/.env:ro restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Python MCP Server (alternative) mcp-server-python: build: context: . target: python-base ports: - "3001:3000" environment: - PORT=3000 - LOG_LEVEL=info volumes: - ./logs:/app/logs - ./.env:/app/.env:ro restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s profiles: - python # PostgreSQL Database (optional) postgres: image: postgres:15-alpine environment: POSTGRES_DB: mcpdb POSTGRES_USER: mcpuser POSTGRES_PASSWORD: mcppassword volumes: - postgres_data:/var/lib/postgresql/data - ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro restart: unless-stopped profiles: - database # Redis Cache (optional) redis: image: redis:7-alpine command: redis-server --appendonly yes --requirepass redispassword volumes: - redis_data:/data restart: unless-stopped profiles: - cache # Nginx Reverse Proxy (optional) nginx: image: nginx:alpine ports: - "80:80" - "443:443" volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro - ./ssl:/etc/nginx/ssl:ro depends_on: - mcp-server-node restart: unless-stopped profiles: - proxy volumes: postgres_data: redis_data: networks: default: name: mcp-network

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/saksham0712/MCP'

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