Portkey Admin MCP logo

Portkey Admin MCP

by s-b-e-n-s-o-n

Manage Portkey AI Gateway users, workspaces, configs, prompts, keys, analytics, guardrails, and integrations through MCP.

Install Portkey Admin MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "s-b-e-n-s-o-n-portkey-admin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "portkey-admin-mcp"
      ],
      "env": {
        "PORTKEY_API_KEY": "YOUR_VALUE_HERE",
        "PORTKEY_TOOL_DOMAINS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

s-b-e-n-s-o-n/portkey-admin-mcp exposes the Portkey AI Gateway Admin API as MCP tools for managing prompts, configs, users, workspaces, keys, analytics, guardrails, integrations, and related control-plane resources. It runs as a Node.js stdio process, authenticates with a Portkey API key, and can be launched with npx or from a source build. Reach for it when an agent needs to inspect or change Portkey administration resources rather than send ordinary gateway inference requests. Tool-domain filtering can reduce the tools exposed to a client and lower context usage.

Use cases

  • Manage Portkey organization users and invitations
  • Configure workspace membership and SCIM provisioning
  • Create and version gateway routing configurations
  • Inspect Portkey administration analytics and governance resources

Key features

  • Portkey Admin API access over MCP
  • User, invitation, workspace, and SCIM management
  • Versioned gateway config operations
  • Prompt, key, analytics, and governance domains
  • Selectable tool domains for smaller MCP catalogs

Tools181

What Portkey Admin MCP lets your agent do. Expand a tool for its parameters.

Verified live~73.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

21/22 checks healthy over the last 89d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · portkey-admin-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
npm downloads2.7kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed181Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Portkey Admin MCP works

What s-b-e-n-s-o-n/portkey-admin-mcp does

s-b-e-n-s-o-n/portkey-admin-mcp connects MCP clients to the Portkey-compatible Admin API. Its coverage includes prompt and prompt-partial management, prompt labels, gateway configs, deployments, API keys, secret references, virtual keys, collections, providers, integrations, external MCP integrations and servers, guardrails, access policies, egress allowlists, usage limits, users, workspaces, and related analytics.

The supplied administration tools cover common organization and configuration workflows. They can list, inspect, create, update, and remove users, invitations, workspaces, workspace memberships, SCIM groups and mappings, configs, and config versions. Config updates create new versions instead of replacing history, while workspace and user operations distinguish organization membership from workspace access.

How it works

The package communicates with the Portkey Admin API using a Portkey API key. MCP clients start it as a stdio subprocess, and the server translates tool calls into Admin API operations. A client can discover tools through MCP and use returned identifiers to perform follow-up operations, such as finding a workspace before changing its members or finding a config slug before editing its settings.

Tool discovery is paginated. The PORTKEY_TOOL_DOMAINS setting can restrict exposure to selected areas such as prompts and analytics, which also reduces the amount of tool metadata a client needs to load.

The API key must have scopes appropriate for the requested operations. Several user, SCIM, and analytics operations require an Enterprise Portkey plan and return HTTP 403 on plans without that entitlement.

Setup and configuration

Install and run the published package with Node.js 24 or newer:

bash
PORTKEY_API_KEY=your_key npx -y portkey-admin-mcp

For clients that use JSON MCP configuration, set the command to npx, pass -y and portkey-admin-mcp as arguments, and provide PORTKEY_API_KEY in the server environment. The documented setup includes Claude Code, Cursor, Windsurf, and VS Code. Source builds use npm install, npm run build, and then run build/index.js with Node.js.

To expose only selected domains, add a comma-separated value such as:

bash
PORTKEY_TOOL_DOMAINS=prompts,analytics

The API key is obtained from the Portkey dashboard under API Keys.

Tools and capabilities

  • Manage accepted organization users, invitations, roles, and user removal.
  • Create workspaces and manage their members and roles separately from organization membership.
  • Browse SCIM groups and configure group-to-workspace role mappings.
  • Create, inspect, update, version, and delete Portkey gateway configs.
  • Work with prompt, key, analytics, governance, deployment, provider, integration, and MCP administration domains.
  • Audit config versions and use list-before-change workflows to resolve resource IDs and slugs.

Limitations and notes

Deletion operations can be irreversible. Removing a user revokes API keys and ends active sessions; deleting a workspace removes its members, configs, API keys, and resources; deleting a config removes its versions and can break references to its slug. Removing a SCIM mapping stops future provisioning changes but leaves existing provisioned members in place.

The server targets the Portkey-compatible API authenticated with x-portkey-api-key. It is not a direct Prisma AIRS or Strata Cloud Manager adapter, and changing the API base URL alone is not described as an interoperability solution. Some administration functions are Enterprise-only. Config slug changes can also break URLs, API key references, and other external links.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Portkey Admin MCP

s-b-e-n-s-o-n/portkey-admin-mcp is an MCP server that connects AI clients to the Portkey AI Gateway Admin API. Its tools manage prompts, configs, users, workspaces, API keys, analytics, guardrails, integrations, deployments, and related administration resources using a Portkey API key.

Run it with Node.js 24 or newer using `PORTKEY_API_KEY=your_key npx -y portkey-admin-mcp`. You can also clone the source, install dependencies, build the project, and run `build/index.js`.

`PORTKEY_API_KEY` is required to authenticate with the Portkey Admin API. `PORTKEY_TOOL_DOMAINS` is optional and limits exposed tools to comma-separated domains such as `prompts,analytics`.

Yes, it works with Cursor through the client’s MCP configuration. Set the command to `npx`, pass `-y` and `portkey-admin-mcp` as arguments, and provide `PORTKEY_API_KEY` in the server environment.

Yes, it can create, inspect, update, and delete workspaces and manage workspace members. Organization users must be resolved separately when adding or changing membership, and deleting a workspace permanently removes its members, configs, API keys, and resources.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPortkey Admin MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/s-b-e-n-s-o-n-portkey-admin-mcp?style=directory)](https://allmcps.com/mcp/s-b-e-n-s-o-n-portkey-admin-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/s-b-e-n-s-o-n-portkey-admin-mcp"><img src="https://allmcps.com/api/badge/s-b-e-n-s-o-n-portkey-admin-mcp?style=directory" alt="Portkey Admin MCP on AllMCPs" /></a>