Node.js MCP Server
A professional Model Context Protocol (MCP) server built with Node.js, TypeScript, and the official @modelcontextprotocol/sdk.
Features
Tools:
calculate: Perform basic arithmetic operations (add, subtract, multiply, divide).get_system_info: Retrieve system information (Platform, CPU, Memory).
Resources:
system://info: A text resource containing basic system details.
Installation
Install dependencies:
npm installBuild the project:
npm run build
Usage
Running the Server
This server communicates via stdio. You can run it directly:
Integration with Claude Desktop (or other MCP Clients)
To use this server with Claude Desktop, add the following configuration to your claude_desktop_config.json:
Note: Replace
Development
Run in development mode (restarts on change):
npm run build -- --watch # In another terminal: node dist/index.jsRun Tests:
npm test