MCP ExplorerExplorer

Mcp Chat Demo

@ehartyeon a year ago
1 MIT
FreeCommunity
AI Systems
A sample chat application demonstrating integration with Model Context Protocol (MCP) servers

Overview

What is Mcp Chat Demo

mcp-chat-demo is a sample chat application that demonstrates the integration with Model Context Protocol (MCP) servers, showcasing how to build a real-time chat interface using modern web technologies.

Use cases

Use cases for mcp-chat-demo include creating customer support chatbots, facilitating team discussions in remote work environments, and integrating chat functionalities into existing applications that utilize MCP servers.

How to use

To use mcp-chat-demo, clone the repository from GitHub, install the necessary dependencies using npm, and start the development server with the provided commands in the README.

Key features

Key features of mcp-chat-demo include the ability to connect to local or remote MCP servers, a real-time chat interface, support for MCP tools and resources, message history, and built-in error handling and reconnection logic.

Where to use

mcp-chat-demo can be used in various fields such as customer support, team collaboration, and any application requiring real-time communication through chat interfaces.

Content

MCP Chat Demo

A sample chat application demonstrating integration with Model Context Protocol (MCP) servers.

Project Structure

mcp-chat-demo/
├── package.json
├── README.md
├── .gitignore
├── src/
│   ├── App.tsx
│   ├── main.tsx
│   ├── components/
│   │   ├── Chat.tsx
│   │   ├── MessageList.tsx
│   │   ├── MessageInput.tsx
│   │   └── MCPConnection.tsx
│   ├── lib/
│   │   ├── mcp-client.ts
│   │   └── types.ts
│   └── styles/
│       └── main.css
└── public/
    └── index.html

Setup Instructions

  1. Clone the repository:
git clone https://github.com/yourusername/mcp-chat-demo.git
cd mcp-chat-demo
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

Features

  • Connect to local or remote MCP servers
  • Real-time chat interface
  • Support for MCP tools and resources
  • Message history
  • Error handling and reconnection logic

Technology Stack

  • React 18
  • TypeScript
  • Vite
  • TailwindCSS
  • MCP TypeScript SDK

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers