Portkey MCP by usefulapi

io.usefulapi由 usefulapi.io 發布官方發布者v1.36.4更新於 Nov 7, 2026

Read AI-gateway analytics, configs, virtual keys, workspaces and users; log request feedback.

發布方自己的服務:Ably MCP by usefulapi

已驗證Streamable HTTP可網頁執行雲端與基礎設施安全與監控資料與分析

概覽

AI 產生的概覽

唯讀存取 Portkey AI 閘道的分析資料、設定、虛擬金鑰、工作區、使用者與稽核日誌,並可寫入請求回饋。

可以做什麼
  • 查詢成本、請求數、Token、延遲、錯誤率與快取命中率的時間序列,可依虛擬金鑰、設定或中繼資料篩選
  • 取得依模型、使用者或中繼資料彙總的分組分析
  • 檢視閘道設定及其路由、備援、重試與快取規則
  • 列出並讀取 API 金鑰中繼資料、虛擬金鑰(含供應商與限額)、工作區及工作區成員
  • 列出組織使用者、待處理邀請與稽核日誌項目
  • 針對某筆請求追蹤寫入品質分數,可附權重與中繼資料
適用情境
適合讓助理回答 AI 閘道的花費、Token 用量、延遲或錯誤趨勢,或在不開啟 Portkey 主控台的情況下查詢組織內的設定、虛擬金鑰、工作區與使用者。
執行需求
遠端託管端點,透過 streamable HTTP 連線,無需本機安裝。以 OAuth 登入,首次連線時需貼上 Portkey API 金鑰,該金鑰會經驗證並依使用者儲存。請勿在用戶端設定中加入 Authorization 標頭或 API 金鑰。
安裝前請注意
Portkey API 金鑰是可存取組織閘道資料的憑證,會由第三方託管服務儲存。多數工具為唯讀,但 portkey_create_feedback 會將紀錄寫入帳戶。伺服器另提供訂閱相關工具,會回傳付款連結並可取消付費方案;呼叫次數有限制(免費方案每月 50 次,付費方案另計)。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Portkey MCP by usefulapi,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.usefulapi%2Fportkey/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "portkey-by-usefulapi": {
      "type": "http",
      "url": "https://portkey.usefulapi.io/mcp"
    }
  }
}

README

Portkey MCP by usefulapi

Manage Portkey AI-gateway admin and observability from Claude, Cursor, or any MCP client — read analytics, configs, virtual keys, workspaces, users and audit logs, and log request feedback. Hosted, no local install: connect with your Portkey API key.

Live endpoint: https://portkey.usefulapi.io/mcp · Homepage: https://usefulapi.io

Connect

  • Claude (claude.ai, Desktop): open Customize → Connectors, click + Add → Add custom connector, and paste https://portkey.usefulapi.io/mcp.
  • Claude Code: claude mcp add --transport http portkey https://portkey.usefulapi.io/mcp, then run /mcp to log in.
  • VS Code: Add to VS Code.
  • Cursor and other clients: add the URL as a remote MCP server:
json
{  "mcpServers": {    "portkey": {      "url": "https://portkey.usefulapi.io/mcp"    }  }}

Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your Portkey credentials.

Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/portkey/

On first connect you'll paste your Portkey API key (from the Portkey app → API Keys). It's validated, stored per-user, and scoped to you — no keys in config files.

Tools

ToolTypeWhat it does
portkey_get_analytics_graphreadGet analytics graph
portkey_get_analytics_groupreadGet analytics group
portkey_list_configsreadList configs
portkey_get_configreadGet config
portkey_list_api_keysreadList API keys
portkey_get_api_keyreadGet API key
portkey_list_virtual_keysreadList virtual keys
portkey_get_virtual_keyreadGet virtual key
portkey_list_workspacesreadList workspaces
portkey_get_workspacereadGet workspace
portkey_list_workspace_membersreadList workspace members
portkey_list_usersreadList users
portkey_get_userreadGet user
portkey_list_user_invitesreadList user invites
portkey_list_audit_logsreadList audit logs
portkey_create_feedbackwriteCreate feedback
portkey_usage_statusmetaUsage status (free-tier meter)
portkey_request_featuremetaRequest a missing feature
portkey_upgrademetaUpgrade to Pro or Pro+
portkey_cancel_subscriptionmetaCancel the Pro subscription

read tools are read-only; write tools mutate data (clients should confirm them); meta tools report usage, manage your subscription or send a feature request.

Pricing

PlanPriceLimit
Free$050 tool calls / month
Pro (per user)$9/mo or $90/yr (2 months free)Unlimited*

