iamtheShadow712/basic-mcp-server-nodejs
3.1
If you are the rightful owner of basic-mcp-server-nodejs and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A basic MCP server implemented in Node.js for adding two integers.
Tools
1
Resources
0
Prompts
0
Basic MCP Server for Node.js
A simple MCP (Model Context Protocol) server implemented in Node.js that provides a tool to add two integers.
Installation
Clone the repository and install dependencies:
npm install
To install globally:
npm install -g .
Usage
Run the server:
node server.js
Or if installed globally:
basic-mcp-server
The server communicates via stdio and provides tools for MCP clients.
Tools
-
add_integers: Adds two integers and returns the sum.
Input:
a: First integerb: Second integer
Output: The sum as a string.
Docker
Build and run with Docker:
docker build -t basic-mcp-server .
docker run basic-mcp-server