Skip to directory

About Mastra Docs MCP

Mastra documentation MCP provides indexed Mastra docs, API schemas, examples, patterns, and debugging references; Mastra recommends its skill/CLI for everyday development.

What you can use it for

  • Mastra developer documentation
Connection and setup
Hosting
hosted
Transport
Streamable HTTP
Endpoint
https://mastra.mcp.kapa.ai (remote); local @mastra/mcp-docs-server package is also documented.
Authentication
Remote endpoint requests Google account authentication for anonymous-ID rate limiting; local server uses stdio.

Requirements

  • Node.js/npm/npx for local package
  • MCP-compatible coding client
  • Google account only when using the hosted remote endpoint

Setup steps

  1. For local MCP, add a stdio entry with command npx and args ["-y", "@mastra/mcp-docs-server@latest"].
  2. For Claude Code, Mastra documents claude mcp add --scope project mastra -- npx -y @mastra/mcp-docs-server@latest. For Codex, it documents codex mcp add mastra-docs -- npx -y @mastra/mcp-docs-server@latest.
  3. For remote access, configure https://mastra.mcp.kapa.ai in a supported client and complete Google sign-in when requested.
  4. Reload the client and verify with a read-only Mastra documentation question.
Tools 13

13 exact tool identifiers from the current official Mastra MCP docs-server registration and imported tool modules; source snapshot may change with package releases.

  • mastraDocs

    Browse official Mastra documentation by path or keyword.

    01
  • mastraMigration

    Retrieve migration guidance for Mastra version upgrades and breaking changes.

    02
  • startMastraCourse

    Start or resume the Mastra learning course.

    03
  • getMastraCourseStatus

    Read Mastra course enrollment and progress.

    04
  • startMastraCourseLesson

    Start a specific Mastra course lesson.

    05
  • nextMastraCourseStep

    Advance to the next step in the active Mastra course.

    06
  • clearMastraCourseHistory

    Clear Mastra course history.

    07
  • getMastraHelp

    Explain the available Mastra documentation tools and recommended workflow.

    08
  • listMastraPackages

    List installed Mastra packages with embedded documentation.

    09
  • getMastraExports

    Read the exported API symbols for an installed Mastra package.

    10
  • getMastraExportDetails

    Retrieve API reference details for an installed package export.

    11
  • readMastraDocs

    Read embedded Mastra package documentation.

    12
  • searchMastraDocs

    Search embedded Mastra package documentation.

    13
Limitations and notes
  • Publisher does not recommend the MCP docs server for everyday development; use the Mastra skill.
Source discrepancies
  • The source list contains multiple Mastra projects described with MCP. This record is specifically the official docs server package, not Mastra's MCP framework, MCP client library, or generic Mastra agent service.
Original sources
  • official primary

    Maintainer security advisory documents directory traversal in vulnerable versions of the npm MCP docs server and fixed-version information.

  • official publisher documentation

    Current primary docs cover Mastra MCP SDK/Connect rather than a named Mastra documentation MCP server.

  • official documentation

    Current publisher or maintainer documentation reviewed 2026-10-28T19:00:00.000Z.

Documentation checked 2026-10-28T19:00:00.000Z. Connection has not been runtime tested.