Mastra Docs Chatbot
LocalAbout Mastra Docs Chatbot
Mastra Docs Chatbot is a Next.js chat app using Mastra agents to answer questions about Mastra documentation, examples, and best practices. It searches documentation through MCP and supports streaming replies and conversation memory across sessions.
Key features
- 01Answer questions about Mastra documentation
- 02Search documentation through MCP
- 03Stream responses in real time
- 04Keep conversation memory across sessions
- 05Use Assistant UI components
Use cases
- 01Look up Mastra documentation
- 02Find code examples and best practices
- 03Continue documentation chats across sessions
MCP support
The app uses MCP integration with the Mastra docs server to search documentation, examples, blog posts, and package changelog information.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMastra Docs Chatbot
A Next.js application that uses Mastra agents to provide a chat interface for interacting with:
- Docs Agent - a documentation assistant that uses the Mastra MCP docs server to provide accurate information about Mastra
Features
- A specialized Mastra agent with a custom model and tools
- Model Context Protocol (MCP) integration for documentation search
- Real-time streaming responses
- Conversation memory between sessions
- Modern UI with Assistant UI components
Getting Started
Prerequisites
- Node.js 18+
- npm or pnpm
Installation
- Clone the repository:
git clone <repository-url>
cd mastra-docs-chatbot
- Install dependencies:
npm install
# or
pnpm install
- Configure environment variables:
Create a
.env.localfile with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Run the development server:
npm run dev
# or
pnpm dev
- Open http://localhost:3000 in your browser to see the app.
Usage
- The homepage features the Docs Agent, which can answer questions about Mastra documentation, code examples, and best practices.
- The agent maintains conversation history across sessions.
How It Works
- The application uses Mastra agents with the MCP (Model Context Protocol) integration to access documentation.
- The docs agent can search through the Mastra documentation, examples, blog posts, and package changelog information.
- The UI is built with Next.js and Assistant UI components for a modern chat experience.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.