Mastra MCP Server workshop
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-server-workshop": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This repository contains the completed code for the Mastra MCP Server workshop. It has been structured as a monorepo, with the MCP server and the frontend application separated into distinct packages. It demonstrates how to build a local MCP server to manage markdown notes, create custom tools and prompts, and build a reactive Next.js frontend with an AI agent to interact with the notes.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
notesMarkdown files from the local notes directory that can be read and managed
brainstorm_ideasPrompts the agent to brainstorm ideas, using the current note as context if needed
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools / education
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf. Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
MCP server for using the GitLab API
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Workshop and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This repository contains the completed code for the Mastra MCP Server workshop. It has been structured as a monorepo, with the MCP server and the frontend application separated into distinct packages. It demonstrates how to build a local MCP server to manage markdown notes, create custom tools and prompts, and build a reactive Next.js frontend with an AI agent to interact with the notes.
Install dependencies:
pnpm install
Run the MCP server:
pnpm dev:mcp
This command starts the Mastra MCP server process.
Run the Mastra agent:
pnpm dev:agent
This command starts the Mastra server with the agent. NOTE: The reason why these are not run together is that in a real world situation the MCP server will be published or hosted already, the agent needs access to the MCP server after it starts. It's good practice to have your MCP Servers separate.
Run the frontend:
pnpm dev:web
This command starts the frontend application.
Open your browser to http://localhost:3000.
This project is a pnpm monorepo. The main packages are:
packages/mcp-server: The MCP server that manages and exposes the notes.packages/web: The Next.js frontend application, which includes the Mastra agent.packages/notes: Directory containing your local markdown notes.packages/mcp-server)src/server.ts: The entry point for the MCP server, defining the MCPServer instance, including resource and prompt handlers.src/resources.ts: Implements the resource handlers (listResources, getResourceContent) for reading notes from the packages/notes/ directory.src/tools.ts: Implements the writeNote tool, allowing the agent to create and edit notes.src/prompts.ts: Implements the prompt handlers (listPrompts, getPromptMessages) that power the slash-command menu.packages/web)src/app/: The Next.js application.
notes/page.tsx: The main UI, which includes the list of notes, the note display, and the agent panel.src/app/api/: API endpoints for the frontend.
notes/: API to list and read notes from the file system.copilotkit/: Handles the agent's backend requests.prompts/: API to fetch the list and content of available prompts for the slash-command menu.events/: A Server-Sent Events (SSE) endpoint for pushing real-time updates to the frontend.src/components/: Reusable React components.
agent.tsx: Contains the CopilotChat component and its configuration.CustomChatInput.tsx: A custom input component for the chat that implements the slash-command menu.PromptMenu.tsx: The UI for the slash-command prompt list.note-display.tsx: Component to render the content of a selected note.note-list.tsx: Component to display the list of available notes.src/lib/: Utility functions and hooks.
events.ts: Contains the eventEmitter for MCP listener event handling.utils.ts: General utility functions.packages/notes/) as resources.writeNote tool to create and modify notes directly on the file system.