KUBIYA MCP CLIENT CONNECTION GUIDE
This guide provides step-by-step instructions for connecting popular MCP clients like Claude Desktop and Cursor IDE to the Kubiya CLI MCP server.Prerequisites
Before setting up MCP clients, ensure you have: ✓ Kubiya CLI installed ✓ Valid Kubiya API key (get from https://app.kubiya.ai) ✓ MCP-compatible client (Claude Desktop, Cursor IDE, etc.) Verify installation:Quick Start
Claude Desktop Configuration
Claude Desktop is Anthropic’s desktop application with MCP support.Step 1: Locate Configuration File
Find your Claude Desktop configuration file:- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Linux: ~/.config/Claude/claude_desktop_config.json
Step 2: Basic Configuration
Add this to your claude_desktop_config.json:Step 3: Advanced Configuration with Custom Settings
For more control, create a custom MCP config file first:claude_desktop_config.json
:
Step 4: Verify Connection
- Restart Claude Desktop
- In Claude, type: “Can you list the available Kubiya tools?”
- Claude should respond with available tools
Cursor IDE Configuration
Cursor is an AI-powered IDE with MCP support.Step 1: Locate Settings File
Find your Cursor settings file:- macOS / Linux: ~/.cursor/mcp.json
Step 2: Basic Configuration
Add this to your Cursormcp.json
:
Step 3: Verify in Cursor
- Restart Cursor IDE
- Open the Chat panel
- In Chat Panel write: “Can you list the available Kubiya tools?”
- Cursor should respond with available tools
Custom MCP Client Connection
You can connect any custom MCP client to the Kubiya MCP server by implementing the Model Context Protocol. Here’s an example of how to create and connect a custom client:Example: Python MCP Client
Key Points for Custom Clients
- MCP Package: Use the official
mcp
Python package for robust client implementation - StdioServerParameters: Configure server startup parameters including command, args, and environment variables
- Async/Await: The MCP client uses async operations for all communication
- Authentication: Pass
KUBIYA_API_KEY
as environment variable in server parameters - Session Management: Initialize the session after creating the stdio client
- Available Methods:
initialize()
: Initialize the connectionlist_tools()
: List available toolscall_tool()
: Execute a toollist_prompts()
: List available promptsget_prompt()
: Get a specific prompt
Installation Requirements
To use the MCP client, install the required package:Troubleshooting
Connection Issues
-
Verify Kubiya CLI is installed:
-
Check API key: