mcp-add-server

mcp-add-server

0

The MCP Add Server is a minimal MCP server designed to perform basic addition operations. It provides a simple tool for summing two numbers and serves as an example of implementing an MCP server.

MCP Add Server

A minimal Model Context Protocol (MCP) server offering a basic add(a, b) tool for summing two numbers. It's designed as a simple example of MCP server implementation.

Features

  • Implements a Model Context Protocol compliant server.
  • Provides a single tool for addition.

Prerequisites

  • Node.js (version 18.x.x or higher recommended)
  • npm (comes with Node.js)

Installation

  1. Clone the repository.
  2. Install dependencies with npm.

Usage

  1. Use npx to run the server without installing.
  2. Run from a cloned repository using npm.
  3. Install globally for frequent use.
  4. Link locally for development.

Running Tests

Tests will be added later. Currently, running npm test shows an error as no tests are specified.

Project Structure

  • Source code and dependencies are under src/ and node_modules/ respectively.

Contributing

Contributions are welcome! Submit a pull request or open an issue.

License

Licensed under the MIT License.