# Portkey Admin MCP

> Portkey Admin MCP is an MCP server for ai models and llm tooling. Portkey Admin API as an MCP server: 194 tools for prompts, configs, keys and analytics. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, API, self-hosted
- **Repository:** https://github.com/codeswhat/portkey-admin-mcp
- **MCP Registry name:** io.github.CodesWhat/portkey-admin-mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-15

## About

The surface is large: 194 tools across 22 domains, from prompts (14 tools) and analytics (25) to users and workspaces (24), guardrails (14), MCP server registry (12) and logging (10). Because the full tool list is around 400 KB once paginated, `PORTKEY_TOOL_DOMAINS` lets you expose only domains such as prompts and analytics, which also reduces context cost.

It targets the Portkey-compatible Admin API with an `x-portkey-api-key`, not Palo Alto Networks' Prisma AIRS or Strata Cloud Manager directly; the README links an interoperability guide. It runs over stdio through npx, and an experimental HTTP mode exists. A Portkey API key with suitable scopes is required.

## Features

- **194 admin tools:** Across 22 domains including prompts, configs, keys and governance.
- **Domain scoping:** PORTKEY_TOOL_DOMAINS limits exposed tools.
- **Prompt management:** Create, version, render, execute and promote prompts.
- **Gateway configs:** Routing, caching, retry and load balancing.
- **Analytics and logs:** Cost, latency, errors, tokens and log export.
- **Governance:** Guardrails, access policies, usage and rate limits.

## Good for

- Version and promote prompts across environments
- Rotate scoped API keys
- Pull cost and latency analytics
- Manage workspace members and SCIM mappings

## Install

### Claude Code (Terminal)

```sh
claude mcp add portkey-admin-mcp --env PORTKEY_API_KEY='<PORTKEY_API_KEY>' -- npx -y portkey-admin-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "portkey-admin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "portkey-admin-mcp"
      ],
      "env": {
        "PORTKEY_API_KEY": "<PORTKEY_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "portkey-admin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "portkey-admin-mcp"
      ],
      "env": {
        "PORTKEY_API_KEY": "<PORTKEY_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "portkey-admin-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "portkey-admin-mcp"
      ],
      "env": {
        "PORTKEY_API_KEY": "<PORTKEY_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "portkey-admin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "portkey-admin-mcp"
      ],
      "env": {
        "PORTKEY_API_KEY": "<PORTKEY_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "portkey-admin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "portkey-admin-mcp"
      ],
      "env": {
        "PORTKEY_API_KEY": "<PORTKEY_API_KEY>"
      }
    }
  }
}
```

## FAQ

### What do I need?

A Portkey API key with appropriate scopes.

### Does it work with Prisma AIRS?

Not directly; the README describes a side-by-side model.

### How do I reduce tool count?

Set PORTKEY_TOOL_DOMAINS, for example prompts,analytics.

### How do I add it to Claude Code?

claude mcp add -e PORTKEY_API_KEY=your_key portkey-admin -- npx -y portkey-admin-mcp.

### How do I add Portkey Admin MCP to Claude Code?

Run this command in your terminal: claude mcp add portkey-admin-mcp --env PORTKEY_API_KEY='<PORTKEY_API_KEY>' -- npx -y portkey-admin-mcp

### What are the best alternatives to Portkey Admin MCP?

The closest alternatives to Portkey Admin MCP are Toolport, Porticol, Toolkien, McpOrchestrator and Tempr Gateway Admin.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Toolport](https://ai-powered.com/mcp/toolport): Toolport is a freemium MCP server for developer tools.
- [Porticol](https://ai-powered.com/mcp/porticol): Porticol is a freemium MCP server for developer tools.
- [Toolkien](https://ai-powered.com/mcp/toolkien): Toolkien is an open-source MCP server for ai models and llm tooling.
- [McpOrchestrator](https://ai-powered.com/mcp/mcporchestrator): McpOrchestrator is an open-source MCP server for developer tools.
- [Tempr Gateway Admin](https://ai-powered.com/mcp/tempr-gateway-admin): Tempr Gateway Admin is a paid MCP server for developer tools.
- [Keycloak Model Context Protocol](https://ai-powered.com/mcp/keycloak-model-context-protocol): Keycloak Model Context Protocol is an open-source MCP server for ai models and llm tooling.
- [Toolstile](https://ai-powered.com/mcp/toolstile): Toolstile is a freemium MCP server for developer tools.
- [Enterprise MCP Gateway](https://ai-powered.com/mcp/enterprise-mcp-gateway): Enterprise MCP Gateway is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/portkey-admin-mcp
