Mastra Docs MCP

Serves current Mastra documentation, changelogs, and examples to the agent, which is the difference between working code and plausible code when a framework ships weekly.

Official TypeScript stdio

What it does

Serves current Mastra documentation, changelogs, and examples to the agent, which is the difference between working code and plausible code when a framework ships weekly. Documentation servers like this are the most underrated category: they are cheap to run and they fix the most common failure mode, which is a model remembering an API that changed.

Install

Terminal
npx -y @mastra/mcp-docs-server

Client configuration

Paste this into your MCP client config (Claude Desktop, Cursor, or any client that reads mcpServers), then restart the client.

mcp.json
{
  "mcpServers": {
    "mastra-docs": {
      "command": "npx",
      "args": [
        "-y",
        "@mastra/mcp-docs-server"
      ]
    }
  }
}

Use it for

Writing Mastra agents without guessing at API signatures

Skip it if

Any project that does not use Mastra

When to use it

Reach for this when the task needs docs inside the agent loop. Skip it if a plain shell command or a one-off script is enough — every server you add costs context and adds a failure mode.

Other TypeScript servers

  • Filesystem — Gives an agent scoped read, write, and search access to directories you explicitly allow
  • Memory — A persistent knowledge graph stored in a local JSON file, exposed through entities, relations, and observations
  • Sequential Thinking — Gives the model a scratchpad for structured, revisable reasoning: numbered thoughts that can branch, revise, and conclude