MCP ExplorerExplorer

Mastra Docs Chatbot

@adeniyiion 10 months ago
1 MIT
FreeCommunity
AI Systems
test chatbot using mastra's mcp docs server

Overview

What is Mastra Docs Chatbot

Mastra Docs Chatbot is a Next.js application that utilizes Mastra agents to provide a chat interface for interacting with documentation, specifically designed to assist users in finding accurate information about Mastra.

Use cases

Use cases include answering questions about Mastra documentation, providing code examples, sharing best practices, and maintaining conversation history for improved user experience.

How to use

To use Mastra Docs Chatbot, clone the repository, install dependencies, configure environment variables with your OpenAI API key, and run the development server. Access the application via your browser at http://localhost:3000.

Key features

Key features include a specialized Mastra agent with a custom model, Model Context Protocol (MCP) integration for documentation search, real-time streaming responses, conversation memory between sessions, and a modern UI with Assistant UI components.

Where to use

Mastra Docs Chatbot can be used in software development environments, technical support, and educational settings where users need quick access to documentation and code examples related to Mastra.

Content

Mastra Docs Chatbot

A Next.js application that uses Mastra agents to provide a chat interface for interacting with:

  1. 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

  1. Clone the repository:
git clone <repository-url>
cd mastra-docs-chatbot
  1. Install dependencies:
npm install
# or
pnpm install
  1. Configure environment variables:
    Create a .env.local file with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
  1. Run the development server:
npm run dev
# or
pnpm dev
  1. 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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers