Mastra/mcp
Client 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.
相關伺服器
Scout Monitoring MCP
贊助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
贊助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
HandMirrorMcp
A Model Context Protocol (MCP) server for .NET assembly and NuGet package inspection
MCPJungle
A self-hosted MCP Server registry for private AI agents, supporting both PostgreSQL and SQLite databases.
Code Runner
Run code snippets in various programming languages and view the output.
mermaid-mcp-server Public
MCP server for generating Mermaid diagrams from projects (local/GitHub) and rendering via Kroki.
Lucide Icons
Provides access to the Lucide icon library for use in LLM and agentic applications.
Cyberlink MCP Server
Interact with the CW-Social smart contract on Cosmos-based blockchains.
PageSpeed Analyzer MCP
Analyzes website performance, SEO, and accessibility using PageSpeed Insights API.
shadcn/ui MCP
Provides context about shadcn/ui components, including structure, usage, and installation for React, Svelte, and Vue.
Package README Core MCP Server
Automatically detects package managers and routes requests to appropriate MCP servers for unified package documentation access.
MCP Server Manager for Claude
Install and manage Model Context Protocol (MCP) servers for Claude Desktop.