Portkey MCP server: a gateway, not a server
What Portkey's MCP Gateway does, why that is not the same as a Portkey connector, and what the tooling in its organization is actually for.
Last verified 1 September 2026 · from Portkey's MCP Gateway documentation, its GitHub organization and the MCP registry
This page is one of 90 in a directory of monitoring and developer tools. Each page checks what an AI coding agent can get out of the tool through its MCP server, the connector that lets the agent query the tool directly.
Summary
No Portkey MCP server exposes Portkey's own data. Its MCP Gateway consumes third-party servers and governs which callers reach which tools.
Its GitHub organization does ship tooling built around MCP. Neither piece is a connector. mcp-tool-filter narrows the tool list an agent receives, and hoot is a testing tool for MCP servers.
So an agent cannot ask Portkey what a virtual key spent or which guardrail fired. A virtual key is Portkey's identifier for a provider API key stored in its vault, and it can carry a budget. That data lives behind Portkey's API, not behind a tool.
What is the Portkey MCP server, and is it usable?
Portkey is an AI gateway: it sits in front of model providers and adds routing, caching, guardrails, virtual keys and observability. Its MCP role follows the same shape, standing between agents and the tools they call.
The gateway registers MCP servers and agents connect to Portkey rather than to each server. Portkey's governance then covers tool calls as well as model calls.
mcp-tool-filter is worth naming separately, because it addresses something this guide measures on every page: the tool list an agent receives costs context whether used or not, and a filter cuts it down.
Every one of the 90 vendors in this directory gets the same four checks. Portkey passes 0 of them.
| Check | Result | Evidence |
|---|---|---|
| Official | Fail | No first-party server of Portkey's own data. The MCP Gateway consumes and governs third-party servers, and the Portkey-AI organization ships only mcp-tool-filter and hoot, an MCP testing tool. |
| Maintained | Fail | Nothing to maintain. Portkey-AI/hoot was last pushed on 11 February 2026 and is a testing tool. |
| Distributed | Fail | No package or endpoint exposing Portkey's own data. |
| Usable | Fail | Portkey's MCP documentation describes routing and governing other people's servers. |
Portkey operates in AI cost management as a gateway to other people's tools, and exposes nothing of its own to an agent.
| Part of the work | What Portkey has here | Can an agent reach it |
|---|---|---|
| Code, tests & review | None | No code-review product, and no server |
| CI & release | None | No CI product, and no server |
| Production observability | None | No infrastructure telemetry, and no server |
| Agent observability & evals | Gateway logs and traces | No. Portkey records model calls and guardrail results. It exposes none of them as MCP tools |
| AI cost management | Virtual keys, budgets, caching | No. Spend governance is the product's purpose, and it is not reachable from an agent. The gateway governs tool access rather than reporting its own spend |
Portkey's MCP support faces outward. An agent gains controlled access to other people's tools; it gains no view of Portkey itself. If you want an agent that can read what your gateway spent, that is an API call rather than a connector.
What can an AI agent do with Portkey?
The confusion here is between governing tools and exposing data.
An agent connected through Portkey's gateway still cannot answer questions about Portkey.
The gateway routes an agent to servers it has registered. Portkey's own state, meaning virtual keys, budgets, guardrail results and request logs, is not among them because Portkey publishes no server exposing it.
The Portkey-AI organization carries mcp-tool-filter and hoot. The first narrows a tool list; the second tests MCP servers. Neither returns Portkey data.
Guard: Use Portkey's REST API for gateway data. Reserve MCP for the tools the gateway fronts.
How to configure Portkey MCP for agents
- 1
Decide who registers servers and who uses them
Portkey documents that MCP integrations are added by org admins and members, while the resulting server is used by workspace admins, managers and members.
- 2
Pick the auth type when you register, not later
The Add Server form takes Name, Short Description, URL, Slug, Server Type and Auth Type. A public server such as DeepWiki is registered with Auth Type
None. - 3
Know that the slug becomes the URL
Every connection URL is
https://mcp.portkey.ai/{server-slug}/mcp, so the slug you choose is the address your agents will carry. - 4
Choose OAuth or an API key per client
OAuth 2.1 needs only the URL and prompts on first use. An API key needs a workspace user key with
mcp invokepermission. - 5
Trim capabilities before provisioning
The Capabilities tab lists every tool, resource and prompt a server exposes, and disabled ones are hidden and error if called directly.
Paste this into your agent’s instructions
Portkey filters what an agent sees twice: workspace provisioning decides which servers appear, and the Capabilities tab decides which tools within them appear. A tool can therefore be absent because it was disabled rather than because it does not exist.
When you answer through the Portkey MCP Gateway, state: - Which registered server the tool you called belongs to. - That an administrator can disable individual tools, so a tool may exist upstream and be hidden from this workspace. Never state that data does not exist. State which servers this workspace can reach, and that others may be hidden. Write your answer in ASD-STE100 Simplified Technical English. Use short sentences with one idea in each.
Do you need the MCP server at all?
There is no Portkey server to need. For governance, the gateway is the product and it does the job: virtual keys, budgets and guardrails applied to tool calls as well as model calls.
For reading Portkey's own data from an agent, use its REST API with the same credentials. There is no connector to wait for.
mcp-tool-filter is worth knowing about independently. Every page in this guide measures what tool definitions cost at connection, and filtering the list is the direct remedy.
Use Portkey as the gateway it is, and its API for anything you need read back into a conversation.
Portkey MCP server setup
Nothing here installs a Portkey server, because there is none. This is how a third-party server is registered with the gateway and then reached from an agent.
The order matters. An org admin adds the server to the MCP Registry and provisions it to a workspace; only then does a connection URL appear on the workspace MCP page.
Even when the upstream server needs no authentication, you still authenticate to Portkey to reach it through the gateway. Portkey states this plainly.
Register the server
Open MCP Registry in org settings and click Add Server. The documented worked example registers DeepWiki, a public server, with Auth Type set to None because it carries no credentials of its own.
The same form carries Workspace Provisioning, where you pick the workspaces that get access. Click Test Connection, then Add Server.
Name deepwiki-test-mcp-server URL https://mcp.deepwiki.com/mcp Slug deepwiki-test-mcp-server Server Type Http Auth Type None
Connect with OAuth
Portkey calls this the recommended route. The client configuration carries the URL and nothing else, and Claude prompts for Portkey authentication through OAuth 2.1 on first use.
After login the session is stored and refreshed automatically, so there are no API keys to create, rotate or leak.
In Claude Code, this JSON goes in the project's .mcp.json file.
{"mcpServers":{"deepwiki":{
"url":"https://mcp.portkey.ai/deepwiki-test-mcp-server/mcp"}}}Connect with an API key
For programmatic access, the key travels in x-portkey-api-key. Portkey documents that this must be a workspace user API key with mcp invoke permission enabled.
Keys are scoped to workspaces, so the key itself decides which registered servers the agent can reach.
In Cursor, this JSON goes in ~/.cursor/mcp.json.
{"mcpServers":{"linear":{
"url":"https://mcp.portkey.ai/linear/mcp",
"headers":{
"x-portkey-api-key":"YOUR_PORTKEY_API_KEY"}}}}VS Code
With GitHub Copilot and the MCP extension the key is different: mcp.servers rather than mcpServers. The URL and the header are otherwise the same.
The Portkey key again travels in x-portkey-api-key and carries the workspace scope with it.
{"mcp.servers":{"linear":{
"url":"https://mcp.portkey.ai/linear/mcp",
"headers":{
"x-portkey-api-key":"YOUR_PORTKEY_API_KEY"}}}}Every other client
Each block below is the configuration for one client, with the file path and the key that client expects.
Connecting from code
The gateway is a standard Streamable HTTP endpoint, so the reference MCP SDKs connect to it directly. Portkey documents streamablehttp_client for Python and StreamableHTTPClientTransport for TypeScript.
The Portkey key goes in the transport headers, exactly as it does in a client config file.
url = "https://mcp.portkey.ai/linear/mcp"
headers = {"x-portkey-api-key": "YOUR_PORTKEY_API_KEY"}Provisioning access
Access is controlled at two levels. Org admins and owners toggle workspaces under MCP Registry, Server, Access Control, with an option to provision new workspaces automatically.
Workspace managers and admins then toggle individual users under the workspace MCP page, User Access tab. No credentials are involved; these are console settings.
Org: MCP Registry -> Server -> Access Control -> workspaces Workspace: MCP -> Server -> User Access -> users
Trimming the tool list
The Capabilities tab lists every tool, resource and prompt a server exposes, with per-item toggles plus Enable All and Disable All. Org admins set it organization-wide; workspace managers set it for one workspace.
No credentials are involved here either. This is the lever for blocking dangerous, untested or deprecated operations before an agent ever sees them.
Server -> Capabilities -> toggle tools, resources, prompts
Self-hosted deployments
Portkey documents one substitution for self-hosted installs: replace mcp.portkey.ai in the connection URL with your own gateway URL.
The URL itself holds no credentials. Everything else about the client configuration, including the authentication header, is unchanged.
https://<your-gateway>/{server-slug}/mcpRead-only access, permissions and security
You authenticate to Portkey even when the upstream server is public
Portkey states this directly for DeepWiki, which needs no credential of its own and still requires OAuth or an API key at the gateway.
API keys carry workspace scope
A key determines which MCP servers an agent can reach, and Portkey requires the
MCP Invokepermission on it before any tool call succeeds.Disabled capabilities fail closed
Portkey documents that disabled tools, resources and prompts are hidden and return errors if called directly, which makes the Capabilities tab a real control rather than a display filter.
Server access can be gated on JWT claims
JWT validation supports
requiredClaimsandclaimValues, withexact,contains,containsAllandregexmatch types against an external identity provider.Tool-level authorization is not available yet
Portkey's own table marks workspace and MCP-server levels as Available and the tool level as Coming soon.
Most guardrails are not available yet
Rate limiting is available now. Portkey lists pre-execution checks, content filtering, approval workflows and budget controls as coming soon.
Every call is logged without setup
Each request records the tool, parameters, response, user, team, timestamp, latency, status and upstream server.
Sessions are ephemeral
Each request is independent, with no session persistence between requests, which removes the need for sticky sessions.
Troubleshooting
- You cannot find a Portkey MCP server to install
- There is not one exposing Portkey's own data. The MCP Gateway registers and governs other people's servers. To read virtual keys, budgets or logs, call Portkey's REST API.
- No connection URL appears in the workspace
- The server has not been provisioned to that workspace yet. An org admin or owner toggles it under MCP Registry, Server, Access Control before the URL appears on the workspace MCP page.
- The gateway rejects the key even though the upstream server is public
- That is expected. Portkey documents that you still authenticate to Portkey through OAuth or an API key, whatever the upstream server requires.
- Tool calls fail with an authorization error on a valid key
- Check the key's permissions. It must be a workspace user API key with
MCP Invokeenabled, and its workspace scope must include that server. - A tool you can see upstream returns an error through the gateway
- It has probably been disabled. Portkey documents that disabled capabilities are hidden and return errors if called directly, set either organization-wide or per workspace.
- The first tool call on an OAuth server fails with a URL in the message
- That is the consent step. Portkey returns an error carrying an authorization URL; send the user there, then retry. Tokens are stored and refreshed automatically afterwards.
- A user is blocked despite the workspace having access
- Workspace access and user access are separate toggles. A workspace manager or admin enables individual users on the User Access tab of that server.
Portkey MCP server: Reference
| Item | Value |
|---|---|
| Role in MCP | Gateway. Servers are registered once and provisioned to workspaces |
| Server of its own data | None |
| Connection URL | https://mcp.portkey.ai/{server-slug}/mcp |
| Self-hosted URL | Replace mcp.portkey.ai with your gateway URL |
| Transport | Streamable HTTP for all connections |
| Sessions | Ephemeral. Each request is independent |
| Registration fields | Name · Short Description · URL · Slug · Server Type · Auth Type |
| Client auth options | OAuth 2.1, or x-portkey-api-key |
| Key requirement | Workspace user API key with MCP Invoke permission |
| Who may register a server | Org admins and members |
| Who may use a server | Workspace admins, managers and members |
| Workspace provisioning | MCP Registry · Server · Access Control |
| User provisioning | Workspace MCP page · Server · User Access |
| Capability control | Tools, resources and prompts toggled per server |
| Authorization levels | Workspace and MCP server available; tool level coming soon |
| JWT match types | exact · contains · containsAll · regex |
| Guardrails available now | Rate limiting per API key, server or tool |
| Logged per request | Tool · parameters · response · user · team · timestamp · latency · status · server |
| Inventory source | Portkey MCP Gateway documentation, read 26 August 2026 |
What engineers report
There is no first-party server to review, so this section records what the organization actually ships.
| What was checked | What it shows |
|---|---|
| Portkey first-party server | None published |
Portkey-AI/hoot | 20 stars, last pushed 11 February 2026, an MCP testing tool |
mcp-tool-filter | Narrows the tool list an agent receives |
| MCP Gateway | Consumes and governs third-party servers |
Portkey's documentation, its GitHub organization and the official MCP registry checked on 24 August 2026.
Should you connect an agent to Portkey?
There is nothing to connect: this is the agent side of MCP. Best for gateway use, with Portkey's REST API for reading gateway data back.
- Strongest fit
- Teams already routing model calls through Portkey who want the same controls over tool calls.
- Main advantage
- Governance in front of servers you do not own, plus a tool filter that addresses context cost directly.
- Main weakness
- Nothing exposes Portkey's own data to an agent.
- Operational risk
- Low, because there is no server to misconfigure. The gateway's own credentials remain the sensitive part.
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, from $10 per million spans.
See agent observabilityFrequently asked questions
Does Portkey have an MCP server?
Not of its own data. The MCP Gateway consumes and governs third-party servers. Nothing exposes Portkey's virtual keys, budgets or logs as tools.
What is mcp-tool-filter?
A Portkey tool that narrows the tool list an agent receives. That matters because tool definitions cost context at connection whether or not a tool is called.
What is hoot?
An MCP testing tool from the Portkey-AI organization, last pushed 11 February 2026. It tests servers rather than exposing Portkey.
How do I read Portkey spend from an agent?
Through Portkey's REST API. There is no MCP route to it.