Skip to main content

Cursor Setup

Prerequisites

  • Cursor IDE
  • Unizo API key and Public Cloud (Infra) integration ID
  • Node.js v20 or higher

Setup Instructions

  1. Install @mcp-remote if not already installed:

    npm i mcp-remote
  2. Open Cursor Settings (Cmd/Ctrl + ,)

  3. Add MCP configuration:

Navigate to Cursor's settings.json and add:

{
"mcpServers": {
"unizo": {
"command": "/Users/{user_name}/.nvm/versions/node/v18.x.x/bin/node",
"args": [
"/Users/{user_name}/.nvm/versions/node/v18.x.x/bin/mcp-remote",
"https://api.unizo.ai/mcp",
"--header",
"apikey:${UNIZO_API_KEY}",
"--header",
"x-mcp-scopes:infra"
],
"env": {
"UNIZO_API_KEY": "your_api_key"
}
}
}
}
  1. Restart Cursor to load the MCP server

Flags: If npx is producing errors, consider adding -y as the first argument to auto-accept the installation of the mcp-remote package.

{
"mcpServers": {
"unizo": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.unizo.ai/mcp",
"--header",
"apikey:${UNIZO_API_KEY}",
"--header",
"x-mcp-scopes:infra"
],
"env": {
"UNIZO_API_KEY": "your_api_key"
}
}
}
}

Available Tools

Once configured, you'll have access to:

  • infra_list_connectors - Get list of available infrastructure services
  • infra_list_integrations - Get integrations for a specific infrastructure service
  • infra_list_collections - Browse available collections with pagination
  • infra_get_collection_details - Retrieve comprehensive collection information
  • infra_list_users - Browse users in a collection with pagination
  • infra_get_user_details - Retrieve detailed user information
  • infra_list_resources - Browse infrastructure resources with pagination
  • infra_get_resource_details - Retrieve comprehensive resource information
  • infra_list_policies - Browse access policies with pagination
  • infra_get_policy_details - Retrieve detailed policy information
  • infra_list_roles - Browse IAM roles with pagination
  • infra_get_role_details - Retrieve detailed role information

Environment Variables

You can also set environment variables in your shell profile:

export UNIZO_API_KEY="your_api_key"

Then reference them in settings.json:

{
"env": {
"UNIZO_API_KEY": "${env:UNIZO_API_KEY}"
}
}

Multiple Integrations

To work with multiple categories or integrations, add them as a comma-separated list under the x-mcp-scopes header:

{
"mcpServers": {
"unizo": {
"command": "npx",
"args": [
"mcp-remote",
"https://api.unizo.ai/mcp",
"--header",
"apikey:${UNIZO_API_KEY}",
"--header",
"x-mcp-scopes : infra,scm,ticketing"
],
"env": {
"UNIZO_API_KEY": "your_api_key"
}
}
}
}

Troubleshooting

MCP not detected

  • Check Cursor's output panel: View → Output → MCP
  • Ensure Node.js v20+ is installed

Authentication errors

  • Verify your API key in Unizo dashboard
  • Check that the integration ID is correct
  • Ensure the integration is active

Debug mode

Enable debug logging in settings.json:

{
"args": ["--debug"]
}