ragingwind / mcp-host-node-simple

MCP Host App Simple Demo

Repository from Github https://github.comragingwind/mcp-host-node-simpleRepository from Github https://github.comragingwind/mcp-host-node-simple

MCP Simple Host

A simple host application for MCP that show how easy integration with generateText, experimental_createMCPClient of @ai-sdk. Currently, only tested for Anthropic LLM.

Environment

Before running the application, you need to set up the following environment variables.:

ANTHROPIC_API_KEY=your_api_key_here

Running the Application

  1. Install dependencies:
npm install
  1. Build & Start the application:
npm build && npm start

For development mode:

npm run dev

Configuration

The MCP server list can be configured through the mcp-server.json file. Example for simple MCP servers are listed at 'fixtures/servers'.

About

MCP Host App Simple Demo


Languages

Language:TypeScript 90.2%Language:JavaScript 9.8%