Portkey MCP Server
Portkey MCP サーバー
AIアシスタントをPortkeyプラットフォームのエキスパートに変身させましょう!このMCPサーバーはClaudeをPortkeyのAPIに接続し、AI構成、ワークスペース、分析、ユーザーアクセスの包括的な管理を可能にします。
インストール
ソースから
このリポジトリをクローンする
依存関係をインストールします:
npm installサンプル環境ファイルをコピーします。
cp .env.example .envPortkey API キーを
.envファイルに追加します。
PORTKEY_API_KEY=your_portkey_api_key_here次に、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 claudeRelated 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 toolsget_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
Scored across 9 tools
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.
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.
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.
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
Connect Claude to your store, your WhatsApp and your ads.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
- platform7nDeprecatedtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Connect Claude, Cursor, or any MCP client to your FlowContent account
Related MCP Servers
- AlicenseBqualityDmaintenanceConnects Claude to WordPress sites through the REST API, enabling AI-assisted content creation, publishing, media management, user administration, and site maintenance tasks through natural language.4723MIT
- AlicenseBqualityDmaintenanceConnects Claude to Jotae for creating events, configuring WhatsApp and email automations, and reading metrics through natural language.21MIT
- AlicenseAqualityDmaintenanceConnects Claude to Open WebUI, enabling chat management, RAG knowledge bases, files, functions, and prompts directly from Claude.2692 npm2MIT
- AlicenseNot gradedqualityCmaintenanceConnects Claude to the WhatConverts API, enabling management of leads, accounts, profiles, tracking numbers, and recordings through natural language.1MIT