MCP.so
Sign In

MCP Add Server

@zhangzhefang-github

Basic information

Category

Other

License

MIT license

Transports

stdio

Author

zhangzhefang-github

Submitted by

zhefang zhang

About MCP Add Server

mcp-add-server

MCP Add Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp-add-server": {
      "command": "npx",
      "args": [
        "@zhefang/mcp-add-server"
      ]
    }
  }
}

MCP Add Server tools

1

Overview

What is MCP Add Server?

MCP Add Server is a minimal Model Context Protocol (MCP) server that provides a single tool: add(a, b), which returns the sum of two numbers. It serves as a basic example of an MCP server implementation, intended for developers learning about the MCP ecosystem or testing MCP-compatible clients.

How to use MCP Add Server?

Run the server using npx mcp-add-server (requires Node.js 18+ and npm). Alternatively, clone the repository, install dependencies with npm install, and run with npm start. You can also install it globally via npm install -g mcp-add-server or use npm link for local development. Once running, MCP clients can call the add tool with arguments a and b and receive the sum as the result.

Key features of MCP Add Server

  • Implements a Model Context Protocol compliant server.
  • Provides a single add(a, b) tool that returns numeric sums.
  • Can be run via npx, local clone, or global installation.
  • Requires only Node.js 18.x or higher and npm.
  • Includes both a server executable (bin.js) and modular source code (src/server.js).
  • Licensed under the MIT License.

Use cases of MCP Add Server

  • Learning how to build a minimal MCP server from scratch.
  • Testing MCP client tool‑calling functionality.
  • Demonstrating MCP server–client integration in workshops or documentation.
  • Quick validation of MCP tool invocation pipelines.

Frequently asked questions

1

What dependencies or runtime does MCP Add Server require?

Node.js version 18.x or higher and npm (which comes with Node.js) are required.

2

How can I install MCP Add Server?

You can run it without installation via `npx mcp-add-server`; install globally with `npm install -g mcp-add-server`; or clone the repo and run `npm install && npm start`.

3

Does MCP Add Server have any authentication or security mechanisms?

The README does not mention any authentication, authorization, or transport‑level security. It is a local‑only example server with no built‑in access controls.

4

What is the project structure of MCP Add Server?

The repository contains `src/server.js` (main logic), `bin.js` (executable entry), `package.json`, `LICENSE`, and standard files (`.gitignore`, `node_modules`).

5

Are there any tests included?

The README notes that tests are not yet implemented; running `npm test` currently outputs an error message.

Comments

More Other MCP servers