Portkey MCP by usefulapi is an MCP server published by io.usefulapi, hosted at portkey.usefulapi.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 16 tools, including portkey_get_analytics_graph, portkey_get_analytics_group, portkey_list_configs, portkey_get_config, portkey_list_api_keys.
Read AI-gateway analytics, configs, virtual keys, workspaces and users; log request feedback.
4,407 connections through 5 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
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}.
| Parameter | Type | Description |
|---|---|---|
| metric * | string | Which metric graph to return. |
| configs | string | Comma-separated config slugs to scope the graph. |
| metadata | string | JSON string of metadata key/values to scope the graph. |
| total_units | string | Bucket size for the series, e.g. "day" or "hour". |
| virtual_keys |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| string |
| Comma-separated virtual key slugs to scope the graph. |
| time_of_generation_max * | string | End of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM). |
| time_of_generation_min * | string | Start of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM). |
{
"name": "portkey_get_analytics_graph",
"title": "Get analytics graph",
"description": "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}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"metric",
"time_of_generation_min",
"time_of_generation_max"
],
"properties": {
"metric": {
"enum": [
"cost",
"requests",
"tokens",
"latency",
"error-rate",
"errors",
"status-codes",
"requests-per-user",
"rescued-requests",
"cache-hit-rate",
"cache-hit-latency",
"users",
"weighted-feedback"
],
"type": "string",
"description": "Which metric graph to return."
},
"configs": {
"type": "string",
"description": "Comma-separated config slugs to scope the graph."
},
"metadata": {
"type": "string",
"description": "JSON string of metadata key/values to scope the graph."
},
"total_units": {
"type": "string",
"description": "Bucket size for the series, e.g. \"day\" or \"hour\"."
},
"virtual_keys": {
"type": "string",
"description": "Comma-separated virtual key slugs to scope the graph."
},
"time_of_generation_max": {
"type": "string",
"description": "End of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM)."
},
"time_of_generation_min": {
"type": "string",
"description": "Start of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM)."
}
}
},
"annotations": {
"title": "Get analytics graph",
"readOnlyHint": true
}
}Get grouped analytics (aggregated by models, users, or metadata) over a time window. Portkey: GET /analytics/groups/{group}.
| Parameter | Type | Description |
|---|---|---|
| group * | string | Dimension to group the analytics by. |
| page_size | integer | Number of records per page. Default 50. |
| current_page | integer | Page number (0-based) for pagination. Default 0. |
| time_of_generation_max * | string | End of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM). |
| time_of_generation_min * | string | Start of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM). |
{
"name": "portkey_get_analytics_group",
"title": "Get analytics group",
"description": "Get grouped analytics (aggregated by models, users, or metadata) over a time window. Portkey: GET /analytics/groups/{group}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"group",
"time_of_generation_min",
"time_of_generation_max"
],
"properties": {
"group": {
"enum": [
"models",
"users",
"metadata"
],
"type": "string",
"description": "Dimension to group the analytics by."
},
"page_size": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of records per page. Default 50."
},
"current_page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Page number (0-based) for pagination. Default 0."
},
"time_of_generation_max": {
"type": "string",
"description": "End of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM)."
},
"time_of_generation_min": {
"type": "string",
"description": "Start of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM)."
}
}
},
"annotations": {
"title": "Get analytics group",
"readOnlyHint": true
}
}List gateway configs (routing/fallback/retry/cache rulesets applied to requests). Portkey: GET /configs.
| Parameter | Type | Description |
|---|---|---|
| workspace_id | string | Scope configs to a workspace id/slug. |
{
"name": "portkey_list_configs",
"title": "List configs",
"description": "List gateway configs (routing/fallback/retry/cache rulesets applied to requests). Portkey: GET /configs.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"workspace_id": {
"type": "string",
"description": "Scope configs to a workspace id/slug."
}
}
},
"annotations": {
"title": "List configs",
"readOnlyHint": true
}
}Get a single gateway config by slug (or id), including its routing rules. Portkey: GET /configs/{slug}.
| Parameter | Type | Description |
|---|---|---|
| slug * | string | The config slug or id. |
{
"name": "portkey_get_config",
"title": "Get config",
"description": "Get a single gateway config by slug (or id), including its routing rules. Portkey: GET /configs/{slug}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"slug"
],
"properties": {
"slug": {
"type": "string",
"description": "The config slug or id."
}
}
},
"annotations": {
"title": "Get config",
"readOnlyHint": true
}
}List API keys in the organization/workspace (metadata only — secrets are never returned). Portkey: GET /api-keys.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Number of records per page. Default 50. |
| current_page | integer | Page number (0-based) for pagination. Default 0. |
| workspace_id | string | Scope keys to a workspace id/slug. |
{
"name": "portkey_list_api_keys",
"title": "List API keys",
"description": "List API keys in the organization/workspace (metadata only — secrets are never returned). Portkey: GET /api-keys.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page_size": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of records per page. Default 50."
},
"current_page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Page number (0-based) for pagination. Default 0."
},
"workspace_id": {
"type": "string",
"description": "Scope keys to a workspace id/slug."
}
}
},
"annotations": {
"title": "List API keys",
"readOnlyHint": true
}
}Get a single API key's metadata by id (the secret is never returned). Portkey: GET /api-keys/{id}.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The API key id. |
{
"name": "portkey_get_api_key",
"title": "Get API key",
"description": "Get a single API key's metadata by id (the secret is never returned). Portkey: GET /api-keys/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The API key id."
}
}
},
"annotations": {
"title": "Get API key",
"readOnlyHint": true
}
}List virtual keys (the aliases that map to provider credentials + budget/rate limits used in requests). Portkey: GET /virtual-keys.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Number of records per page. Default 50. |
| current_page | integer | Page number (0-based) for pagination. Default 0. |
{
"name": "portkey_list_virtual_keys",
"title": "List virtual keys",
"description": "List virtual keys (the aliases that map to provider credentials + budget/rate limits used in requests). Portkey: GET /virtual-keys.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page_size": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of records per page. Default 50."
},
"current_page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Page number (0-based) for pagination. Default 0."
}
}
},
"annotations": {
"title": "List virtual keys",
"readOnlyHint": true
}
}Get a single virtual key by slug, including its provider + limits. Portkey: GET /virtual-keys/{slug}.
| Parameter | Type | Description |
|---|---|---|
| slug * | string | The virtual key slug. |
{
"name": "portkey_get_virtual_key",
"title": "Get virtual key",
"description": "Get a single virtual key by slug, including its provider + limits. Portkey: GET /virtual-keys/{slug}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"slug"
],
"properties": {
"slug": {
"type": "string",
"description": "The virtual key slug."
}
}
},
"annotations": {
"title": "Get virtual key",
"readOnlyHint": true
}
}List workspaces in the organization. Portkey: GET /workspaces.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Number of records per page. Default 50. |
| current_page | integer | Page number (0-based) for pagination. Default 0. |
{
"name": "portkey_list_workspaces",
"title": "List workspaces",
"description": "List workspaces in the organization. Portkey: GET /workspaces.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page_size": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of records per page. Default 50."
},
"current_page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Page number (0-based) for pagination. Default 0."
}
}
},
"annotations": {
"title": "List workspaces",
"readOnlyHint": true
}
}Get a single workspace by slug/id. Portkey: GET /workspaces/{id}.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The workspace slug or id. |
{
"name": "portkey_get_workspace",
"title": "Get workspace",
"description": "Get a single workspace by slug/id. Portkey: GET /workspaces/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The workspace slug or id."
}
}
},
"annotations": {
"title": "Get workspace",
"readOnlyHint": true
}
}List members of a workspace (users + their roles). Portkey: GET /workspaces/{id}/members.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The workspace slug or id. |
| page_size | integer | Number of records per page. Default 50. |
| current_page | integer | Page number (0-based) for pagination. Default 0. |
{
"name": "portkey_list_workspace_members",
"title": "List workspace members",
"description": "List members of a workspace (users + their roles). Portkey: GET /workspaces/{id}/members.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The workspace slug or id."
},
"page_size": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of records per page. Default 50."
},
"current_page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Page number (0-based) for pagination. Default 0."
}
}
},
"annotations": {
"title": "List workspace members",
"readOnlyHint": true
}
}List users in the organization. Filter by role or email. Portkey: GET /users.
| Parameter | Type | Description |
|---|---|---|
| role | string | Filter users by role (e.g. admin, member). |
| string | Filter users by email address. | |
| page_size | integer | Number of records per page. Default 50. |
| current_page | integer | Page number (0-based) for pagination. Default 0. |
{
"name": "portkey_list_users",
"title": "List users",
"description": "List users in the organization. Filter by role or email. Portkey: GET /users.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"role": {
"type": "string",
"description": "Filter users by role (e.g. admin, member)."
},
"email": {
"type": "string",
"description": "Filter users by email address."
},
"page_size": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of records per page. Default 50."
},
"current_page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Page number (0-based) for pagination. Default 0."
}
}
},
"annotations": {
"title": "List users",
"readOnlyHint": true
}
}Get a single user by id. Portkey: GET /users/{id}.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The user id. |
{
"name": "portkey_get_user",
"title": "Get user",
"description": "Get a single user by id. Portkey: GET /users/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The user id."
}
}
},
"annotations": {
"title": "Get user",
"readOnlyHint": true
}
}List pending user invitations to the organization. Portkey: GET /user-invites.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Number of records per page. Default 50. |
| current_page | integer | Page number (0-based) for pagination. Default 0. |
{
"name": "portkey_list_user_invites",
"title": "List user invites",
"description": "List pending user invitations to the organization. Portkey: GET /user-invites.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page_size": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of records per page. Default 50."
},
"current_page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Page number (0-based) for pagination. Default 0."
}
}
},
"annotations": {
"title": "List user invites",
"readOnlyHint": true
}
}List audit log entries (admin actions across the organization). Portkey: GET /audit-logs.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Number of records per page. Default 50. |
| current_page | integer | Page number (0-based) for pagination. Default 0. |
{
"name": "portkey_list_audit_logs",
"title": "List audit logs",
"description": "List audit log entries (admin actions across the organization). Portkey: GET /audit-logs.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page_size": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of records per page. Default 50."
},
"current_page": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Page number (0-based) for pagination. Default 0."
}
}
},
"annotations": {
"title": "List audit logs",
"readOnlyHint": true
}
}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.
| Parameter | Type | Description |
|---|---|---|
| value * | number | Feedback score, typically -10..10. |
| weight | number | Relative weight of this feedback, 0..1. |
| metadata | object | Arbitrary metadata key/values. |
| trace_id * | string | The request/trace id to attach feedback to. |
{
"name": "portkey_create_feedback",
"title": "Create feedback",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"trace_id",
"value"
],
"properties": {
"value": {
"type": "number",
"description": "Feedback score, typically -10..10."
},
"weight": {
"type": "number",
"description": "Relative weight of this feedback, 0..1."
},
"metadata": {
"type": "object",
"description": "Arbitrary metadata key/values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"trace_id": {
"type": "string",
"description": "The request/trace id to attach feedback to."
}
}
},
"annotations": {
"title": "Create feedback",
"destructiveHint": true
}
}Tools for Portkey, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "How much did our AI requests cost over the last 7 days?"; "Which models used the most tokens this month?"; "Show the error rate trend for the past week.". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Portkey data. Free plan: 50 tool calls per month. Run portkey_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run portkey_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run portkey_upgrade without a plan: it returns both plans, each with a payment link for the user to open. portkey_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.