Mastra/mcp
officialClient implementation for Mastra, providing seamless integration with MCP-compatible AI models and tools.
@mastra/mcp
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.
Installation
To use MCP, install the required dependency:
npm install @mastra/mcp@latest
Overview
Mastra currently supports two MCP classes:
MCPClient: Connects to one or many MCP servers to access their tools, resources, prompts, and handle elicitation requests.MCPServer: Exposes Mastra tools, agents, workflows, prompts, and resources to MCP-compatible clients.
Read the official MCP documentation to learn more.
Related Servers
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Spartan Ng Mcp
MCP server that gives AI assistants full access to the Spartan Angular UI ecosystem — component discovery, Brain/Helm APIs, source code, installation commands, and project context detection.
CSS Tutor
Provides personalized updates and tutoring on CSS features using the OpenRouter API.
Test Automator
An LLM-powered server for automating unit, integration, E2E, and API tests.
TakeProfit MCP
Provides access to TakeProfit.com's Indie documentation and tooling — a Python-based scripting language for building custom cloud indicators and trading strategies on the TakeProfit platform.
Wopee MCP
AI testing agents for web apps — dispatch test runs, analysis crawls, and AI agent tests, fetch artifacts and project status
MCP Game Development Server
Automate game creation using React Three Fiber and manage projects with Linear integration.
Greb-MCP
Semantic code search for AI agents without indexing your codebase or storing any data. Fast and accurate.
AI Pair Programmer (Ruby)
AI-powered tools for code review, brainstorming, performance analysis, and security review in Ruby.
ejentum-mcp
Reasoning Harness for agentic AI: 4 cognitive modes (reasoning, code, anti-deception, memory), 679 engineered abilities served as MCP tools, runtime scaffold injection.
MCP Random Number
Generates true random numbers using atmospheric noise from random.org.