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.

Installation
npm install
Configuration
- Copy the example configuration file:
cp config.example.json config.json
- Edit
config.jsonand update the configuration values with your own settings:
claudeApiKey: Your Claude API keysystemPrompt: The system prompt for the anthorpic clientmcpServers: Configuration for MCP servers (if needed)
Usage
- Build the project:
npm run build
- Start the client:
npm run start
License
See LICENSE file for details.