# Mastra Docs MCP Server

Runs Mastra's full documentation locally as an MCP server, so your coding agent can look up Mastra APIs.

MCP server by Mastra. Category: Agent craft.

## Install

Project (for this project only):

```sh
npx add-mcp @mastra/mcp-docs-server@latest
```

Works with: Claude Code, Codex CLI, Cursor, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx add-mcp @mastra/mcp-docs-server@latest -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Where it runs

Your computer.

## What it needs

Nothing.

## Tags

- Runs on your computer: It runs as a program on your machine, with your access.

## Source

[Open the source](https://mastra.ai/docs/getting-started/mcp-docs-server). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

- Previous: [Marketplace](https://syn4pse.dev/terminal/digitalocean-marketplace.md)
- Next: [Mastra Docs Remote MCP Server](https://syn4pse.dev/terminal/mastra-docs-remote-mcp-server.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
