콘텐츠로 이동

29. Smithery로 MCP 서버 배포

구성 파일

의존성 패키지

requirements.txt
fastmcp

Smithery 설정 파일

smithery.yaml
runtime: "container"
build:
  dockerfile: "Dockerfile"
  dockerBuildPath: "."
startCommand:
  type: "http"

Dockerfile

Dockerfile
FROM python:3.12-slim

WORKDIR /app
COPY . .
RUN pip install -r requirements.txt

CMD ["python", "server.py"]

Smithery 배포 과정

  1. 위 구성파일을 Github 레포지토리에 동기화 합니다.
  2. https://smithery.ai/에 접속하여 회원가입 후 로그인합니다.
  3. 우측 상단에 있는 Publish Server 버튼을 클릭합니다.
  4. Github 레포지토리를 선택 후 배포합니다.
  5. 배포된 MCP 서버는 아래의 URL 형태로 접근할 수 있습니다.
    • https://server.smithery.ai/{serverName}/mcp?api_key={apiKey}&profile={profile}