Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to the AnyDB MCP server

Vendor MCP
Open markdown

The AnyDB MCP connector routes your AI agent's tool calls to AnyDB's own MCP server through Scalekit. Each user signs in to AnyDB once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 206 tools.

Tools
206
What they doRead · write · destructive
91 · 28 · 8791 read28 write87 destructive
Users sign in with
OAuth app
Your own AnyDB MCP server app

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    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. Create the AnyDB MCP connection

    In AgentKit > Connections, create an AnyDB MCP connection and copy its redirect URI. The name you give it is the connection_name your code passes. See Configure connections.

  4. Register an OAuth app

    AnyDB MCP server connections use your own OAuth app. Register one with AnyDB MCP server and add the redirect URI you copied.

    Then enter the app's Client ID and Client Secret on the AnyDB MCP connection.

  5. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'anydbmcp'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize AnyDB MCP:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'anydbmcp_anydb_whoami',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user signs in once. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • anydbmcp_anydb_automation_summaryWhat a workspace's Automation dashboard shows, for a period (default today, UTC): how many workflow runs started and how they ended (activity: started, success, failure, partial, running, successRate, averageDurationMs), what needs attention now (attention: each automation with repeated failures, an automatic pause, a blocked run or effects to review, with the runId to look at), and each automation's totals for the period, most failures first, with its last run.Read-only

    Automation run summary

    What a workspace's Automation dashboard shows, for a period (default today, UTC): how many workflow runs started and how they ended (activity: started, success, failure, partial, running, successRate, averageDurationMs), what needs attention now (attention: each automation with repeated failures, an automatic pause, a blocked run or effects to review, with the runId to look at), and each automation's totals for the period, most failures first, with its last run. Use it to answer whether anything is failing and how many runs happened. coverage "partial" means counting started inside the period (trackingStartedAt) or has gaps, so the totals are a lower bound. Workspace admins only, and only where automation monitoring is enabled; the answer says so otherwise. Then anydb_list_automation_runs for the runs and anydb_get_automation_run for one run's steps and error.

    Inputs

    adbidstringrequired
    The workspace.
    teamidstringrequired
    The team ID.
    fromstring
    First UTC day, as 2026-11-18; default today.
    tostring
    The day after the last UTC day (exclusive); default tomorrow. Must be after from.
  • anydbmcp_anydb_check_complianceCheck every rule of a compliance profile against the team now (or its workspaces, or one workspace with adbid).Read-only

    Check compliance

    Check every rule of a compliance profile against the team now (or its workspaces, or one workspace with adbid). Each failure names its workspace (adbid, workspace) where it has one; none means team-wide. The check is kept: its runId reads it again with anydb_get_compliance_check. Each rule answers pass, fail with the objects at fault (shares, users, API keys, apps, countries, exports; isNew when the last check did not see it), or cannot_check with the reason (e.g. AnyDB has no MFA, or sign-ins carried no country). A rule it cannot prove never passes. Changes nothing in the team; it keeps the check and remembers which failures it saw. Team admins, or a Teammate with auditRead.

    Inputs

    profileIdstringrequired
    From anydb_list_compliance_profiles.
    teamidstringrequired
    The team ID.
    adbidstring
    Narrow the check to one workspace (within the profile's workspaces); team-wide findings stay.
  • anydbmcp_anydb_check_permissionsCheck specific permission type/level pairs for a user on a team, database, or record — for example OBJECT_ATTACHED at PERM_CREATE to ask whether they may add records underneath it.Read-only

    Check record permissions

    Check specific permission type/level pairs for a user on a team, database, or record — for example OBJECT_ATTACHED at PERM_CREATE to ask whether they may add records underneath it. Use anydb_get_permissions instead when you want the whole picture. Permission names and what they mean are in anydb://guides/permissions/v1.

    Inputs

    checksarrayrequired
    Up to 50 permission questions.
    teamidstringrequired
    The team ID.
    adbidstring
    Database ID, when asking about a database or record.
    adoidstring
    Record ID, when asking about a record.
    useridstring
    Whose access to check. Defaults to the authenticated user.
  • anydbmcp_anydb_compliance_catalogThe compliance rule catalog: every rule kind a profile can use, with its parameters, and starter templates (ITAR, SOC 2 access, personal data, GDPR).Read-only

    Compliance rule catalog

    The compliance rule catalog: every rule kind a profile can use, with its parameters, and starter templates (ITAR, SOC 2 access, personal data, GDPR). Templates are a starting point, not legal advice. Read this before writing a profile's rules. Profiles themselves need the team on the Business plan or above; below it every profile tool is refused with INVALID_PLAN (the catalog stays readable).

    Inputs

    This tool takes no inputs.

  • anydbmcp_anydb_discover_typesRetrieve semantically plausible reusable AnyDB type candidates before designing a new type.Read-only

    Discover reusable types

    Retrieve semantically plausible reusable AnyDB type candidates before designing a new type. For authoring, search source=workspace first; search source=builtin only when no workspace candidate is compatible. Candidate names, descriptions, categories, and ranking are hints, not proof of compatibility: call anydb_get_type_definition for plausible candidates and compare their complete fields, schema, relationships, formulas, and behavior with the requested role before reuse or import. Use source=all only for general exploration.

    Inputs

    adbidstringrequired
    The database ID
    searchstringrequired
    One concise type concept or a comma-separated set of related names and synonyms. Discovery returns candidates to inspect; it does not confirm schema compatibility.
    teamidstringrequired
    The team ID
    limitinteger
    Maximum candidates per source; defaults to 20default 20
    sourcestring
    Catalogs to search; defaults to allone of workspacebuiltinalldefault all
  • anydbmcp_anydb_export_reportExport the last ready snapshot of a report as a file.Read-only

    Export report

    Export the last ready snapshot of a report as a file. format csv returns the CSV text; format xlsx returns the workbook as base64 with its filename. Date and time columns are text as their cells show them (display format, workspace timezone), not numbers. Refused until a snapshot is ready - run the report first.

    Inputs

    adbidstringrequired
    The database ID (MongoDB ObjectId)
    formatstringrequired
    csv (text) or xlsx (base64).one of csvxlsx
    reportIdstringrequired
    The report ID, from anydb_list_reports.
    teamidstringrequired
    The team ID (MongoDB ObjectId)
    generationIdstring
    A specific snapshot generation; defaults to the latest.
  • anydbmcp_anydb_find_person_dataEverything the team holds about one person, for a GDPR access request or before erasing them: name them by email, name, phone or AnyDB user id (an email of a member also finds them by id).Read-only

    Find a person's data

    Everything the team holds about one person, for a GDPR access request or before erasing them: name them by email, name, phone or AnyDB user id (an email of a member also finds them by id). Returns hits, each with source (cell: a cell value or person cell; record: they created it, last changed it or are assigned it, or it is named after them; share: they are a recipient), workspace, record, field and what matched, plus truncated, the number of audit rows and AnyBot messages for their user id, and notCovered: what it does not search (version history, comments, file contents, records missing from the index, Teammate memory, data sent out through integrations, backups and logs). A name is a phrase search and can match other people with that name: confirm hits before acting on them. Read-only. Team admins only, not Teammates; every run is audited.

    Inputs

    teamidstringrequired
    The team ID.
    emailstring
    The person's email address.
    namestring
    The person's name, as written in records.
    phonestring
    The person's phone number, as written in records.
    useridstring
    The person's AnyDB user id, if they have an account.
  • anydbmcp_anydb_get_accessRead who holds which roles directly on a team, workspace or record (its ACL), for users and groups.Read-only

    Get access grants

    Read who holds which roles directly on a team, workspace or record (its ACL), for users and groups. Inherited access from a parent is not listed here; ask anydb_who_can_access or anydb_get_permissions for the effective answer. Refused unless you may read the resource's access.

    Inputs

    teamidstringrequired
    The team ID.
    adbidstring
    Workspace ID. Omit for the team itself.
    adoidstring
    Record ID. Omit for the workspace or team.