The Portkey MCP Server enables comprehensive management of AI configurations, workspaces, analytics, and user access on the Portkey platform.
User & Access Management: List, manage, and invite users to your organization. Configure user roles and access levels at both organization and workspace levels.
Analytics & Reporting: Track detailed usage analytics, including request counts, token usage, and costs. Generate filtered reports based on criteria like time range, status codes, and virtual keys.
Workspace Management: Retrieve workspace details, manage configurations, and monitor virtual keys with usage and rate limits.
Configuration & API Settings: View and manage API configurations, including cache, retry, and routing settings.
Portkey MCP Server
Transform your AI assistant into a Portkey platform expert! This MCP server connects Claude to Portkey's API, enabling comprehensive management of AI configurations, workspaces, analytics, and user access.
Installation
From Source
Clone this repository
Install dependencies:
Copy the example environment file:
Add your Portkey API key to the
.env
file:
Then update your Claude configuration file:
Make sure to:
Replace
/path/to/portkey-server
with the actual path to your installationAdd your Portkey API key in the
env
section
After updating the configuration, restart Claude Desktop for the changes to take effect.
Installing via Smithery
To install Portkey MCP Server for Claude Desktop automatically via Smithery:
Real-World Use Cases
"What are my current API usage statistics across different models?"
"Show me the performance metrics for my AI deployments"
"Create a new workspace for my team's project"
"What's my current API key usage and remaining credits?"
"Generate an analytics report for last month's API calls"
"Set up rate limiting for my development environment"
"Configure fallback behavior for my production endpoints"
"Add team members to my Portkey workspace"
"Show me the latency statistics for my API calls"
"Set up custom headers for my API requests"
🔑 Environment Variables
Variable | Description |
PORTKEY_API_KEY | Your Portkey API key (required) |
🌟 Features
This MCP server provides comprehensive access to Portkey's platform through the following capabilities:
User & Access Management
User Administration: List and manage all users in your Portkey organization
User Invitations: Invite new users with customizable roles and permissions
Workspace Access: Configure user access levels across different workspaces
Role-Based Control: Assign admin, manager, or member roles at organization and workspace levels
Analytics & Reporting
Usage Analytics: Track detailed user activity and request patterns
Cost Analysis: Monitor and analyze costs across different time periods
Request Metrics: View request counts, token usage, and response times
Filtered Reports: Generate reports based on custom criteria like status codes, virtual keys, and time ranges
Workspace Management
Workspace Overview: List and view detailed information about all workspaces
Configuration Management: Access and review workspace configurations
Virtual Key Management: Monitor and manage API keys with usage limits and rate limits
Workspace Settings: View and track workspace metadata and user associations
Configuration & API Settings
Config Listings: View all available configurations in your organization
Detailed Config Info: Access cache settings, retry policies, and routing strategies
Virtual Key Details: Monitor key status, usage limits, and rate limits
API Integration: Track API endpoints and their configurations
License
This project is licensed under the ISC License - see the LICENSE file for details
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Connects Claude to Portkey's API for managing AI configurations, workspaces, analytics, and user access, providing comprehensive control over API usage and settings.
Related Resources
Related MCP Servers
- -securityAlicense-qualityEnables Claude to interact with Webflow's APIs, allowing access to site information, collections, and other Webflow resources.Last updated -193MIT License
- -securityAlicense-qualityEnables Claude to interact with Qlik Cloud applications and extract data from visualizations through the Qlik Cloud API.Last updated -5MIT License
- -securityAlicense-qualityConnects Claude AI to the Kaggle API through the Model Context Protocol, enabling competition, dataset, and kernel operations through the AI interface.Last updated -16MIT License
- AsecurityAlicenseAqualityConnects Blender to Claude AI through the Model Context Protocol, enabling AI-assisted 3D modeling, scene creation, and manipulation through natural language commands.Last updated -17MIT License