Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Hex MCP connector

OAuth 2.1/DCRAnalyticsAIDeveloper Tools

Connect to Hex MCP. Create and continue data analysis threads, search projects, and query your data using natural language from your AI workflows.

Hex MCP connector

  1. Terminal window
    npm install @scalekit-sdk/node

    Full SDK reference: Node.js | Python

  2. Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. quickstart.ts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENV_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'hexmcp'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Hex MCP:', link)
    process.stdout.write('Press Enter after authorizing...')
    await new Promise(r => process.stdin.once('data', r))
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'hexmcp_get_me',
    toolInput: {},
    })
    console.log(result)

Connect this agent connector to let your agent:

  • Search projects — Search for Hex projects by keyword
  • Get thread, me — Fetch a Hex Thread by its ID, including the latest response and status
  • Create thread — Create a new Hex Thread to ask a question about your data using natural language
  • Thread continue — Continue an existing Hex Thread by adding a new message and triggering the agent to process it

Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.

hexmcp_continue_thread#Continue an existing Hex Thread by adding a new message and triggering the agent to process it.2 params

Continue an existing Hex Thread by adding a new message and triggering the agent to process it.

NameTypeRequiredDescription
idstringrequiredThe ID of the thread to continue
promptstringrequiredThe message to add to continue the thread
hexmcp_create_thread#Create a new Hex Thread to ask a question about your data using natural language.1 param

Create a new Hex Thread to ask a question about your data using natural language.

NameTypeRequiredDescription
promptstringrequiredNo description.
hexmcp_get_me#Return information about the currently authenticated user.0 params

Return information about the currently authenticated user.

hexmcp_get_thread#Fetch a Hex Thread by its ID, including the latest response and status.1 param

Fetch a Hex Thread by its ID, including the latest response and status.

NameTypeRequiredDescription
idstringrequiredNo description.
hexmcp_search_projects#Search for Hex projects by keyword.1 param

Search for Hex projects by keyword.

NameTypeRequiredDescription
querystringrequiredThe search query to find relevant projects. This should be a non-empty string without wildcards.