Skip to main content
Glama
Portkey MCP Server
by r-huijts

Portkey MCP サーバー

鍛冶屋のバッジ

AIアシスタントをPortkeyプラットフォームのエキスパートに変身させましょう!このMCPサーバーはClaudeをPortkeyのAPIに接続し、AI構成、ワークスペース、分析、ユーザーアクセスの包括的な管理を可能にします。

インストール

ソースから

  1. このリポジトリをクローンする

  2. 依存関係をインストールします:

npm install
  1. サンプル環境ファイルをコピーします。

cp .env.example .env
  1. Portkey API キーを.envファイルに追加します。

PORTKEY_API_KEY=your_portkey_api_key_here
  1. 次に、Claude 構成ファイルを更新します。

{
  "mcpServers": {
    "portkey-server": {
      "command": "node",
      "args": [
        "/path/to/portkey-server/build/index.js"
      ],
      "env": {
        "PORTKEY_API_KEY": "your_portkey_api_key_here"
      }
    }
  }
}

必ず次の点に注意してください:

  • /path/to/portkey-server実際のインストールパスに置き換えます。

  • envセクションにPortkey APIキーを追加します

設定を更新した後、変更を有効にするために Claude Desktop を再起動します。

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Portkey MCP Server を自動的にインストールするには:

npx -y @smithery/cli install @r-huijts/portkey-admin-mcp-server --client claude

Related MCP server: jotae-mcp

実際のユースケース

  • 「さまざまなモデルにわたる現在の API 使用状況統計はどうなっていますか?」

  • 「AI デプロイメントのパフォーマンス メトリックを表示してください」

  • 「チームのプロジェクト用に新しいワークスペースを作成する」

  • 「現在の API キーの使用状況と残りのクレジットはいくらですか?」

  • 「先月のAPI呼び出しの分析レポートを生成する」

  • 「開発環境にレート制限を設定する」

  • 「本番環境エンドポイントのフォールバック動作を構成する」

  • 「Portkeyワークスペースにチームメンバーを追加する」

  • 「API 呼び出しのレイテンシ統計を表示してください」

  • 「API リクエストのカスタム ヘッダーを設定する」

🔑 環境変数

変数

説明

ポートキー_API_キー

Portkey APIキー(必須)

🌟 特徴

この MCP サーバーは、次の機能を通じて Portkey のプラットフォームへの包括的なアクセスを提供します。

ユーザーとアクセス管理

  • ユーザー管理: Portkey組織内のすべてのユーザーを一覧表示して管理します

  • ユーザーの招待: カスタマイズ可能な役割と権限を持つ新しいユーザーを招待します

  • ワークスペース アクセス: 異なるワークスペース間でのユーザー アクセス レベルを構成する

  • ロールベースの制御: 組織およびワークスペースレベルで管理者、マネージャー、またはメンバーの役割を割り当てます

分析とレポート

  • 使用状況分析: 詳細なユーザーアクティビティとリクエストパターンを追跡します

  • コスト分析: さまざまな期間にわたるコストを監視および分析します

  • リクエストメトリクス: リクエスト数、トークンの使用状況、応答時間を表示します

  • フィルタリングされたレポート: ステータス コード、仮想キー、時間範囲などのカスタム基準に基づいてレポートを生成します。

ワークスペース管理

  • ワークスペースの概要: すべてのワークスペースの詳細情報の一覧と表示

  • 構成管理: ワークスペース構成にアクセスして確認する

  • 仮想キー管理: 使用制限とレート制限付きの API キーを監視および管理します

  • ワークスペース設定: ワークスペースのメタデータとユーザーの関連付けを表示および追跡します

構成とAPI設定

  • 構成リスト: 組織内で利用可能なすべての構成を表示します

  • 詳細な設定情報: キャッシュ設定、再試行ポリシー、ルーティング戦略にアクセスします

  • 仮想キーの詳細: キーのステータス、使用制限、レート制限を監視します

  • API統合: APIエンドポイントとその構成を追跡する

ライセンス

このプロジェクトはISCライセンスの下でライセンスされています - 詳細についてはLICENSEファイルを参照してください

Available Tools

9 tools
get_configC

Retrieve detailed information about a specific configuration, including cache settings, retry policies, and routing strategy

Inputs: slug (required).

get_cost_analyticsC

Retrieve detailed cost analytics data over time, including total costs and averages per request

Inputs: time_of_generation_min (required), time_of_generation_max (required), total_units_min, total_units_max, +17 more.

get_user_statsC

Retrieve detailed analytics data about user activity within a specified time range, including request counts and costs

Inputs: time_of_generation_min (required), time_of_generation_max (required), total_units_min, total_units_max, +5 more.

get_workspaceA

Retrieve detailed information about a specific workspace, including its configuration, metadata, and user access details

Inputs: workspace_id (required).

invite_userB

Invite a new user to your Portkey organization with specific workspace access and API key permissions

Inputs: email (required), role (required), workspaces (required), first_name, +2 more.

list_all_usersB

List all users in your Portkey organization, including their roles and account details

Inputs: no named parameters.

list_configsB

Retrieve all configurations in your Portkey organization, including their status and workspace associations

Inputs: no named parameters.

list_virtual_keysB

Retrieve all virtual keys in your Portkey organization, including their usage limits, rate limits, and status

Inputs: no named parameters.

list_workspacesA

Retrieve all workspaces in your Portkey organization, including their configurations and metadata

Inputs: page_size, current_page.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 9 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting different resources and actions, with no overlap in functionality. For example, get_config retrieves a specific configuration, list_configs lists all configurations, and invite_user handles user invitations, making misselection unlikely.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, such as get_config, list_configs, and invite_user. This predictability makes it easy for agents to understand and use the tools without confusion.

    Tool Count5/5

    With 9 tools, the server is well-scoped for managing a Portkey organization, covering configurations, users, workspaces, analytics, and keys. Each tool earns its place by addressing specific needs without being excessive or insufficient.

    Completeness4/5

    The toolset provides strong coverage for retrieval, listing, and user management, but lacks update or delete operations for resources like configurations or workspaces. Agents can work around this by using existing tools, but it's a minor gap in lifecycle coverage.

    Related MCP Connectors

    Related MCP Servers