Model Context Protocol Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides containerization capabilities for the MCP server, allowing for consistent deployment across environments using Docker images.

  • Enables deployment and management of the MCP server on Kubernetes clusters, with support for scaling, health checks, and configuration management through Kubernetes resources.

  • Supports running the MCP server on Node.js runtime environments, allowing developers to build and extend MCP functionality using Node.js ecosystem.

モデルコンテキストプロトコル(MCP)サーバー

このリポジトリには、Azure Kubernetes Service (AKS) 上の MCP サーバーの Kubernetes デプロイ構成が含まれています。

前提条件

  • Azure CLI
  • kubectl
  • ドッカー
  • Node.js 18歳以上

プロジェクト構造

. ├── k8s/ │ ├── deployment.yaml # Kubernetes deployment configuration │ ├── service.yaml # Kubernetes service configuration │ └── configmap.yaml # Kubernetes configmap for environment variables ├── src/ # Source code directory ├── Dockerfile # Container build configuration ├── package.json # Node.js dependencies └── tsconfig.json # TypeScript configuration

展開手順

  1. Docker イメージをビルドします。
docker build -t mcp-server:latest .
  1. イメージを Azure Container Registry (ACR) にプッシュします。
az acr login --name <your-acr-name> docker tag mcp-server:latest <your-acr-name>.azurecr.io/mcp-server:latest docker push <your-acr-name>.azurecr.io/mcp-server:latest
  1. Kubernetes マニフェストを適用します。
kubectl apply -f k8s/
  1. 展開を確認します。
kubectl get pods kubectl get services

構成

アプリケーションは、ConfigMap ( k8s/configmap.yaml ) で定義された環境変数を通じて構成できます。

健康診断

アプリケーションは、Kubernetes ヘルスチェック用の/healthエンドポイントを公開します。

監視

  • リソースの使用状況はAzure Monitorを通じて監視できます
  • アプリケーションログはkubectl logsから入手できます。

安全

  • アプリケーションはHTTPSを使用します
  • CORSは安全なクロスオリジンリクエスト用に設定されている
  • 不正使用を防ぐためにレート制限が実装されています
  • Helmet.jsはセキュリティヘッダーに使用されます

スケーリング

デプロイメントはデフォルトで3つのレプリカで構成されています。以下の方法でスケールアップまたはスケールダウンできます。

kubectl scale deployment mcp-server --replicas=<number>
-
security - not tested
F
license - not found
-
quality - not tested

構成可能な環境変数との安全な通信、正常性の監視、および Azure Kubernetes Service でのスケーラブルなデプロイを可能にする、モデル コンテキスト プロトコル用の Kubernetes デプロイ サーバー。

  1. Prerequisites
    1. Project Structure
      1. Deployment Steps
        1. Configuration
          1. Health Checks
            1. Monitoring
              1. Security
                1. Scaling
                  ID: p1578zb7bw