Multi-server MCP demo with Claude chat UI

Multi-server MCP demo with Claude chat UI

typescript-mcp-demo•byjiangyan

A full-stack demo that runs TodoPlan and Project MCP servers together with an Express host and browser chat interface, letting Claude discover and call tools from multiple MCP servers.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Implements two MCP servers in Node.js: TodoPlan (todos and plans) and Project (project details).
  • •Exposes tools such as get-todo by category, get-plan, and get-project-details by project name.
  • •Connects to multiple MCP servers at once and prefixes tool names with the server name to avoid conflicts.
  • •Presents a browser chat interface with a two-panel view of conversation and tool execution details.

BEST FOR

  • •Exploring how a host application can aggregate tools from multiple MCP servers into one Claude conversation.
  • •Testing MCP tool calls interactively by asking Claude about todos, plans, and project details.
  • •Connecting to an MCP server programmatically without the web interface.

ABOUT TYPESCRIPT-MCP-DEMO

Multi-server MCP demo with Claude chat UI is cataloged as an MCP server attributed to jiangyan. A full-stack demo that runs TodoPlan and Project MCP servers together with an Express host and browser chat interface, letting Claude discover and call tools from multiple MCP servers. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Multi-server MCP demo with Claude chat UI are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools do the MCP servers provide?

The TodoPlan server provides get-todo (by category) and get-plan; the Project server provides get-project-details (by project name).

How does the host app handle tools from multiple MCP servers?

It connects to multiple servers simultaneously, prefixes tool names with the server name using underscores, routes calls based on the prefix, and presents a unified tool set to the LLM.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 1a2d7ade2319 · 采集于 2026-11-13 10:28:35 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Chat with Claude

A full-stack application demonstrating the integration of Model Context Protocol (MCP) with Anthropic's Claude LLM, providing an interactive chat interface that leverages MCP tools. image

Project Overview

This project consists of three main components:

  1. Multiple MCP Servers: Node.js servers implementing the Model Context Protocol that provide various specialized tools for the LLM to use.
  2. Host App: An Express server that acts as the intermediary between the user, Claude AI, and the MCP servers.
  3. Web Client: A browser-based chat interface that communicates with the Host App.

Features

  • Interactive chat interface with Claude AI
  • Two-panel UI showing conversation and tool execution details
  • Dynamic tool discovery from multiple MCP servers
  • Support for specialized tools with different parameters from each server
  • Proper handling of Claude's tool use via MCP

Project Structure

├── client/                 # Host app & web client
│   ├── dist/               # Compiled TypeScript
│   ├── host-app.ts         # Host application server
│   ├── chat.js             # Frontend chat interface logic
│   ├── index.html          # Main web interface
│   ├── styles.css          # Styling for web interface
│   ├── package.json        # Client dependencies
│   └── mcp-client-example.ts # Example MCP client for testing
│
├── server/                 # MCP servers
│   ├── dist/               # Compiled TypeScript
│   ├── mcp-server-todoplan.ts # TodoPlan MCP server implementation
│   ├── mcp-server-project.ts  # Project MCP server implementation
│   └── package.json        # Server dependencies
│
├── .gitignore              # Git ignore file
└── README.md               # Project documentation

Prerequisites

  • Node.js 17 or higher
  • npm or yarn
  • Anthropic API key

Installation

  1. Clone the repository:

    git clone https://github.com/jiangyan/typescript-mcp-demo.git
    cd typescript-mcp-demo
    
  2. Install dependencies for both client and server:

    cd server
    npm install
    cd ../client
    npm install
    
  3. Create .env file in the client directory with your Anthropic API key:

    ANTHROPIC_API_KEY=your-api-key-here
    MCP_SERVER_TODOPLAN_URL=http://localhost:8000/sse
    MCP_SERVER_PROJECT_URL=http://localhost:8001/sse
    PORT=3000
    
  4. Create .env file in the server directory:

    MCP_SERVER_TODOPLAN_PORT=8000
    MCP_SERVER_PROJECT_PORT=8001
    

Setup and Running

