mcp-docs-server

v1.3.16
@mastra/mcp-docs-server Checked 7 hours ago Published 6 days ago

MCP server for accessing Mastra.ai documentation, changelogs, and news.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mastraDocs

[🌐 REMOTE] Get Mastra documentation. Request paths to explore the docs. References contain API docs. Other paths contain guides. The user doesn't know about files and directories. You can also use keywords from the user query to find relevant documentation, but prioritize paths. This is your internal knowledge the user can't read. If the user asks about a feature check general docs as well as reference docs for that feature. Ex: with workflows check in docs/workflows and in reference/workflows. Provide code examples so the user understands. IMPORTANT: Be conc…

ParameterTypeDescription
paths *arrayOne or more documentation paths to fetch Available paths: Available top-level paths: Directories: - course/ - docs/ - integrations/ - models/ - reference/ Reference subdirectories: - reference/acp/ -…
queryKeywordsarrayKeywords from user query to use for matching documentation. Each keyword should be a single word or short phrase; any whitespace-separated keywords will be split automatically.

mastraMigration

[🌐 REMOTE] Get migration guidance for Mastra version upgrades and breaking changes. This tool works like a file browser - navigate through directories to find migration guides: **Step 1: List top-level migrations** - Call with no parameters: `{}` - Shows all top-level migration guides and directories **Step 2: Navigate into a directory** - Add trailing slash to explore: `{ path: "upgrade-to-v1/" }` - Lists all migration guides in that directory **Step 3: View a migration guide** - Without trailing slash: `{ path: "upgrade-to-v1/agent" }` - Returns the full migration guide content **Ste…

ParameterTypeDescription
listSectionsbooleanSet to true to list all section headers in a migration guide without fetching full content.
pathstringPath to the migration guide (e.g., "upgrade-to-v1/agent", "agentnetwork"). If not provided, lists all available migrations. Example migration paths: - agentnetwork - ai-sdk-v4-to-v5 - mastra-cloud -…
queryKeywordsarrayKeywords to search across all migration guides. Use this to find guides related to specific topics.
sectionsarraySpecific section titles to fetch from the migration guide. If not provided, returns the entire guide. Use this after exploring section headers.

startMastraCourse

[πŸŽ“ COURSE] Starts the Mastra Course. If the user is not registered, they will be prompted to register first. Otherwise, it will start at the first lesson or pick up where they last left off. ALWAYS ask the user for their email address if they are not registered. DO NOT assume their email address, they must confirm their email and that they want to register.

ParameterTypeDescription
emailstringEmail address for registration if not already registered.

getMastraCourseStatus

[πŸŽ“ COURSE] Gets the current status of the Mastra Course, including which lessons and steps have been completed

startMastraCourseLesson

[πŸŽ“ COURSE] Starts a specific lesson in the Mastra Course. If the lesson has been started before, it will resume from the first incomplete step

ParameterTypeDescription
lessonName *stringName of the specific lesson to start. It must match the exact lesson name.

nextMastraCourseStep

[πŸŽ“ COURSE] Advances to the next step in the current Mastra Course lesson. If all steps in the current lesson are completed, it will move to the next lesson

clearMastraCourseHistory

[πŸŽ“ COURSE] Clears all Mastra Course progress history and starts over from the beginning. This action cannot be undone

ParameterTypeDescription
confirmbooleanSet to true to confirm this action

getMastraHelp

πŸš€ START HERE - Complete guide to Mastra documentation tools. This MCP server provides TWO documentation sources: ## πŸ“¦ LOCAL PACKAGE DOCS (Recommended for Development) SOURCE: Your installed @mastra packages in node_modules VERSION: Matches your installed code exactly ADVANTAGES: - βœ… Version-matched to your code - βœ… Complete TypeScript type definitions - βœ… Works offline - βœ… SOURCE_MAP.json with exact exports TOOLS: listMastraPackages, getMastraExports, getMastraExportDetails, readMastraDocs, searchMastraDocs USE WHEN: Writing code, i…

ParameterTypeDescription
projectPath *stringAbsolute path to your project root (we will search upward for node_modules with Mastra packages)

