
Portkey Admin Mcp
io.github.CodesWhatPublished by GitHub account CodesWhatv0.16.5Updated Nov 19, 2026
Portkey Admin API control-plane MCP server with Prisma AIRS interoperability guidance.
Overview
Exposes the Portkey Admin API as 194 tools so an assistant can manage prompts, gateway configs, keys, guardrails, analytics and workspaces.
- What you can do
- Create, version, render, execute and promote prompts, partials, labels and collections
- Manage gateway configs, providers, virtual keys, API keys and secret references
- Administer MCP servers, MCP integrations, guardrails, access policies and egress allowlists
- Set usage and rate limits, and read cost, latency, token, error and feedback analytics
- Retrieve and export logs, manage users, workspaces and SCIM mappings, and read audit logs
- When to use it
- Use it when you administer a Portkey AI gateway and want an assistant to inspect or change prompts, routing configs, credentials, guardrails or usage data without leaving the chat. Narrow the exposed domains if you only need a few areas.
- Requirements
- Runs locally over stdio via npx (Node.js) or from source. Requires a Portkey API key in PORTKEY_API_KEY with suitable scopes; most tools need a workspace-scoped service key with Select All permissions. Optional PORTKEY_BASE_URL and PORTKEY_TOOL_DOMAINS. Network access to the Portkey API.
Installation
In SourceWeft
- Open Portkey Admin Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Portkey Admin MCP Server
The Portkey Admin API as an MCP server — 194 tools across prompts, configs, keys, analytics, governance, deployments, and more.
[npm version] [Node.js] [License: MIT]
[CI] [OpenSSF Scorecard] [OpenSSF Best Practices] [Maintainability] [Code Coverage]
[npm downloads] [Mentioned in Awesome MCP Servers] [MCP Registry] [Sponsor]
[!IMPORTANT] Active compatibility development. Palo Alto Networks completed its Portkey acquisition on 2026‑05‑29 and now presents Portkey as the core of Prisma AIRS AI Gateway. The Portkey Admin API remains live, and its official OpenAPI and product changelog continued adding control-plane surfaces through October 2026; this project has therefore resumed API-coverage work. It targets the Portkey-compatible API (
x-portkey-api-key), not Prisma AIRS/Strata Cloud Manager directly. Palo Alto now publishes a Prisma AIRS management specification, but it uses different authentication, multiple management bases, and a smaller domain set, so it is not aPORTKEY_BASE_URLswap. See the short Prisma AIRS interoperability guide for the supported side-by-side model and adapter criteria.
Contents
- Documentation
- Quick Start
- What You Can Do
- API Key Scopes
- HTTP Server (Experimental)
- Architecture
- Distribution and directories
- Prisma AIRS interoperability
- Verify a release
- Development
- Roadmap
- Community
- Star History
- Built With
- Contributing
- Governance
- Security assurance
- Full tool list — ENDPOINTS.md
Documentation
Quick Start
You need a Portkey API key with appropriate scopes. Get one from your Portkey dashboard under API Keys.
Version 0.15.0 uses MCP SDK v2 and serves protocol revision 2026-07-28 and
older clients on the same endpoint. It retires HTTP sessions and replay;
obsolete settings warn and are ignored. See
compatibility and deprecations before upgrading from 0.14.x.
Claude Code
Cursor / Windsurf
Add to your MCP config (Cursor: .cursor/mcp.json or ~/.cursor/mcp.json; Windsurf: ~/.codeium/windsurf/mcp_config.json):
VS Code
VS Code's .vscode/mcp.json uses a top-level servers key and needs a type:
VS Code caps a single chat request at 128 enabled tools, and this server exposes 194.
Set PORTKEY_TOOL_DOMAINS in the server's env (for example "PORTKEY_TOOL_DOMAINS": "prompts,analytics") to narrow the set below that limit.
Run directly
To expose only a focused subset of tools in stdio clients, set PORTKEY_TOOL_DOMAINS:
Scoping domains is also the biggest lever on context cost, not just access. tools/list
returns every tool in a single response with no nextCursor, and the complete
194-tool catalog is roughly 500 KB of JSON. Narrowing to the domains a client
actually needs cuts that roughly proportionally.
Build from source
Then use this config:
What You Can Do
194 tools total across 22 tool domains. See ENDPOINTS.md for the full list with descriptions.
Portkey's newer product language increasingly presents provider credentials as
Providers, while the current Admin API still exposes both /virtual-keys and
/providers. This server keeps both domains: Virtual Keys manage provider access
credentials, and Providers manage workspace provider configurations.
API Key Scopes
Most tools work with a workspace-scoped service key that has Select All permissions enabled. That covers prompts, configs, virtual/API keys, providers, guardrails, workspace integrations, MCP servers, rate/usage limits, logs, prompt completions, and workspace user management.
If a tool returns a 403 with Portkey error AB03, it means missing scopes — not a broken endpoint.
Enterprise-gated tools and other scope requirements
Enterprise-gated tools (56)
The following tools require an organisation-level scope that is only available on Portkey Enterprise plans. They return 403 You do not have enough permissions to execute this request on workspace plans. Their descriptions include an Enterprise-gated. Returns 403 on non-Enterprise Portkey plans. suffix so MCP clients know upfront.
Other scope requirements
HTTP Server (Experimental)
Status: The HTTP transport works locally and is covered by the integration test suite, but it is a proof of concept — there is no hosted version of this server, and hosted deployment is not currently a goal. Use stdio (npx) as the supported transport.
The server supports Streamable HTTP for remote access:
HTTP authentication controls access to the server, but it does not impersonate
separate Portkey tenants. All authenticated principals use the same configured
PORTKEY_API_KEY and can invoke any enabled tool and scope that credential
grants. Run separate instances or deployments with separately scoped Portkey
credentials and PORTKEY_TOOL_DOMAINS allowlists for different trust levels.
Or via npx (the portkey-admin-mcp package includes the HTTP binary):
For local-only HTTP use, leave MCP_HOST at its default 127.0.0.1. Set MCP_HOST=0.0.0.0 only when you intentionally need to accept connections from outside the local machine, such as Docker or a reverse proxy on another interface.
Full environment variable reference
Production containers must choose their rate-limit topology explicitly: set
RATE_LIMIT_STORE=redis for multi-instance deployments, or set
RATE_LIMIT_SINGLE_PROCESS=true only for a single long-lived process.
Vercel deployment
Vercel support is kept as a reference proof of concept — we do not run a hosted deployment. See docs/VERCEL_DEPLOYMENT.md if you want to self-deploy.
Key points:
- Uses stateless request handling and a shared atomic Redis rate limiter (SDK v2); GET replay is retired
- Requires Clerk or bearer auth
- Leave
MCP_TLS_*unset (Vercel terminates HTTPS) - Set
MCP_PUBLIC_BASE_URLto your deployment URL so advertised MCP endpoints never depend on request headers - Vercel does not support WebSockets — Streamable HTTP/SSE only
Docker
This example runs one long-lived container with in-memory rate limiting. Use
RATE_LIMIT_STORE=redis and a TLS Redis URL for multiple instances.
Health Endpoints
Development
The live smoke suite reports expected credential-scope denials and the explicitly tracked hosted control-plane route gaps as skips. Unexpected HTTP responses, network errors, and response-contract failures still fail the run.
list_audit_logs is Enterprise-only, so the smoke suite skips its check unless
PORTKEY_ORGANISATION_ID is set. Set it to your organisation ID to exercise that route.
The required CI and release gates measure every TypeScript source file and fail below 80% line coverage. The CI and Coverage workflow reports show the current line, branch, and function coverage.
The CI workflow
also runs the standalone Qlty CLI and publishes quality-reports artifacts for
each analyzed commit, including lint/security results, duplication, complexity,
and metrics. The Qlty maintainability badge remains Cloud-generated; local
analysis does not update it. Coverage is reported through Codecov, not Qlty,
and the Coverage workflow uploads it on every PR and on pushes to main and codex/**.
npm run dev:http now requires MCP_AUTH_MODE=bearer or MCP_AUTH_MODE=clerk by default. For deliberate local-only unauthenticated testing, set MCP_ALLOW_UNAUTHENTICATED_HTTP=true.
Contributions use pull requests and the checks documented in
CONTRIBUTING.md. Project decisions and maintainer roles are
documented in GOVERNANCE.md. Report vulnerabilities through
SECURITY.md, and see SECURITY-ASSURANCE.md
for the public threat model and assurance case.
Roadmap
Release 0.15.0 moves to MCP SDK v2 and the 2026-07-28 spec. The roadmap separates completed work from upstream contract and tenant-verification gates. The MCP v2 migration shipped in 0.15.0 and keeps older clients on the same endpoint while retiring session and replay storage. See compatibility and deprecations.
Community
Questions and bug reports belong in Issues; broader discussion, ideas, and help using the server belong in Discussions.
The maintained package, registry, marketplace, and directory records are listed in Distribution and directories. Treat the generated tool catalog in this repository as authoritative when a third-party index lags.
Star History
[Star History chart for CodesWhat/portkey-admin-mcp]Built With
[TypeScript] [MCP SDK] [Zod 4] [Biome] [Node 24 | 26] [Anthropic]
[SemVer] [Conventional Commits] [Keep a Changelog]
Marketplace listings on LobeHub and Glama:
[portkey-admin-mcp MCP server]
MIT License · Inspired by r-huijts/portkey-admin-mcp-server
[CodesWhat]CodesWhat: small, sharp tools from one developer and a lot of agents.
Source: README.md at commit 09f9d05
Tools
0Version history
10- v0.16.5LatestNov 19, 2026
- v0.16.4Nov 14, 2026
- v0.16.3Nov 3, 2026
- v0.16.0Oct 30, 2026
- v0.15.2Oct 29, 2026
- v0.15.0Oct 26, 2026
- v0.14.0Oct 16, 2026
- v0.13.0Oct 3, 2026
- v0.12.1Oct 2, 2026
- v0.12.0Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts