CompactSaaS MCP Server

Connect your AI tools (Claude Desktop, Cursor, Kiro, or any MCP-compatible client) to CompactSaaS and manage your setup without opening the dashboard.

Quick Start

Add this to your MCP client configuration:

{
  "mcpServers": {
    "compactsaas": {
      "url": "https://mcp.compactsaas.com/v1/mcp"
    }
  }
}

Your MCP client will automatically discover the OAuth configuration and open a browser window for you to log in with your CompactSaaS credentials. No API keys needed.

Authentication

The MCP server uses OAuth 2.1 with your existing CompactSaaS account (Cognito). When you first connect:

  1. Your MCP client discovers the OAuth server via /.well-known/oauth-protected-resource
  2. A browser window opens for you to log in with your CompactSaaS email and password
  3. After login, the MCP client receives a token and connects automatically
  4. Your session is scoped to your team — you can only access your own data

Available Tools

Analytics

ToolDescription
list-websitesList all analytics websites configured for your account
get-websiteGet details of a specific analytics website (requires websiteId)

Links

ToolDescription
list-redirectsList all URL redirects — source domain/path, target URL, status code
list-short-linksList all short links — short code, domain, target URL, click status

Configuration

ToolDescription
list-api-keysList active API keys (prefix only, full key never exposed)
list-domainsList custom domains and their verification/activation status
get-account-infoGet your account information and list of available tools

Tool Details

get-website

Parameters:

NameTypeRequiredDescription
websiteIdstringYesThe website ID to look up

All other tools take no parameters.

Client Configuration Examples

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "compactsaas": {
      "url": "https://mcp.compactsaas.com/v1/mcp"
    }
  }
}

Cursor

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "compactsaas": {
      "url": "https://mcp.compactsaas.com/v1/mcp"
    }
  }
}

Kiro

Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your project):

{
  "mcpServers": {
    "compactsaas": {
      "type": "http",
      "url": "https://mcp.compactsaas.com/v1/mcp",
      "oauth": {
        "oauthScopes": ["openid", "email"]
      }
    }
  }
}

Technical Details

  • Transport: Streamable HTTP (stateless)
  • Auth: OAuth 2.1 via Cognito (PKCE, authorization code grant)
  • Protocol: MCP specification 2025-03-26
  • Rate limit: 25 requests/second, burst 50

Troubleshooting

"No CompactSaaS team found" — Your Cognito account isn't linked to a team. Log into the dashboard first to complete onboarding.

Browser doesn't open for login — Your MCP client may not support OAuth auto-discovery. Check that it supports the MCP 2025-03-26 specification.

406 Not Acceptable — Your client must send Accept: application/json, text/event-stream header. Most MCP clients do this automatically.

Connection timeout — The MCP server endpoint may not be deployed yet. Check with your administrator.

Need the interactive API? Open the API Explorer.
Web analytics, short links, QR codes, bio pages, and wallet passes. Built in Sydney, Australia.
© Copyright 2026 CompactSaaS. All Rights Reserved.