mastra-mcp

Configure Mastra as an MCP server or client to expose tools to Claude Desktop.

2|1|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/lucidlabs-hq/agent-kit --skill mastra-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mastra-mcp
Source: https://github.com/lucidlabs-hq/agent-kit/tree/main/.claude/skills/mastra-mcp
Command: npx skills add https://github.com/lucidlabs-hq/agent-kit --skill mastra-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mastra tools need to be accessible by external MCP clients such as Claude Desktop. This skill configures Mastra as either an MCP server or client to expose and consume Mastra tools through the MCP, enabling cross-application workflows.

Core Features & Use Cases

  • Provision MCP server and client configurations to expose Mastra tools to Claude Desktop and MCP clients.
  • Offer server and client workflows for tool discovery, invocation, and usage across Mastra projects.
  • Provide Claude Desktop configuration and templates to simplify integration and onboarding.

Quick Start

Execute the setup to generate the MCP server entry point and Claude Desktop configuration for your Mastra project.

Frequently Asked Questions about mastra-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose Mastra tools to Claude Desktop via Model Context Protocol?

You can expose Mastra tools to Claude Desktop via the Model Context Protocol by configuring Mastra as an MCP server, using the provided setup commands and configuration templates to enable tool discovery and invocation.

Can I use Mastra as an MCP client to consume external tools?

Yes, Mastra can be configured as an MCP client to consume external tools, enabling cross-application workflows and tool usage across Mastra projects and external services through the Model Context Protocol.

What is needed to configure Mastra as an MCP server for tool exposure?

Configuring Mastra as an MCP server requires generating an MCP server entry point and updating the Claude Desktop configuration using the provided setup commands and server code templates from the documentation.

Does Mastra MCP integration support tool discovery across external services?

Yes, the Mastra MCP integration supports tool discovery, invocation, and usage across Mastra projects and external services by provisioning both MCP server and client configurations for external clients.

Why use Mastra MCP for Claude Desktop integration instead of direct API connections?

Using Mastra with the Model Context Protocol standardizes tool exposure and consumption, simplifying onboarding and enabling cross-application workflows without maintaining custom direct API connections for each external service.

What are the limitations of using Mastra with the Model Context Protocol?

The Mastra MCP integration is specifically designed for exposing and consuming Mastra tools via the Model Context Protocol, meaning it is limited to environments and clients that support the MCP standard for tool communication.