Prerequisites
Before installing the Kubiya MCP Server, ensure you have:Node.js 20 or higher
Node.js 20 or higher
The MCP server requires Node.js version 20.0.0 or higher.Check your version:Install or update Node.js:
- macOS:
brew install node@20 - Ubuntu/Debian:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs - Windows: Download from nodejs.org
Kubiya API Key
Kubiya API Key
You need a valid Kubiya API key to authenticate with the Control Plane API.Get your API key:
- Navigate to Kubiya Dashboard
- Go to Settings → API Keys
- Click Create New API Key
- Copy the JWT token
npm or npx
npm or npx
npm is included with Node.js. npx allows running packages without global installation.Verify npm:
Installation Methods
Method 1: Global Installation (Recommended)
Install the MCP server globally to use it from anywhere:Global installation is recommended if you’ll use the server frequently or with multiple MCP clients.
Method 2: npx (No Installation)
Run the server without installing using npx:npx is great for trying the server or using it with Claude Desktop without cluttering your global packages.
Method 3: From Source
Clone and build from source for development or customization:Building from source is recommended for contributors or when you need to customize the server.
Configuration
Set Your API Key
The MCP server requires your Kubiya API key to authenticate with the Control Plane API.- macOS / Linux
- Windows (PowerShell)
- Windows (CMD)
Add to your shell profile (Apply changes:
~/.bashrc, ~/.zshrc, etc.):Set Environment Profile
Choose your environment (dev, staging, or prod):- dev: Points to
http://localhost:8000(for local development) - staging: Points to
https://staging-control-plane.kubiya.ai - prod: Points to
https://control-plane.kubiya.ai(default for production use)
Optional: Set Log Level
Control logging verbosity:Verify Installation
Test that the server can connect to the Kubiya API:If you see this output, the server is successfully installed and configured!
Test with MCP Inspector
The MCP Inspector is a development tool for testing MCP servers:- Browse available tools
- Test tool execution
- View resources
- Inspect responses
Troubleshooting
Error: Configuration validation failed: API key is required
Error: Configuration validation failed: API key is required
Problem: The Verify it’s set:
CONTROL_PLANE_API_KEY environment variable is not set.Solution:Error: Failed to connect to API
Error: Failed to connect to API
Problem: Network connectivity issue or incorrect API URL.Solutions:
- Check your internet connection
- Verify the profile is correct:
- Enable debug logging:
- Check firewall settings allow outbound HTTPS
Error: Authentication failed (401)
Error: Authentication failed (401)
Problem: Invalid or expired API key.Solutions:
- Verify your API key is valid:
- Go to Kubiya Dashboard → Settings → API Keys
- Check the key hasn’t expired
- Generate a new key if needed
- Ensure you’re using the correct environment (dev/staging/prod)
- Check for extra spaces or quotes in the key
Error: Command not found: kubiya-mcp
Error: Command not found: kubiya-mcp
Problem: Global installation path not in your PATH.Solutions:
- Use npx instead:
- Check npm global bin location:
- Add npm global bin to PATH:
Error: EACCES permission denied
Error: EACCES permission denied
Problem: Permission issues with global npm installation.Solutions:
- Use npx (no permissions needed):
- Configure npm to use a different directory:
- Use a Node version manager like nvm