Integrations
MCP Add Server
A minimal Model Context Protocol (MCP) server that provides a simple add(a, b)
tool. This project serves as a basic example of an MCP server implementation.
Features
- Implements a Model Context Protocol compliant server.
- Provides a single tool:
add(a, b)
which returns the sum of two numbers.
Prerequisites
- Node.js (version 18.x.x or higher recommended)
- npm (comes with Node.js)
Installation
- Clone the repository:Copy
- Install dependencies:Copy
Usage
There are several ways to run the mcp-add-server
:
1. Using npx
(Recommended for most users):
If you have Node.js and npm installed, you can run the server directly without cloning or installing globally:
This command will download the latest version of mcp-add-server
(if not already cached) and execute it.
2. Running from a cloned repository:
After cloning the repository and installing dependencies (see Installation):
This uses the start
script defined in package.json
.
3. Global installation (for frequent use or development):
You can install the package globally:
Then you can run it from any directory:
4. Local linking for development:
In the project's root directory, run npm link
. This will make the mcp-add-server
command available globally, pointing to your local project files.
Once the server is running (regardless of the method used), it will be available to MCP clients.
Example Tool Call (Conceptual)
An MCP client could call the add
tool like this (specifics depend on the client implementation):
The server would respond with:
Running Tests
(When tests are added, describe how to run them here)
(Currently, npm test
will output "Error: no test specified". Update the test
script in package.json
when tests are added.)
Project Structure
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.
License
This project is licensed under the MIT License.
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
A minimal Model Context Protocol server that provides a simple add(a, b) tool for computing the sum of two numbers.
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.Last updated -4JavaScript
- AsecurityFlicenseAqualityA simple server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models through the Model Context Protocol.Last updated -4JavaScript
- AsecurityFlicenseAqualityA simple Model Context Protocol server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models.Last updated -4JavaScript
- -security-license-qualityA simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.Last updated -3PythonGPL 3.0