InfoGrab DocsInfoGrab Docs

Notion MCP 서버를 Teleport에 연결

요약

Teleport는 Teleport Application Service를 통해 MCP 서버에 대한 보안 액세스를 제공할 수 있습니다. Notion MCP 서버는 통합 토큰을 사용하여 Notion에 접근하고 Teleport 애플리케이션 서비스가 접근할 수 있는 로컬 엔드포인트에서 실행됩니다.

Teleport는 Teleport Application Service를 통해 MCP 서버에 대한 보안 액세스를 제공할 수 있습니다.

이 가이드에서는 다음을 수행합니다:

  1. MCP 서버가 액세스할 수 있도록 Notion 서비스를 구성합니다.
  2. Notion MCP Server를 실행합니다.
  3. MCP 서버를 Teleport 클러스터에 등록하고 연결합니다.

작동 방식#

Notion MCP 서버는 통합 토큰을 사용하여 Notion에 접근하고 Teleport 애플리케이션 서비스가 접근할 수 있는 로컬 엔드포인트에서 실행됩니다. Teleport는 모든 클라이언트 요청을 서버로 프록시하며, 서버는 통합에 부여된 권한을 사용하여 Notion과 상호작용합니다.

사전 요구사항#

  • 실행 중인 Teleport (v18.3.0 or higher) 클러스터. Teleport를 시작하려면 무료 체험판에 가입하거나 데모 환경을 구성하세요.

  • `tsh` client.

    Installing \`tsh\` client
    1. Teleport 클러스터의 버전을 확인합니다. `tsh` client는 Teleport 클러스터 버전보다 최대 한 개의 메이저 버전까지만 뒤처질 수 있습니다. Proxy Service의 /v1/webapi/find로 GET 요청을 보내고 JSON 쿼리 도구를 사용하여 클러스터 버전을 확인합니다. teleport.example.com:443를 Teleport Proxy Service의 웹 주소로 바꿉니다:

      $ TELEPORT_DOMAIN=teleport.example.com:443
      $ TELEPORT_VERSION="$(curl -s https://$TELEPORT_DOMAIN/v1/webapi/find | jq -r '.server_version')"
      
    2. 사용 중인 플랫폼에 대한 지침에 따라 `tsh` client를 설치합니다:

Mac

     \`tsh\` client가 포함된, 서명된 Teleport macOS .pkg 설치 프로그램을 다운로드합니다:
 
     ```code
     $ curl -O https://cdn.teleport.dev/teleport-${TELEPORT_VERSION?}.pkg
     ```

     Finder에서 `pkg` 파일을 더블 클릭하여 설치를 시작합니다.
 
     
Warning
       Homebrew를 사용하여 Teleport를 설치하는 것은 지원되지 않습니다. Homebrew의
       Teleport 패키지는 Teleport에서 유지 관리하지 않으므로 신뢰성이나 보안을
       보장할 수 없습니다.
     

Windows - Powershell

     ```code
     $ curl.exe -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION?}-windows-amd64-bin.zip
     # Unzip the archive and move the \`tsh\` client to your %PATH%
     # NOTE: Do not place the \`tsh\` client in the System32 directory, as this can cause issues when using WinSCP.
     # Use %SystemRoot% (C:\Windows) or %USERPROFILE% (C:\Users\<username>) instead.
     ```
 
   

 
   

Linux

     Linux 설치판의 모든 Teleport 바이너리에는 \`tsh\` client가 포함되어 있습니다.  RPM/DEB
     패키지 및 i386/ARM/ARM64용 다운로드를 포함한 더 많은 옵션은
     [설치 페이지](../installation/installation.mdx)를 참조하세요.
 
     ```code
     $ curl -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION?}-linux-amd64-bin.tar.gz
     $ tar -xzf teleport-v${TELEPORT_VERSION?}-linux-amd64-bin.tar.gz
     $ cd teleport
     $ sudo ./install
     # Teleport binaries have been copied to /usr/local/bin
     ```
   

 
  • Notion 워크스페이스에 대한 접근 권한과 통합을 관리할 수 있는 충분한 권한.
  • MCP 서버를 실행할 Teleport 애플리케이션 서비스가 접근할 수 있는 호스트.
  • 실행 중인 Teleport 애플리케이션 서비스. 아직 설정하지 않았다면 시작하기 가이드를 따르세요.
  • MCP 서버에 접근할 수 있는 충분한 권한을 가진 Teleport 사용자(예: mcp-user 역할).

1/3단계. Notion에서 통합 생성#

https://www.notion.so/profile/integrations로 이동하여 새 내부 통합을 생성합니다.

Notion 통합

LLM에서 사용 가능한 범위를 제한하려면 "Capabilities" 섹션에서 "Read Content"를 제외한 모든 권한을 비활성화합니다.

그런 다음 "Access" 탭을 열고 통합이 접근할 수 있는 페이지를 선택합니다.

Notion 접근

마지막으로 "Configuration" 탭으로 돌아가 다음 단계에서 사용하기 위해 "Internal Integration Secret"을 복사합니다.

2/3단계. Notion MCP 서버 실행#

Notion 통합 토큰 ntn_your_internal_integration_secret을 사용하여 Notion MCP 서버를 시작합니다:

$ export NOTION_TOKEN=ntn_your_internal_integration_secret
$ npx @notionhq/notion-mcp-server --transport http --port 8000 --auth-token teleport-local-connection

MCP 서버는 기본적으로 모든 네트워크 인터페이스에서 수신합니다. 프라이빗 네트워크에서 실행하고 호스트명 localhost가 Teleport 애플리케이션 서비스에서 접근할 수 있는지 확인합니다.

--auth-token 값은 Teleport가 MCP 서버에 인증하는 데 사용하는 공유 시크릿입니다. MCP 서버는 공개적으로 접근할 수 없으므로 고정 값을 사용하는 것이 허용됩니다.

3/3단계. Teleport를 통한 연결#

Teleport Application Service 구성에서 정의하거나, tctl 또는 Terraform을 사용한 동적 등록을 통해 Teleport에 MCP 애플리케이션을 등록할 수 있습니다:

Static configuration

MCP_HOST를 Notion MCP 서버를 실행하는 호스트로 교체합니다:

app_service:
  enabled: "yes"
  apps:
  - name: "notion-mcp"
    uri: "mcp+http://MCP_HOST:8000/mcp"
    labels:
      env: dev
      service: notion

Application Service를 재시작합니다.

tctl

app-notion-mcp.yaml라는 이름의 app 리소스 정의 파일을 생성합니다. MCP_HOST를 Notion MCP 서버를 실행하는 호스트로 교체합니다:

# app-notion-mcp.yaml
kind: app
version: v3
metadata:
  name: notion-mcp
  labels:
    env: dev
    service: notion
spec:
  uri: "mcp+http://MCP_HOST:8000/mcp"

다음 명령으로 app 리소스를 생성합니다:

$ tctl create -f app-notion-app.yaml

Terraform

terraform에서 teleport_app 리소스를 생성합니다. MCP_HOST를 Notion MCP 서버를 실행하는 호스트로 교체합니다:

resource "teleport_app" "grafana" {
  version = "v3"
  metadata = {
    name = "grafana"
    labels = {
      "teleport.dev/origin" = "dynamic"
      "env"                 = "dev"
      "service"             = "notion"
    }
  }

  spec = {
    uri = "mcp+http://MCP_HOST:8000/mcp"
  }
}

구성을 적용합니다:

$ terraform apply

MCP 서버와 모든 도구에 대한 액세스를 부여하려면 사전 설정된 mcp-user 역할을 Teleport 사용자에게 할당합니다.

선택적으로, 역할의 mcp.tools 목록을 조정하여 사용자가 액세스할 수 있는 MCP 도구를 제한할 수 있습니다. 예를 들어:

kind: role
version: v8
metadata:
  name: notion-mcp-readonly
spec:
  allow:
    app_labels:
      'service': 'notion'
    mcp:
      tools:
      - API-get-*
      - API-retrieve-*
      - API-post-database-query
      - API-post-search

이제 애플리케이션이 tsh mcp ls에 나타날 때까지 기다린 다음, MCP 서버에 접근하도록 MCP 클라이언트를 구성하십시오. 예를 들면:

$ tsh mcp config notion-mcp --client-config claude

MCP 클라이언트를 구성한 후에는 teleport-mcp-notion-mcp에서 Notion 관련 도구를 찾을 수 있습니다. 이제 이 도구들을 사용하여 MCP 클라이언트에서 Teleport를 통해 Notion와 상호작용할 수 있습니다:

Notion Claude

다음 단계#

Notion MCP 서버를 Teleport에 연결

Teleport v18.9
원문 보기
요약

Teleport는 Teleport Application Service를 통해 MCP 서버에 대한 보안 액세스를 제공할 수 있습니다. Notion MCP 서버는 통합 토큰을 사용하여 Notion에 접근하고 Teleport 애플리케이션 서비스가 접근할 수 있는 로컬 엔드포인트에서 실행됩니다.

Teleport는 Teleport Application Service를 통해 MCP 서버에 대한 보안 액세스를 제공할 수 있습니다.

이 가이드에서는 다음을 수행합니다:

  1. MCP 서버가 액세스할 수 있도록 Notion 서비스를 구성합니다.
  2. Notion MCP Server를 실행합니다.
  3. MCP 서버를 Teleport 클러스터에 등록하고 연결합니다.

작동 방식#

Notion MCP 서버는 통합 토큰을 사용하여 Notion에 접근하고 Teleport 애플리케이션 서비스가 접근할 수 있는 로컬 엔드포인트에서 실행됩니다. Teleport는 모든 클라이언트 요청을 서버로 프록시하며, 서버는 통합에 부여된 권한을 사용하여 Notion과 상호작용합니다.

사전 요구사항#

  • 실행 중인 Teleport (v18.3.0 or higher) 클러스터. Teleport를 시작하려면 무료 체험판에 가입하거나 데모 환경을 구성하세요.

  • `tsh` client.

    Installing \`tsh\` client
    1. Teleport 클러스터의 버전을 확인합니다. `tsh` client는 Teleport 클러스터 버전보다 최대 한 개의 메이저 버전까지만 뒤처질 수 있습니다. Proxy Service의 /v1/webapi/find로 GET 요청을 보내고 JSON 쿼리 도구를 사용하여 클러스터 버전을 확인합니다. teleport.example.com:443를 Teleport Proxy Service의 웹 주소로 바꿉니다:

      $ TELEPORT_DOMAIN=teleport.example.com:443
      $ TELEPORT_VERSION="$(curl -s https://$TELEPORT_DOMAIN/v1/webapi/find | jq -r '.server_version')"
      
    2. 사용 중인 플랫폼에 대한 지침에 따라 `tsh` client를 설치합니다:

Mac

     \`tsh\` client가 포함된, 서명된 Teleport macOS .pkg 설치 프로그램을 다운로드합니다:
 
     ```code
     $ curl -O https://cdn.teleport.dev/teleport-${TELEPORT_VERSION?}.pkg
     ```

     Finder에서 `pkg` 파일을 더블 클릭하여 설치를 시작합니다.
 
     
Warning
       Homebrew를 사용하여 Teleport를 설치하는 것은 지원되지 않습니다. Homebrew의
       Teleport 패키지는 Teleport에서 유지 관리하지 않으므로 신뢰성이나 보안을
       보장할 수 없습니다.
     

Windows - Powershell

     ```code
     $ curl.exe -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION?}-windows-amd64-bin.zip
     # Unzip the archive and move the \`tsh\` client to your %PATH%
     # NOTE: Do not place the \`tsh\` client in the System32 directory, as this can cause issues when using WinSCP.
     # Use %SystemRoot% (C:\Windows) or %USERPROFILE% (C:\Users\<username>) instead.
     ```
 
   

 
   

Linux

     Linux 설치판의 모든 Teleport 바이너리에는 \`tsh\` client가 포함되어 있습니다.  RPM/DEB
     패키지 및 i386/ARM/ARM64용 다운로드를 포함한 더 많은 옵션은
     [설치 페이지](../installation/installation.mdx)를 참조하세요.
 
     ```code
     $ curl -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION?}-linux-amd64-bin.tar.gz
     $ tar -xzf teleport-v${TELEPORT_VERSION?}-linux-amd64-bin.tar.gz
     $ cd teleport
     $ sudo ./install
     # Teleport binaries have been copied to /usr/local/bin
     ```
   

 
  • Notion 워크스페이스에 대한 접근 권한과 통합을 관리할 수 있는 충분한 권한.
  • MCP 서버를 실행할 Teleport 애플리케이션 서비스가 접근할 수 있는 호스트.
  • 실행 중인 Teleport 애플리케이션 서비스. 아직 설정하지 않았다면 시작하기 가이드를 따르세요.
  • MCP 서버에 접근할 수 있는 충분한 권한을 가진 Teleport 사용자(예: mcp-user 역할).

1/3단계. Notion에서 통합 생성#

https://www.notion.so/profile/integrations로 이동하여 새 내부 통합을 생성합니다.

Notion 통합

LLM에서 사용 가능한 범위를 제한하려면 "Capabilities" 섹션에서 "Read Content"를 제외한 모든 권한을 비활성화합니다.

그런 다음 "Access" 탭을 열고 통합이 접근할 수 있는 페이지를 선택합니다.

Notion 접근

마지막으로 "Configuration" 탭으로 돌아가 다음 단계에서 사용하기 위해 "Internal Integration Secret"을 복사합니다.

2/3단계. Notion MCP 서버 실행#

Notion 통합 토큰 ntn_your_internal_integration_secret을 사용하여 Notion MCP 서버를 시작합니다:

$ export NOTION_TOKEN=ntn_your_internal_integration_secret
$ npx @notionhq/notion-mcp-server --transport http --port 8000 --auth-token teleport-local-connection

MCP 서버는 기본적으로 모든 네트워크 인터페이스에서 수신합니다. 프라이빗 네트워크에서 실행하고 호스트명 localhost가 Teleport 애플리케이션 서비스에서 접근할 수 있는지 확인합니다.

--auth-token 값은 Teleport가 MCP 서버에 인증하는 데 사용하는 공유 시크릿입니다. MCP 서버는 공개적으로 접근할 수 없으므로 고정 값을 사용하는 것이 허용됩니다.

3/3단계. Teleport를 통한 연결#

Teleport Application Service 구성에서 정의하거나, tctl 또는 Terraform을 사용한 동적 등록을 통해 Teleport에 MCP 애플리케이션을 등록할 수 있습니다:

Static configuration

MCP_HOST를 Notion MCP 서버를 실행하는 호스트로 교체합니다:

app_service:
  enabled: "yes"
  apps:
  - name: "notion-mcp"
    uri: "mcp+http://MCP_HOST:8000/mcp"
    labels:
      env: dev
      service: notion

Application Service를 재시작합니다.

tctl

app-notion-mcp.yaml라는 이름의 app 리소스 정의 파일을 생성합니다. MCP_HOST를 Notion MCP 서버를 실행하는 호스트로 교체합니다:

# app-notion-mcp.yaml
kind: app
version: v3
metadata:
  name: notion-mcp
  labels:
    env: dev
    service: notion
spec:
  uri: "mcp+http://MCP_HOST:8000/mcp"

다음 명령으로 app 리소스를 생성합니다:

$ tctl create -f app-notion-app.yaml

Terraform

terraform에서 teleport_app 리소스를 생성합니다. MCP_HOST를 Notion MCP 서버를 실행하는 호스트로 교체합니다:

resource "teleport_app" "grafana" {
  version = "v3"
  metadata = {
    name = "grafana"
    labels = {
      "teleport.dev/origin" = "dynamic"
      "env"                 = "dev"
      "service"             = "notion"
    }
  }

  spec = {
    uri = "mcp+http://MCP_HOST:8000/mcp"
  }
}

구성을 적용합니다:

$ terraform apply

MCP 서버와 모든 도구에 대한 액세스를 부여하려면 사전 설정된 mcp-user 역할을 Teleport 사용자에게 할당합니다.

선택적으로, 역할의 mcp.tools 목록을 조정하여 사용자가 액세스할 수 있는 MCP 도구를 제한할 수 있습니다. 예를 들어:

kind: role
version: v8
metadata:
  name: notion-mcp-readonly
spec:
  allow:
    app_labels:
      'service': 'notion'
    mcp:
      tools:
      - API-get-*
      - API-retrieve-*
      - API-post-database-query
      - API-post-search

이제 애플리케이션이 tsh mcp ls에 나타날 때까지 기다린 다음, MCP 서버에 접근하도록 MCP 클라이언트를 구성하십시오. 예를 들면:

$ tsh mcp config notion-mcp --client-config claude

MCP 클라이언트를 구성한 후에는 teleport-mcp-notion-mcp에서 Notion 관련 도구를 찾을 수 있습니다. 이제 이 도구들을 사용하여 MCP 클라이언트에서 Teleport를 통해 Notion와 상호작용할 수 있습니다:

Notion Claude

다음 단계#