Step 1: Start the MCP servers

# Terminal 1: Start the TodoPlan MCP server
cd server
npm run build:todoplan
npm run start:todoplan

# Terminal 2: Start the Project MCP server
cd server
npm run build:project
npm run start:project

The TodoPlan MCP server will start on port 8000 and the Project MCP server will start on port 8001 by default.

Step 2: Start the host app (web server)

cd client
npm run build
npm start

The web server will start on port 3000 by default.

Step 3: Access the chat interface

Open your browser and navigate to:

http://localhost:3000

Available MCP Tools

The MCP servers provide the following tools that Claude can use:

  1. todoplan-server_get-todo: Get a todo item for a specific category

    • Parameters:
      • category: String (e.g., "life", "work", "family", "friends")
  2. todoplan-server_get-plan: Get the overall plan

    • Parameters: None
  3. project-server_get-project-details: Get details for a specific project

    • Parameters:
      • project_name: String (e.g., "Earth", "Mars", "Jupiter", "Saturn")

Additional Example

The project includes a standalone MCP client example (mcp-client-example.ts) that demonstrates how to connect to the MCP server programmatically without the web interface.

To run this example:

cd client
npm run client

Development

MCP Server Development

To add a new tool to an MCP server:

  1. Open the server file (e.g., server/mcp-server-todoplan.ts)
  2. Add a new tool definition following the existing pattern:
    server.tool("tool-name",
      { param1: z.string() },
      async ({ param1 }) => {
        // Tool implementation
        return {
          content: [{ type: "text", text: "Result" }]
        };
      }
    );
    
  3. Rebuild and restart the server

Host App Development

The host app consists of:

  • Backend (host-app.ts): Express server that communicates with Claude and multiple MCP servers
  • Frontend (chat.js, index.html, styles.css): Chat interface that communicates with the backend

Architecture

┌─────────────┐       ┌────────────────┐       ┌───────────────┐
│             │       │                │       │               │
│  Web UI     │◄─────►│  Host App      │◄─────►│  MCP Servers  │
│  (Browser)  │       │  (Express)     │       │  (Node.js)    │
│             │       │                │       │               │
└─────────────┘       └───────┬────────┘       └───────────────┘
                              │
                              ▼
                      ┌───────────────┐
                      │               │
                      │  Claude API   │
                      │  (Anthropic)  │
                      │               │
                      └───────────────┘

Multiple MCP Servers Implementation

This project implements a multi-server MCP architecture, allowing Claude to access tools from different specialized servers.

Server Configuration

The project includes two distinct MCP servers:

  1. TodoPlan MCP Server (server/mcp-server-todoplan.ts): Provides tools for managing todos and plans

    • get-todo: Get a todo item for a specific category
    • get-plan: Get the overall plan
  2. Project MCP Server (server/mcp-server-project.ts): Provides tools for accessing project information

    • get-project-details: Get details for a specific project

Host App Integration

The host app (client/host-app.ts) has been implemented to:

  1. Connect to multiple MCP servers simultaneously
  2. Prefix tool names with their server name using underscores to avoid conflicts (e.g., todoplan-server_get-todo)
  3. Route tool calls to the appropriate server based on the prefix
  4. Present a unified set of tools to the LLM

Example Queries

Try the following queries to test the integration of multiple servers:

  • "Tell me about project Earth"
  • "What's my todo for the work category?"
  • "Find my todo in the work category and tell me what projects are related to it"
  • "What's my plan?"

Troubleshooting

  1. Connection issues: Ensure both MCP servers and the host app are running and check the console for error messages.

  2. Tool not found: Make sure the MCP servers are running and the tool names match exactly.

  3. API key errors: Verify your Anthropic API key is correctly set in the client's .env file.

  4. Tool use errors: Check the response panel for detailed error information.

  5. Invalid tool name format: Ensure tool names follow Anthropic's required format (alphanumeric characters, underscores, and hyphens only).

License

MIT

Acknowledgments

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Multi-server MCP demo with Claude chat UI from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/typescript-mcp-demo)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent