SuperAPIAI Directory

portkey-admin-mcp

github.com · AI developer platforms

Portkey Admin API control plane: prompts, configs, keys, analytics, guardrails, integrations and deployments.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose

Portkey Admin MCP Server exposes the Portkey Admin API as an MCP server, enabling MCP-capable clients (such as Cursor, Windsurf, VS Code) to manage various resources of the Portkey control plane through tool calls. The project provides a total of 184 tools, distributed across 20 tool domains, covering prompts, configs, keys, analytics, governance, deployments, and more.

Main Capabilities

  • Tool domain coverage: prompts, configs, virtual/API keys, providers, guardrails, workspace integrations, MCP servers, rate/usage limits, logs, prompt completions, workspace user management, and more.
  • Both the Virtual Keys and Providers domains are retained: Virtual Keys manages provider access credentials, while Providers manages workspace provider configurations.
  • Supports exposing only a focused subset of tools via PORTKEY_TOOL_DOMAINS, which is also the primary means of controlling context cost—the full 184-tool catalog is about 400 KB after the client traverses all pages.
  • See ENDPOINTS.md in the repository for the full tool list.

Usage

A Portkey API key with the appropriate permission scopes is required, obtainable under API Keys in the Portkey dashboard.

Add the configuration to the MCP configuration file (.cursor/mcp.json, .windsurf/mcp.json, or .vscode/mcp.json). To expose only a focused subset of tools in a stdio client, set PORTKEY_TOOL_DOMAINS.

Most tools work with a workspace-level service key with Select All permissions enabled. If a tool returns 403 with Portkey error code AB03, it indicates a missing permission scope, not an endpoint failure.

Enterprise-Only Tools

There are 56 tools that require organization-level permission scopes and are available only on Portkey Enterprise plans. On workspace plans they return 403 (You do not have enough permissions to execute this request). The descriptions of these tools carry the suffix "Enterprise-gated. Returns 403 on non-Enterprise Portkey plans." so that MCP clients can identify them in advance.

HTTP Server (Experimental)

The server supports Streamable HTTP for remote access. The HTTP transport is available locally and covered by integration tests, but it is a proof of concept—there is no hosted version, and hosted deployment is not currently a goal. The supported transport is stdio (npx).

HTTP authentication controls access to the server, but does not simulate different Portkey tenants. All authenticated principals use the same configured PORTKEY_API_KEY and can call any enabled tools and scopes granted by that credential. For different trust levels, run separate instances or deployments with separately scoped Portkey credentials and PORTKEY_TOOL_DOMAINS allowlists.

It can also be run via npx (the portkey-admin-mcp package includes the HTTP binary).

For local-only HTTP use, keep MCP_HOST at the default 127.0.0.1. Set MCP_HOST=0.0.0.0 only when intentionally accepting connections from outside the local machine (such as Docker or a reverse proxy on another interface).

Production containers must explicitly choose a rate limiting topology: set RATE_LIMIT_STORE=redis for multi-instance deployments, or set RATE_LIMIT_SINGLE_PROCESS=true only for a single long-running process.

Vercel support is retained as a reference proof of concept and does not run a hosted deployment. To deploy it yourself, see docs/VERCEL_DEPLOYMENT.md.

Health Endpoint

The live smoke test suite reports expected credential scope denials and explicitly tracked hosted control plane routing gaps as skipped. Unexpected HTTP responses, network errors, and response contract failures still cause the run to fail.

list_audit_logs is Enterprise-only, so unless PORTKEY_ORGANISATION_ID is set, the smoke test suite will skip itsCheck. Setting the organization ID allows testing this route.

Use cases

  • Centrally manage Portkey control plane resources such as prompts, configurations, keys, providers, and guardrails in MCP-capable IDEs or clients.
  • Scope by tool domain to provide the minimum necessary toolset for different clients or trust levels.
  • Access Portkey administrative capabilities via stdio or experimental HTTP transport in local or self-hosted environments.

Limitations

  • Targets the Portkey-compatible API (x-portkey-api-key), and does not directly interface with Prisma AIRS/Strata Cloud Manager. Prisma AIRS AI Gateway currently has a different management and authentication interface, and is not a simple replacement of PORTKEY_BASE_URL.
  • 56 tools are Enterprise Edition exclusive and return 403 under Workspace plans.
  • HTTP transport is a proof of concept, with no hosted version; hosted deployment is currently not a goal.
  • HTTP authentication does not distinguish between Portkey tenants; all authenticated principals share the same PORTKEY_API_KEY.
  • The Vercel deployment is only a reference proof of concept, does not support WebSocket, and only supports Streamable HTTP/SSE.
  • The project is under active compatibility development. Palo Alto Networks completed its acquisition of Portkey on 2026-05-29 and presents Portkey as the core of Prisma AIRS AI Gateway. The Portkey Admin API remains online, and its official OpenAPI and product changelog continue to add control plane interfaces through September 2026, so this project has resumed API coverage work.

Other information

  • License: MIT.
  • The project is inspired by r-huijts/portkey-admin-mcp-server.
  • Contributions are made through pull requests and the checks documented in CONTRIBUTING.md. Project decisions and maintainer roles are documented in GOVERNANCE.md. Vulnerabilities are reported through SECURITY.md; the public threat model and assurance case are in SECURITY-ASSURANCE.md.
  • Please submit questions and bug reports to Issues; for broader discussions, ideas, and usage help, please go to Discussions.
  • Maintained packages, registries, marketplaces, and directory records are listed in Distribution and directories. When third-party indexes lag, the tool catalog generated by this repository is authoritative.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools