MCP Add Server
by zhangzhefang-github
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.
Last updated: N/A
What is MCP Add Server?
MCP Add Server is a basic implementation of a Model Context Protocol server. It provides a single tool, add(a, b)
, which calculates the sum of two numbers.
How to use MCP Add Server?
The server can be run using npx mcp-add-server
, npm start
after cloning the repository and installing dependencies, or by installing the package globally with npm install -g mcp-add-server
. Once running, MCP clients can call the add
tool with arguments a
and b
.
Key features of MCP Add Server
Implements a Model Context Protocol compliant server
Provides a single tool:
add(a, b)
Easy to install and run
Example of MCP server implementation
Use cases of MCP Add Server
Demonstrating a basic MCP server
Integrating with MCP-compatible chatbots or applications
Providing a simple addition service
Learning about MCP server development
FAQ from MCP Add Server
What is MCP?
What is MCP?
Model Context Protocol is a protocol for communication between models and clients.
How do I install the server?
How do I install the server?
You can install it using npm or npx. Refer to the installation instructions in the README.
How do I call the add
tool?
How do I call the add
tool?
The specific method depends on the MCP client implementation. Generally, you'll send a JSON payload with the tool name and arguments.
What versions of Node.js are supported?
What versions of Node.js are supported?
Node.js version 18.x.x or higher is recommended.
Can I contribute to this project?
Can I contribute to this project?
Yes, contributions are welcome! Please submit a pull request or open an issue.