listMastraPackages

[πŸ“¦ LOCAL PACKAGES] Discover which Mastra packages are installed and have documentation available. Use this when you need to: - See what Mastra packages you can work with - Start exploring Mastra documentation - Check if a specific package is available Returns: List of @mastra/* packages (core, memory, rag, etc.) with embedded docs. Next step: Use getMastraExports to explore a specific package's API.

ParameterTypeDescription
projectPath *stringAbsolute path to your project root (we will search upward for node_modules with Mastra packages)

getMastraExports

[πŸ“¦ LOCAL PACKAGES] Explore the complete API surface of a Mastra package - see all classes, functions, types, and constants. Use this when you need to: - Discover what APIs a Mastra package provides (Agent, Tool, Workflow, etc.) - See all available classes and functions before implementing - Find the right export for your use case - Understand package structure and organization Returns: List of all exports with their source file locations. Next step: Use getMastraExportDetails to get full type definitions and code for a specific export.

ParameterTypeDescription
package *stringPackage name to explore (e.g., "@mastra/core", "@mastra/memory", "@mastra/rag")
projectPath *stringAbsolute path to your project root (we will search upward for node_modules with Mastra packages)
filterstringOptional: filter exports by name (case-insensitive, e.g., "Agent", "create", "Tool")

getMastraExportDetails

[πŸ“¦ LOCAL PACKAGES] Get complete API reference for a specific Mastra export - type definitions, interfaces, and optionally source code. Use this when you need to: - Understand how to use a specific Mastra class or function (Agent, Tool, Workflow, etc.) - See TypeScript type definitions and interfaces - Look up method signatures and parameters - Read implementation code and examples - Understand constructor options and configuration Returns: Full TypeScript type definitions and optionally implementation source code. Example: Get details on the Agent class to…

ParameterTypeDescription
exportName *stringExact export name to look up (e.g., "Agent", "createTool", "Workflow")
package *stringPackage name (e.g., "@mastra/core", "@mastra/memory")
projectPath *stringAbsolute path to your project root (we will search upward for node_modules with Mastra packages)
implementationLinesnumberNumber of lines of implementation code to show (default: 50)
includeImplementationbooleanInclude source code implementation (useful for understanding internals)
includeTypesbooleanInclude TypeScript type definitions (recommended: true)

readMastraDocs

[πŸ“¦ LOCAL PACKAGES] Read comprehensive guides and documentation on Mastra concepts, patterns, and implementation examples. Use this when you need to: - Learn how to implement Mastra features (agents, tools, workflows, memory, RAG, etc.) - Understand Mastra architecture and design patterns - See practical code examples and tutorials - Read getting started guides and best practices - Understand how different components work together Returns: Topic-based documentation with explanations, examples, and usage patterns. Available topics: agents, tools, workflows, m…

ParameterTypeDescription
package *stringPackage name to read docs from (e.g., "@mastra/core", "@mastra/memory")
projectPath *stringAbsolute path to your project root (we will search upward for node_modules with Mastra packages)
filestringOptional: specific documentation file within the topic (e.g., "01-overview.md")
topicstringOptional: topic folder to read (e.g., "agents", "tools", "workflows"). Omit to list all available topics.

searchMastraDocs

[πŸ“¦ LOCAL PACKAGES] Search across all Mastra documentation to find specific information, patterns, or examples. Use this when you need to: - Find specific topics or concepts quickly (e.g., "memory processors", "tool composition") - Locate examples of specific features or patterns - Search for error messages or troubleshooting info - Find mentions of specific APIs or configuration options - Discover where a feature is documented Returns: Relevant documentation excerpts with file paths, ranked by relevance. Tip: Use specific terms for better results (e.g., "ag…

ParameterTypeDescription
projectPath *stringAbsolute path to your project root (we will search upward for node_modules with Mastra packages)
query *stringWhat to search for (case-insensitive, e.g., "workflow steps", "vector store", "authentication")
maxResultsnumberOptional: maximum number of results to return (default: 10)
packagestringOptional: limit search to a specific package (e.g., "@mastra/core"). Omit to search all packages.