Concatenating Calculator MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Concatenating Calculator MCP Serveradd 5 and 3"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๏ปฟ# ๐ข Concatenating Calculator MCP Server
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"Related MCP server: PyMCP Sum Server
โจ Features
Implements the MCP server specification
Exposes a single
add_numberstoolConcatenates 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 |
|
| The first 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.jsThe 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yash312312/custom-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server