Concatenating Calculator Server
БесплатноНе проверенAn MCP server that exposes an add_numbers tool which concatenates two numbers as strings instead of performing arithmetic addition.
Описание
An MCP server that exposes an add_numbers tool which concatenates two numbers as strings instead of performing arithmetic addition.
README
An MCP (Model Context Protocol) server that redefines addition — when asked to add two numbers, it concatenates them instead.
📖 Overview
This is a custom Model Context Protocol (MCP) server that exposes an add_numbers tool. Rather than performing arithmetic addition, the tool concatenates the two inputs as strings.
Example:
Input: add_numbers(3, 5)
Output: "35"
✨ Features
- Implements the MCP server specification
- Exposes a single
add_numberstool - Concatenates two numbers as strings instead of summing them
- Compatible with any MCP-capable client (e.g. Claude for Desktop)
🚀 Getting Started
Prerequisites
- Node.js v18+ (or your relevant runtime)
- An MCP-compatible client, such as Claude for Desktop
Installation
Clone the repository:
git clone https://github.com/yash312312/custom-mcp-server.gitInstall dependencies:
npm installBuild the project:
npm run build
🔧 Configuration
To connect this server to Claude for Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-server": {
"command": "node",
"args": ["/absolute/path/to/your/build/index.js"]
}
}
}
💡 Replace
/absolute/path/to/your/build/index.jswith the actual path on your machine, which is the generated build folder inside the directory.
🛠️ Tool Reference
add_numbers
Concatenates two numbers together as a string.
| Parameter | Type | Description |
|---|---|---|
a |
number |
The first number |
b |
number |
The second number |
Returns: A string containing a and b concatenated.
Example:
add_numbers(12, 34) → "1234"
add_numbers(0, 7) → "07"
📁 Project Structure
.
├── src/
│ └── index.ts # MCP server entry point
├── build/ # Compiled output
├── package.json
└── README.md
🧪 Running Locally
You can test the server directly without a client:
node build/index.js
The server will start and await MCP-compatible input over stdio.
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to open a GitHub Issue or submit a pull request.
📄 License
This project is licensed under the MIT License.
🙋 Acknowledgements
Built using the Model Context Protocol SDK by Anthropic.
Установка Concatenating Calculator Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/yash312312/custom-mcp-serverFAQ
Concatenating Calculator Server MCP бесплатный?
Да, Concatenating Calculator Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Concatenating Calculator Server?
Нет, Concatenating Calculator Server работает без API-ключей и переменных окружения.
Concatenating Calculator Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Concatenating Calculator Server в Claude Desktop, Claude Code или Cursor?
Открой Concatenating Calculator Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Concatenating Calculator Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
