Introducing Dench MCP
Mastra logo

Integrate Mastra with your AI CRM

Mastra provides Platform management and regional hosted observability APIs for AI agent projects, deployments, feedback, and metrics.

Explore Triggers and Actions

Add Server Domain

Add a custom domain to a hosted Mastra Server project and return its required DNS records.

ActionTry it

Analyze Feedback

Calculate an aggregate, grouped breakdown, time series, or percentile series over numeric Mastra feedback without creating data.

ActionTry it

Analyze Metrics

Calculate an aggregate, grouped breakdown, time series, or percentile series over hosted Mastra metrics without creating data.

ActionTry it

Cancel Server Deployment

Cancel a queued or in-progress Mastra hosted Server deployment.

ActionTry it

Confirm Deploy Upload

Confirm that a deployment ZIP has already been uploaded to the signed URL returned by Create Deployment Upload. This action does not upload the ZIP. It triggers the Studio or Server build-and-deploy pipeline, so call it only after the separate signed-URL PUT succeeds.

ActionTry it

Create API Token

Create a Mastra organization API token. The response exposes the usable secret exactly once because that is the purpose of this operation. Store it securely immediately; do not log, share, or commit it.

ActionTry it

Create Deployment Upload

Create a legacy Mastra Studio or hosted Server deployment upload reservation. This action does not upload the artifact or start the deploy pipeline. When upload_url is returned, upload the ZIP bytes directly to it with PUT and Content-Type application/zip, then call Confirm Deploy Upload with the returned deployment ID. env_vars may contain secrets, and upload_url is a sensitive, short-lived signed URL granting temporary upload access; do not log, persist, share, or expose either value.

ActionTry it

Create Server Project

Create a hosted Mastra Server project. This provisions hosted infrastructure and may trigger usage-metered compute charges.

ActionTry it

Create Studio Project

Create a Mastra Studio project.

ActionTry it

Delete Project

Permanently delete a Mastra Studio project and all its deployments, or a hosted Server project and its provisioned resources.

ActionTry it

Discover Metrics

Discover metric names, labels, and shared observability dimensions without creating data.

ActionTry it

Get Authentication Context

Return the user, organization, role, and authentication type associated with the connected Mastra API key.

ActionTry it

Get Deployment

Get the status and details of one Mastra Studio or hosted Server deployment.

ActionTry it

Get Deployment Logs

Get logs for one Mastra Studio or hosted Server deployment; Studio calls may limit the number of recent lines.

ActionTry it

Get Project

Get one Mastra Studio or hosted Server project and its deployment history.

ActionTry it

Get Server Environment Variables

SENSITIVE: Get environment variables for a hosted Mastra Server project. This returns plaintext secret values; never log, persist, or expose the response.

ActionTry it

Get Server Runtime Logs

Get current runtime log records for a hosted Mastra Server project.

ActionTry it

Invite Organization Member

Send an invitation to join the connected Mastra organization with a member or admin role. The connected account must have an admin role.

ActionTry it

List API Tokens

List metadata for Mastra organization API tokens. Returned token values are obfuscated identification previews, not usable secrets.

ActionTry it

List Feedback

List hosted Mastra feedback records with page or durable delta continuation.

ActionTry it

List Metrics

List raw hosted Mastra metric records with page or durable delta continuation.

ActionTry it

List Organization Invitations

List all pending invitations for the connected Mastra organization.

ActionTry it

List Organization Members

List members of the connected Mastra organization, including their roles and membership status.

ActionTry it

List Organizations

List Mastra organizations available to the connected API-key bearer credential.

ActionTry it

List Projects

List Mastra Studio or hosted Server projects in the connected organization.

ActionTry it

List Server Domains

List custom domains configured for a hosted Mastra Server project.

ActionTry it

Redeploy Server Project

Trigger a new deployment for a hosted Mastra Server project. Redeployment starts deployment work and may trigger usage-metered compute charges.

ActionTry it

Remove Organization Member

Remove a member from the connected Mastra organization. This destructive operation requires an organization admin role.

ActionTry it

Revoke API Token

Revoke a Mastra organization API token so it can no longer authenticate. This destructive operation cannot reveal or restore the revoked secret.

ActionTry it

Revoke Organization Invitation

Revoke a pending invitation to the connected Mastra organization. The connected account must have an admin role.

ActionTry it

Set Server Environment Variables

SENSITIVE SECRET MUTATION: Replace environment variables for a hosted Mastra Server project. Values are secrets; never log, persist, or expose them. This route does not restart the running service.

ActionTry it

Set Server Environment Variables and Restart

SENSITIVE, IRREVERSIBLE RUNTIME OPERATION: Replace secret environment variables for a hosted Mastra Server project and immediately restart its running service. Never log, persist, or expose the secret values.

ActionTry it

Stop Server Deployment

Stop a Mastra hosted Server deployment.

ActionTry it

Update Organization Member Role

Change an existing member's role in the connected Mastra organization. The connected account must have an admin role.

ActionTry it

Verify Project Ingest Access

Verify that the connected Mastra organization API key can ingest telemetry for one project without changing provider state.

ActionTry it

How the Mastra integration works

The Mastra integration connects Dench directly to Mastra, so agents can read and act on your Mastra data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.

35 actions are available for agents to invoke on your behalf. Every call runs through Mastra's own authorization, scoped to the account you connect.

Set up Mastra in Dench

  1. 1

    Sign in to your Dench workspace and open Integrations.

  2. 2

    Find Mastra and click Connect — you'll authorize access through Mastra's own sign-in flow. No API keys or code required.

  3. 3

    Ask an agent to use Mastra in chat, or call it from an automation.

  4. 4

    Manage or disconnect the connection any time from workspace settings.

Frequently asked questions

How does the Mastra integration work with Dench?

The Dench Mastra integration connects your AI CRM to Mastra, so AI agents can work with your Mastra data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.

What actions can AI agents perform with Mastra via Dench?

The Mastra integration currently exposes 35 actions, including Add Server Domain, Analyze Feedback, Analyze Metrics, Cancel Server Deployment, Confirm Deploy Upload, and Create API Token. Agents invoke them on your behalf from chat or from automations.

Do I need to write code to connect Mastra to Dench?

No. You connect Mastra from your Dench workspace using Mastra's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.

Is the Mastra integration secure?

Connections are authorized through Mastra's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the Mastra connection from your workspace settings at any time.