Skip to main content

Prerequisites

Before installing the Kubiya MCP Server, ensure you have:
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
You need a valid Kubiya API key to authenticate with the Control Plane API.Get your API key:
  1. Navigate to Kubiya Dashboard
  2. Go to Settings β†’ API Keys
  3. Click Create New API Key
  4. Copy the JWT token
Store it securely - you’ll need it for configuration.
npm is included with Node.js. npx allows running packages without global installation.Verify npm:

Installation Methods

Install the MCP server globally to use it from anywhere:
Verify installation:
Run the server:
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.
Add to your shell profile (~/.bashrc, ~/.zshrc, etc.):
Apply changes:

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:
Expected output:
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:
This opens a web interface where you can:
  • Browse available tools
  • Test tool execution
  • View resources
  • Inspect responses
The MCP Inspector is great for debugging and understanding what the server provides before integrating with an AI assistant.

Troubleshooting

Problem: The CONTROL_PLANE_API_KEY environment variable is not set.Solution:
Verify it’s set:
Problem: Network connectivity issue or incorrect API URL.Solutions:
  1. Check your internet connection
  2. Verify the profile is correct:
  3. Enable debug logging:
  4. Check firewall settings allow outbound HTTPS
Problem: Invalid or expired API key.Solutions:
  1. 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
  2. Ensure you’re using the correct environment (dev/staging/prod)
  3. Check for extra spaces or quotes in the key
Problem: Global installation path not in your PATH.Solutions:
  1. Use npx instead:
  2. Check npm global bin location:
  3. Add npm global bin to PATH:
Problem: Permission issues with global npm installation.Solutions:
  1. Use npx (no permissions needed):
  2. Configure npm to use a different directory:
  3. Use a Node version manager like nvm

Upgrade

Upgrade Global Installation

Upgrade Source Installation

Check Current Version

Uninstall

Uninstall Global Installation

Remove Source Installation

Clean Environment Variables

Remove from your shell profile:

Next Steps

Quick Start

Connect to Claude Desktop and start using the server

Configuration

Learn about advanced configuration options

Tools Reference

Explore all available tools

Examples

See practical usage examples