Portkey MCP server: MCP Gateway, plus community admin tools
Portkey, now part of Palo Alto Networks' Prisma AIRS, governs MCP traffic to other vendors' servers. Reading Portkey's own spend and logs takes its Admin API or a community wrapper around it.
Checked 3 October 2026 · from Portkey's MCP Gateway and Admin API docs, Palo Alto Networks' 29 May 2026 press release, npm, GitHub and the official MCP registry
One of 91 guides to monitoring and developer tools. Each covers what an AI coding agent can get out of the tool through MCP, the protocol that lets the agent query the tool directly.
Summary
Portkey has not published an MCP server for its own account data as of 3 October 2026. Its MCP Gateway sits between clients and other vendors' servers, adding authentication, access control and logging.
The community package portkey-admin-mcp, from CodesWhat, wraps Portkey's Admin API as 184 MCP tools. One of them is get_cost_analytics, so an agent can read Portkey spend over MCP.
Palo Alto Networks completed its acquisition of Portkey on 29 May 2026. Portkey's documentation now carries the name Prisma AIRS AI Gateway.
Portkey also hosts a documentation search server at https://portkey.ai/docs/mcp. It answers questions about the product, not about your account.
How Portkey works with MCP
Portkey is an AI gateway. It sits in front of model providers and adds routing, caching, guardrails, budgets and request logs.
The MCP Gateway applies the same idea to tools. An admin registers a server once in the MCP Registry and provisions it to workspaces, and agents connect to https://mcp.portkey.ai/{server-slug}/mcp.
On each call the gateway checks the agent's Portkey key or identity-provider token, and its access to the server and tool. It then injects the upstream credentials. Every tool call is logged with user, parameters and response.
Spend, request logs and keys sit behind the Admin API at https://api.portkey.ai/v1. Its analytics endpoints, such as GET /analytics/graphs/cost, are marked beta.
Every vendor here gets the same four checks: official, maintained, distributed and usable. Portkey passes 0 of them.
| Check | Result | Evidence |
|---|---|---|
| Official | Fail | Portkey's MCP product is a gateway in front of other servers. Its hosted server at portkey.ai/docs/mcp searches documentation, not account data. |
| Maintained | Not applicable | Applies to a Portkey-published data server. The community portkey-admin-mcp released version 0.13.0 on 3 October 2026. |
| Distributed | Not applicable | Every Portkey entry in the official MCP registry on 3 October 2026 is the community portkey-admin-mcp, under the CodesWhat and s-b-e-n-s-o-n namespaces. |
| Usable | Not applicable | The gateway's client setup is documented for Claude Desktop, Cursor, VS Code and the Python and TypeScript MCP SDKs. |
| Part of the work | What Portkey has here | Can an agent reach it |
|---|---|---|
| AI cost management | Cost, token and request analytics; budgets and usage limits | Partial. Community portkey-admin-mcp tools; analytics need an Enterprise org-level key |
| Agent observability & evals | Request logs, traces and MCP tool-call logs | Partial. The community server's logging and tracing domains, or the Admin API directly |
Portkey's gateway data reaches MCP only through the community server. On non-Enterprise plans its analytics tools return 403, so spend questions there still need the dashboard or an Enterprise key.
What can an AI agent do with Portkey?
Cost tools return 403 on a workspace key
portkey-admin-mcp marks its 25 analytics tools, get_cost_analytics included, as needing an organisation-level scope that only Enterprise plans offer.
On other plans those calls return 403 You do not have enough permissions to execute this request.
Guard: Check the plan and key scope before treating a 403 as a broken server. Portkey error AB03 means missing scopes.
A gateway URL answers with another vendor's tools
A mcp.portkey.ai/{slug}/mcp URL proxies whichever server is registered under that slug, such as Linear or DeepWiki. It returns that server's tools, not Portkey's analytics.
Guard: Use the gateway for upstream tools and portkey-admin-mcp or the Admin API for Portkey's own data.
How to configure Portkey MCP for agents
- 1
Register before connecting
An org admin adds the server under MCP Registry and provisions workspaces. Only then does a connection URL appear on the workspace MCP page.
- 2
The slug becomes the address
Every connection is
https://mcp.portkey.ai/{server-slug}/mcp, and self-hosted installs swap in their own gateway host. - 3
Choose OAuth or a key per client
OAuth 2.1 prompts on first use. Otherwise send a workspace user key with MCP Invoke permission in
x-portkey-api-key. - 4
Authenticate even for public servers
Portkey's quickstart notes that DeepWiki needs no upstream credential, yet the gateway still requires OAuth or a Portkey key.
Paste this into your agent’s instructions
When you answer from Portkey data, state: - Whether it came from the Admin API or from an upstream server behind the MCP Gateway. - The workspace and time range of any cost figure. If an analytics tool returns 403, report a scope problem. Do not report it as zero spend.
Do you need the MCP server at all?
For spend in a script or dashboard, call the Admin API directly. GET /analytics/graphs/cost returns cost over time, with sibling endpoints for tokens, latency, errors and cache hit rate.
For an agent, portkey-admin-mcp is the MCP route. Its README puts the full 184-tool catalog at roughly 400 KB, so PORTKEY_TOOL_DOMAINS is worth setting.
An older community server, r-huijts/portkey-admin-mcp-server, was last pushed on 26 August 2025. The CodesWhat package has been on npm since 4 March 2026 and shipped 0.13.0 on 3 October 2026.
Use the MCP Gateway to govern other servers. Use the Admin API, directly or through portkey-admin-mcp, to read Portkey itself.
Portkey integration setup
Two setups cover the two jobs: the community server for Portkey's own data, and the gateway for other vendors' servers.
portkey-admin-mcp in Claude Code
Runs over stdio through npx. The README recommends a workspace-scoped service key with Select All permissions for most tools.
claude mcp add -e PORTKEY_API_KEY=<your-key> \ -e PORTKEY_TOOL_DOMAINS=analytics,logging \ portkey-admin -- npx -y portkey-admin-mcp
A gateway server in Cursor
Copy the connection URL from the workspace MCP page. Portkey's docs use Linear as the example.
{"mcpServers":{"linear":{
"url":"https://mcp.portkey.ai/linear/mcp",
"headers":{"x-portkey-api-key":"<your-key>"}}}}Portkey docs search
The hosted docs server needs no key. It exposes search and read-only file tools over Portkey's documentation.
{"mcpServers":{"portkey-docs":{
"url":"https://portkey.ai/docs/mcp"}}}Every other client
Each block below is the configuration for one client, with the file path and the key that client expects.
Register a server on the gateway
Open MCP Registry in org settings and click Add Server. Portkey's quickstart registers DeepWiki with these values, then provisions workspaces and runs Test Connection.
Name deepwiki-test-mcp-server URL https://mcp.deepwiki.com/mcp Slug deepwiki-test-mcp-server Server Type Http Auth Type None
Connect from code
The gateway speaks Streamable HTTP with no session persistence between requests. Portkey documents streamablehttp_client from the Python MCP SDK.
url = "https://mcp.portkey.ai/linear/mcp"
headers = {"x-portkey-api-key": "<your-key>"}Read-only access, permissions and security
One key serves every caller
The
portkey-admin-mcpREADME says all authenticated principals share the configuredPORTKEY_API_KEYand can invoke any enabled tool it grants.Narrow by domain
PORTKEY_TOOL_DOMAINSis a server-side allowlist over 20 domains, includinganalytics,logging,keysandconfigs.Prisma AIRS URLs do not work with it
PORTKEY_BASE_URLmust point at the Portkey Admin API; the README says Prisma AIRS and SCM URLs are not compatible.Gateway calls are logged
Portkey records each MCP tool call with user, parameters and response, filterable by server, user or time range.
What the vendor documents
Portkey's docs describe the MCP Gateway as "a proxy between MCP Clients and MCP servers, handling authentication, access control, and logging". They describe the Admin API as REST endpoints, with no MCP wrapper of Portkey's own.
Should you connect an agent to Portkey?
Yes, through the community `portkey-admin-mcp` for Portkey data, or through the gateway for other servers. Best for portkey Enterprise teams who want an agent to report spend, and any team governing tool access centrally.
- Strongest fit
- Yes, through the community
portkey-admin-mcpfor Portkey data, or through the gateway for other servers. - Main advantage
- One gateway URL per upstream server, with central authentication, provisioning and tool-call logs.
- Main weakness
- Portkey's own analytics reach MCP only through a third-party package, and those tools need Enterprise scope.
- Operational risk
- An Admin API key in an agent's environment can create keys and change configs unless domains are restricted.
From Oodle
One platform for agent traces and infrastructure
Agent traces usually sit in a different product from the rest of your telemetry, so when a slow database makes an agent slow the symptom is in one tool and the cause is in another. Oodle keeps both in one query surface.
See agent observabilityFrequently asked questions
Does Portkey have an MCP server?
Not for its own data. Portkey runs an MCP Gateway for other servers and a docs search server at portkey.ai/docs/mcp. The community portkey-admin-mcp covers the Admin API.
Can an agent read Portkey spend over MCP?
Yes, with portkey-admin-mcp. Its get_cost_analytics tool reads cost data, but it needs an Enterprise org-level key and returns 403 otherwise.
Is Portkey part of Palo Alto Networks?
Yes. Palo Alto Networks closed the acquisition on 29 May 2026, and Portkey's docs now use the name Prisma AIRS AI Gateway.
Is Portkey Wallet the same company?
No. Portkey Wallet is a crypto wallet project that publishes its own agent skills on GitHub. It is unrelated to the Portkey AI gateway.