Mastra/mcp
Client implementation for Mastra, providing seamless integration with MCP-compatible AI models and tools.
Ads
Overview
Mastra supports the Model Context Protocol (MCP), an open standard for connecting AI agents to external tools and resources. It serves as a universal plugin system, enabling agents to call tools regardless of language or hosting environment. Mastra can also be used to author MCP servers, exposing agents, tools, and other structured resources via the MCP interface. These can then be accessed by any system or agent that supports the protocol. To use MCP, install the required dependency: Mastra currently supports two MCP classes:
Installation
npm install @mastra/mcp@latest
Configuration
Configuration example is not available yet.
Capabilities
- Connect agents to external MCP servers
use `MCPClient` to let an agent call tools and access resources from one or more MCP-compatible servers.
- Expose Mastra tools as MCP tools
create an `MCPServer` that publishes your existing Mastra tools for any MCP client to discover and invoke.
- Expose Mastra agents via MCP
serve agents through an `MCPServer` so external systems can interact with them over the protocol.
- Expose workflows and prompts
publish Mastra workflows and prompts as MCP resources that clients can retrieve and execute.
Tags
- ai-agent
- development
- workflow-automation
Related MCP servers
Context7 MCP
OfficialOfficial Context7 MCP server that brings up-to-date, version-specific library documentation and code examples into AI coding prompts.
Chrome DevTools MCP
OfficialOfficial Chrome DevTools MCP server for controlling and inspecting a live Chrome browser from coding agents such as Gemini, Claude, Cursor, and Copilot.
GitHub MCP Server
OfficialConnect your AI assistant to GitHub repositories, issues, pull requests, and search.
Kubeshark
OfficialMCP access to cluster-wide L4 and L7 network traffic, packets, APIs, and complete payloads.