crm-mcp-server

crm-mcp-server

3.3

This guide explains how to build and deploy a Model Context Protocol (MCP) server using Docker.

The CRM MCP server project is implemented using Spring AI and provides functionalities such as CRM campaign creation, targeting rule setup, email content generation, and campaign scheduling. The server is packaged as a Docker image for easy deployment and management. The Dockerfile uses a lightweight JDK 17 base image, sets the timezone to Asia/Seoul, and copies a locally built JAR file into the image. The server is configured to use standard input/output for communication.

Features

  • CRM campaign creation
  • Targeting rule setup
  • Email content generation
  • Campaign schedule setup

Usage with Different Platforms

Linux/Mac

bash
chmod +x build_and_push.sh
./build_and_push.sh

Windows


build_and_push.bat

Docker Run Command

bash
docker run -i --rm yoonbeopgong/crm-mcp-server

JSON Configuration


{
  "mcpServers": {
    "crmMcpServer": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "yoonbeopgong/crm-mcp-server"
      ],
      "env": {}
    }
  }
}

Frequently Asked Questions

What should I do if the Docker build fails?

Ensure the project is set to Java 17, run ./gradlew build to check JAR file creation, and try building without cache using docker build -t yoonbeopgong/crm-mcp-server . --no-cache.

How can I check logs if the container fails to run?

Use docker logs [container_id] to view the logs and verify the JAR file path in the Dockerfile.