simple-nodejs-mcp-client

This repository serves as a study resource for implementing a Model Context Protocol (MCP) client in Node.js. It features a simple interactive client and provides clear instructions on configuration and usage. Users need to set up their API key and system prompt, and the steps for building and starting the client are well documented.

GitHub Stars

11

User Rating

Not Rated

Favorites

0

Views

31

Forks

1

Issues

1

README
Simple Nodejs MCP Client

This is a study repository for implementing a Model Context Protocol (MCP) client. It features a simple interactive MCP client implemented in Node.js.

screenshot

Installation
npm install
Configuration
  1. Copy the example configuration file:
cp config.example.json config.json
  1. Edit config.json and update the configuration values with your own settings:
  • claudeApiKey: Your Claude API key
  • systemPrompt: The system prompt for the anthorpic client
  • mcpServers: Configuration for MCP servers (if needed)
Usage
  1. Build the project:
npm run build
  1. Start the client:
npm run start
License

See LICENSE file for details.