tts-mcp-server

Daewooki/tts-mcp-server

3.1

If you are the rightful owner of tts-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

OpenAI TTS Remote MCP Server is a server designed to provide text-to-speech services remotely using OpenAI's API.

OpenAI TTS Remote MCP Server

μ›κ²©μœΌλ‘œ μ‚¬μš©ν•  수 μžˆλŠ” OpenAI Text-to-Speech MCP μ„œλ²„μž…λ‹ˆλ‹€.

πŸš€ μ„œλ²„ μ„€μ •

1. μ˜μ‘΄μ„± μ„€μΉ˜

npm install

2. ν™˜κ²½λ³€μˆ˜ μ„€μ •

.env νŒŒμΌμ„ μƒμ„±ν•˜κ³  λ‹€μŒ λ‚΄μš©μ„ μ„€μ •ν•˜μ„Έμš”:

# OpenAI API ν‚€
OPENAI_API_KEY=your-openai-api-key-here

# μ„œλ²„ 포트
PORT=8080

# 인증 토큰 (직원듀과 κ³΅μœ ν•  토큰)
AUTH_TOKEN=your-secret-token-here

3. μ„œλ²„ μ‹€ν–‰

npm start

4. λ°©ν™”λ²½ μ„€μ •

포트 8080을 μΈλ°”μš΄λ“œ κ·œμΉ™μ— μΆ”κ°€ν•˜μ„Έμš”.

πŸ‘₯ 직원 μ„€μ • (Claude Desktop)

각 직원이 μžμ‹ μ˜ Claude Desktopμ—μ„œ λ‹€μŒκ³Ό 같이 μ„€μ •ν•©λ‹ˆλ‹€:

1. Claude Desktop μ—΄κΈ°

Claude Desktop β†’ Settings β†’ Connectors

2. Custom Connector μΆ”κ°€

  • Add Custom Connector 클릭
  • Name: OpenAI TTS
  • URL: http://YOUR_SERVER_IP:8080/sse
  • Headers:
    • Key: Authorization
    • Value: Bearer tts-mcp-token-2025

3. μ—°κ²° ν…ŒμŠ€νŠΈ

Claudeμ—μ„œ λ‹€μŒκ³Ό 같이 ν…ŒμŠ€νŠΈ:

  • "μ•ˆλ…•ν•˜μ„Έμš”λ₯Ό μŒμ„±μœΌλ‘œ λ³€ν™˜ν•΄μ£Όμ„Έμš”"
  • "Hello worldλ₯Ό nova μŒμ„±μœΌλ‘œ λ³€ν™˜ν•΄μ£Όμ„Έμš”"

πŸ”§ μ„œλ²„ 관리

ν—¬μŠ€ 체크

curl http://YOUR_SERVER_IP:8080/health

μ„œλ²„ 정보 확인

curl http://YOUR_SERVER_IP:8080/

μƒμ„±λœ μ˜€λ””μ˜€ 파일 확인

λΈŒλΌμš°μ €μ—μ„œ: http://YOUR_SERVER_IP:8080/audio/

πŸ”’ λ³΄μ•ˆ

  • 인증 토큰: λͺ¨λ“  μš”μ²­μ— Bearer 토큰이 ν•„μš”ν•©λ‹ˆλ‹€
  • HTTPS ꢌμž₯: ν”„λ‘œλ•μ…˜μ—μ„œλŠ” λ¦¬λ²„μŠ€ ν”„λ‘μ‹œ(Nginx)둜 HTTPS μ„€μ •
  • λ°©ν™”λ²½: ν•„μš”ν•œ IP만 ν—ˆμš©ν•˜λ„λ‘ μ„€μ •

πŸ› οΈ κ³ κΈ‰ μ„€μ •

Nginx λ¦¬λ²„μŠ€ ν”„λ‘μ‹œ (HTTPS)

server {
    listen 443 ssl;
    server_name mcp.company.local;
    
    ssl_certificate /path/to/cert.pem;
    ssl_certificate_key /path/to/key.pem;
    
    location / {
        proxy_pass http://localhost:8080;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_cache_bypass $http_upgrade;
    }
}

PM2둜 μ„œλ²„ 관리

# PM2 μ„€μΉ˜
npm install -g pm2

# μ„œλ²„ μ‹œμž‘
pm2 start src/server.js --name "tts-mcp-server"

# μžλ™ μ‹œμž‘ μ„€μ •
pm2 startup
pm2 save

πŸ“Š μ‚¬μš©λŸ‰ λͺ¨λ‹ˆν„°λ§

μ„œλ²„ λ‘œκ·Έμ—μ„œ μ‚¬μš©λŸ‰μ„ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€:

  • TTS μš”μ²­ 횟수
  • μƒμ„±λœ 파일 크기
  • μ‚¬μš©μžλ³„ μš”μ²­ (IP 기반)

πŸ†˜ 문제 ν•΄κ²°

μ—°κ²° μ‹€νŒ¨

  1. λ°©ν™”λ²½ μ„€μ • 확인
  2. μ„œλ²„ μƒνƒœ 확인: curl http://SERVER_IP:8080/health
  3. 인증 토큰 확인

TTS μ‹€νŒ¨

  1. OpenAI API ν‚€ 확인
  2. λ„€νŠΈμ›Œν¬ μ—°κ²° 확인
  3. API μ‚¬μš©λŸ‰ ν•œλ„ 확인

πŸ“ λΌμ΄μ„ μŠ€

MIT License