Portkey Admin MCP Server
MCP server for Portkey Admin API. 116 tools for prompts, configs, analytics & more.
๐ Contents
๐ Quick Start
Add to Claude config (~/.claude/claude_desktop_config.json):
Restart Claude Desktop. That's it!
Then use this config:
โจ Features
๐ง Tools (116)
Tool | Description |
| List all users in organization |
| Get user details |
| Update user |
| Remove user |
| Invite a new user |
| List pending invites |
| Get invite details |
| Cancel invite |
| Resend invite email |
| Get user statistics |
Tool | Description |
| List all workspaces |
| Get workspace details |
| Create workspace |
| Update workspace |
| Delete workspace |
| Add member to workspace |
| List workspace members |
| Get member details |
| Update member role |
| Remove member |
Tool | Description |
| List gateway configs |
| Get config details |
| Create config |
| Update config |
| Delete config |
| List config version history |
Tool | Description |
| List API keys |
| Create API key |
| Get API key details |
| Update API key |
| Delete API key |
| List virtual keys |
| Create virtual key |
| Get virtual key details |
| Update virtual key |
| Delete virtual key |
Tool | Description |
| List prompt collections |
| Create a collection |
| Get collection details |
| Update collection |
| Delete collection |
Tool | Description |
| List prompts |
| Create a prompt template |
| Get prompt details |
| Update a prompt |
| Delete prompt |
| Publish prompt version |
| List version history |
| Render prompt with variables |
| Execute prompt completion |
| Create-or-update prompt |
| Promote prompt between environments |
| Validate billing metadata |
Tool | Description |
| Create reusable partial |
| List partials |
| Get partial details |
| Update partial |
| Delete partial |
| List partial versions |
| Publish partial version |
Tool | Description |
| Create label |
| List labels |
| Get label details |
| Update label |
| Delete label |
Tool | Description |
| List guardrails |
| Create guardrail |
| Get guardrail details |
| Update guardrail |
| Delete guardrail |
Tool | Description |
| List usage limits |
| Create usage limit |
| Get limit details |
| Update limit |
| Delete limit |
Tool | Description |
| List rate limits |
| Create rate limit |
| Get rate limit details |
| Update rate limit |
| Delete rate limit |
Tool | Description |
| List audit log entries |
Tool | Description |
| Get cost analytics data |
| Get analytics summary |
| Analytics by model |
| Analytics by metadata |
| Request analytics |
| Token usage analytics |
| Latency analytics |
| Error analytics |
| Error rate analytics |
| Status code distribution |
| Cache analytics |
| Feedback analytics |
| Per-user analytics |
| Cache hit latency |
| Cache hit rate |
| Feedback per model |
| Score distribution |
| Requests per user |
| Rescued requests |
| Weighted feedback |
Tool | Description |
| Insert log entry |
| Create log export |
| List exports |
| Get export details |
| Update export |
| Start export job |
| Cancel export |
| Download export |
Tool | Description |
| Create feedback |
| Update feedback |
| List traces |
| Get trace details |
Tool | Description |
| List providers |
| Create provider |
| Get provider details |
| Update provider |
| Delete provider |
Tool | Description |
| List integrations |
| Create integration |
| Get integration details |
| Update integration |
| Delete integration |
| List custom models |
| Update custom models |
| Delete custom model |
| List workspace access |
| Update workspace access |
๐๏ธ Architecture
๐ข Deployment
Transports
Transport | Use Case | Default |
| Local CLI tools (Claude Code, Cursor) | Yes |
| Remote clients, web, production | - |
Set via MCP_TRANSPORT=stdio|http environment variable.
HTTP Mode
Exposes a single /mcp endpoint with session management via Mcp-Session-Id header.
Docker
Health Endpoints
GET /health- Server statusGET /ready- Portkey API connectivity check
โ ๏ธ Limitations
Enterprise Features
The following require a Portkey Enterprise plan with Admin API keys:
Analytics (cost, request, token, latency, error, cache, feedback)
Log exports
Audit logs
User management (list users, invites)
Provider creation
Known Issues
Some endpoints are pending Portkey API clarification:
Tool | Status | Issue |
| 500 | Server error - investigating |
| 400 | Request format unclear |
| 400 | Request format unclear |
| 400 | Request format unclear |
| 405 | Endpoint path unclear |
Built With
MIT License ยท Inspired by r-huijts/portkey-admin-mcp-server
โ Back to top