*Pro has a fair use limit of 10,000 tool calls a month on this server. For more, write to [email protected].

Pro covers this server only. Subscribe with portkey_upgrade (it returns a Stripe Checkout link). Cancel any time with portkey_cancel_subscription: Pro continues to the end of the paid period, with no refund for the current period, and running portkey_upgrade before then undoes the cancel. Or write to [email protected].

License

MIT — see LICENSE. Documentation only; the server is hosted.

來源:servers/portkey/README.md,提交 4046075

工具

16

portkey_get_analytics_graph

Get analytics graph

Get a time-series analytics graph for a single metric (cost, requests, tokens, latency, error-rate, cache-hit-rate, …) over a time window. Optionally scope by virtual keys, configs, or metadata. Portkey: GET /analytics/graphs/{metric}.

輸入參數metric必填configsmetadatatotal_unitsvirtual_keystime_of_generation_max必填time_of_generation_min必填

portkey_get_analytics_group

Get analytics group

Get grouped analytics (aggregated by models, users, or metadata) over a time window. Portkey: GET /analytics/groups/{group}.

輸入參數group必填page_sizecurrent_pagetime_of_generation_max必填time_of_generation_min必填

portkey_list_configs

List configs

List gateway configs (routing/fallback/retry/cache rulesets applied to requests). Portkey: GET /configs.

輸入參數workspace_id

portkey_get_config

Get config

Get a single gateway config by slug (or id), including its routing rules. Portkey: GET /configs/{slug}.

輸入參數slug必填

portkey_list_api_keys

List API keys

List API keys in the organization/workspace (metadata only — secrets are never returned). Portkey: GET /api-keys.

輸入參數page_sizecurrent_pageworkspace_id

portkey_get_api_key

Get API key

Get a single API key's metadata by id (the secret is never returned). Portkey: GET /api-keys/{id}.

輸入參數id必填

portkey_list_virtual_keys

List virtual keys

List virtual keys (the aliases that map to provider credentials + budget/rate limits used in requests). Portkey: GET /virtual-keys.

輸入參數page_sizecurrent_page

portkey_get_virtual_key

Get virtual key

Get a single virtual key by slug, including its provider + limits. Portkey: GET /virtual-keys/{slug}.

輸入參數slug必填

portkey_list_workspaces

List workspaces

List workspaces in the organization. Portkey: GET /workspaces.

輸入參數page_sizecurrent_page

portkey_get_workspace

Get workspace

Get a single workspace by slug/id. Portkey: GET /workspaces/{id}.

輸入參數id必填

portkey_list_workspace_members

List workspace members

List members of a workspace (users + their roles). Portkey: GET /workspaces/{id}/members.

輸入參數id必填page_sizecurrent_page

portkey_list_users

List users

List users in the organization. Filter by role or email. Portkey: GET /users.

輸入參數roleemailpage_sizecurrent_page

portkey_get_user

Get user

Get a single user by id. Portkey: GET /users/{id}.

輸入參數id必填

portkey_list_user_invites

List user invites

List pending user invitations to the organization. Portkey: GET /user-invites.

輸入參數page_sizecurrent_page

portkey_list_audit_logs

List audit logs

List audit log entries (admin actions across the organization). Portkey: GET /audit-logs.

輸入參數page_sizecurrent_page

portkey_create_feedback

Create feedback

WRITES a feedback record into the Portkey account, attached to a request/trace by trace_id. Use for logging a quality score (typically -10..10) with an optional weight (0..1) and metadata. Portkey: POST /feedback.

輸入參數value必填weightmetadatatrace_id必填

版本歷史

21
  1. v1.36.4最新Nov 7, 2026
  2. v1.35.3Nov 5, 2026
  3. v1.35.2Nov 5, 2026
  4. v1.35.1Nov 4, 2026
  5. v1.35.0Nov 3, 2026
  6. v1.34.1Nov 3, 2026
  7. v1.33.0Nov 1, 2026
  8. v1.31.0Oct 31, 2026
  9. v1.30.0Oct 31, 2026
  10. v1.29.2Oct 30, 2026
  11. v1.29.0Oct 30, 2026
  12. v1.24.0Oct 26, 2026
  13. v1.21.3Oct 25, 2026
  14. v1.21.0Oct 25, 2026
  15. v1.20.0Oct 24, 2026
  16. v1.17.0Oct 23, 2026
  17. v1.16.4Oct 22, 2026
  18. v1.16.3Oct 21, 2026
  19. v1.11.1Oct 9, 2026
  20. v1.10.0Oct 9, 2026
  21. v1.0.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Usefulapi 整合