trackmcp
Back to directory
ehartye

mcp-chat-demo

View on GitHub

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

1 starsAI & Machine Learning Updated Mar 7, 2025

Documentation

MCP Chat Demo

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

Project Structure

code
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:

bash
git clone https://github.com/yourusername/mcp-chat-demo.git
cd mcp-chat-demo

2. Install dependencies:

bash
npm install

3. Start the development server:

bash
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

Frequently asked questions

What is mcp-chat-demo?

mcp-chat-demo is A sample chat application demonstrating integration with Model Context Protocol (MCP) servers

How do I install mcp-chat-demo?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is mcp-chat-demo open source?

Yes — it is hosted on GitHub at https://github.com/ehartye/mcp-chat-demo and has 1 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP