LM

lightconetech/mcp-gateway

API development

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

153 stars 14 forks 품질 67 트렌드 0Apache-2.0

lightconetech/mcp-gateway는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

lightconetech/mcp-gateway는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

Claude Desktop의 표준 기반 모델 컨텍스트 프로토콜(MCP) 구현과 HTTP/SSE 기반 MCP 서버를 연결하는 게이트웨이 서비스입니다. 이로 인해 Claude Desktop이 현재 표준 기반 MCP 서버만 지원하므로 프로토콜 호환성 격차를 해소합니다. 여기에서 논의를 확인하세요.

왜 이 관문인가?

Claude Desktop App은 현재 MCP 서버에 대해 stdio 프로토콜만 지원하지만, 많은 MCP 서버는 HTTP와 Server-Sent Events(SSE) 전송을 사용합니다. 이 게이트웨이는 프로토콜 변환기 역할을 하여 Claude Desktop이 다음 방식으로 모든 HTTP/SSE MCP 서버와 통신할 수 있도록 합니다:

  1. Claude Desktop에서 stdio 입력 받기
  2. HTTP/SSE MCP 서버로의 요청 변환 및 전달
  3. Claude 데스크톱용 SSE 응답을 다시 stdio 형식으로 변환하기

설치

npm을 사용해 게이트웨이를 전역적으로 설치하세요:

구성

1. 게이트웨이 경로를 찾아라

설치 후에는 다음 명령어를 사용하여 npm이 게이트웨이를 설치한 위치를 찾으세요:

일반적인 글로벌 패키지 위치:

  • macOS (홈브루 노드): /opt/homebrew/lib/node_modules/@mcphub/gateway/dist/src/mcphub-gateway.js
  • macOS (기본): /usr/local/lib/node_modules/@mcphub/gateway/dist/src/mcphub-gateway.js

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Server Gateway

A gateway service that bridges the stdio-based Model Context Protocol (MCP) implementation in Claude Desktop with HTTP/SSE-based MCP servers. This solves the protocol compatibility gap since Claude Desktop currently only supports stdio-based MCP servers. See the discussion here.

Why This Gateway?

Claude Desktop App currently only supports stdio protocol for MCP servers, while many MCP servers use HTTP with Server-Sent Events (SSE) transport. This gateway acts as a protocol translator, allowing Claude Desktop to communicate with any HTTP/SSE MCP server by:

  1. Accepting stdio input from Claude Desktop
  2. Converting and forwarding requests to HTTP/SSE MCP servers
  3. Converting SSE responses back to stdio format for Claude Desktop

Installation

Install the gateway globally using npm:

npm install -g @mcphub/gateway

Configuration

1. Find the Gateway Path

After installation, find where npm installed the gateway using these commands:

# This shows the root directory of global packages
npm root -g

# The gateway will be located at:
/@mcphub/gateway/dist/src/mcphub-gateway.js

Common global package locations:

  • macOS (Homebrew Node): /opt/homebrew/lib/node_modules/@mcphub/gateway/dist/src/mcphub-gateway.js
  • macOS (default): /usr/local/lib/node_modules/@mcphub/gateway/dist/src/mcphub-gateway.js
  • Windows: %AppData%\npm\node_modules\@mcphub\gateway\dist\src\mcphub-gateway.js

Verify the installation and path:

npm list -g @mcphub/gateway

2. Configure Claude Desktop

Create or update your Claude Desktop configuration file:

On macOS

Location: ~/Library/Application Support/Claude Desktop/config.json

On Windows

Location: %APPDATA%\Claude Desktop\config.json

Add this configuration (using the path you found in step 1):

{
  "mcpServers": {
    "server-name": {
      "command": "node",
      "args": ["/opt/homebrew/lib/node_modules/@mcphub/gateway/dist/src/mcphub-gateway.js"]
    }
  }
}

Note: Replace the path in args with your actual path from step 1.

3. Configure MCP Server Connection

The gateway uses an environment variable to specify which MCP server to connect to:

# Set the MCP server URL (optional)
export MCP_SERVER_URL=https://your-mcp-server.com/api/mcp

By default, the gateway connects to the MCP Hub server at https://server.mcphub.ai/api/mcp, which provides access to various pre-configured MCP services.

4. Start Claude Desktop

Start or restart Claude Desktop to apply the changes.

Troubleshooting

  1. If you can’t find the gateway path:

    # List all global packages and look for @mcphub/gateway
    npm list -g
    
    # Or specifically check the gateway
    npm list -g @mcphub/gateway
    
  2. Verify your Node.js installation:

    # Check Node version
    node --version
    
    # Check npm version
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "server-name": { "command": "node", "args": ["/opt/homebrew/lib/node_modules/@mcphub/gateway/dist/src/mcphub-gateway.js"] } } }