Addition 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., "@Addition MCP Serveradd 15 and 27"
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.
My MCP Server
A simple Model Context Protocol (MCP) server that provides an addition tool for adding two numbers together.
Overview
This MCP server implements a basic arithmetic tool that can add two numbers. It's built using the official MCP SDK and demonstrates how to create a custom MCP server.
Related MCP server: MCP Server Deployment Demo
Features
Addition Tool: Adds two numbers together
MCP Protocol: Follows the Model Context Protocol specification
Type Safety: Uses Zod for input validation
Installation
Clone or download this repository
Install dependencies:
npm install
Usage
Running the Server
To run the MCP server:
node mcp.jsThe server will start and listen for MCP protocol messages via stdio.
Available Tools
Addition Tool
Name:
addDescription: Add two numbers together
Parameters:
a(number): First numberb(number): Second number
Returns: The sum of the two numbers as text
Example Usage
When connected to an MCP client, you can use the addition tool like this:
{
"tool": "add",
"parameters": {
"a": 5,
"b": 3
}
}This would return: 8
Adding to Cursor
To use this MCP server in Cursor, you need to configure it in your Cursor settings:
Method 1: Using Cursor Settings UI
Open Cursor Settings:
Press
Cmd+,(Mac) orCtrl+,(Windows/Linux)Or go to
Cursor > Preferences > Settings
Navigate to MCP Settings:
Search for "MCP" in the settings search bar
Click on "Model Context Protocol" settings
Add the Server:
Click "Add Server" or the "+" button
Configure the server with these settings:
Name: Addition Server Command: node Args: [path/to/your/mcp.js] Cwd: [path/to/your/project/directory]
Method 2: Using Settings JSON
Open Cursor Settings JSON:
Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux)Type "Preferences: Open Settings (JSON)"
Select it
Add MCP Configuration: Add this configuration to your settings JSON:
{ "mcp.servers": { "addition-server": { "command": "node", "args": ["/Users/slav/Documents/dev/first-mcp/mcp.js"], "cwd": "/Users/slav/Documents/dev/first-mcp" } } }Important: Replace the paths with your actual project directory path.
Restart Cursor:
Close and reopen Cursor for the changes to take effect
Using the Addition Tool in Cursor
Once configured, you can use the addition tool in Cursor by:
Opening a chat with the AI assistant
Asking it to add numbers: "Can you add 15 and 27 for me?"
The AI will use your MCP server to perform the calculation
Troubleshooting
Server not found: Make sure the path to
mcp.jsis correct and the file existsPermission errors: Ensure you have execute permissions on the Node.js binary
Dependencies missing: Run
npm installin the project directory firstPort conflicts: This server uses stdio, so no port conflicts should occur
Development
Project Structure
mcp.js- Main server implementationpackage.json- Node.js project configurationREADME.md- This file
Dependencies
@modelcontextprotocol/sdk- Official MCP SDKzod- Type validation library
License
ISC
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.
Related MCP Servers
- Flicense-qualityDmaintenanceA simple MCP server that provides integer addition functionality. Enables users to perform basic arithmetic operations by adding two integers together through natural language interactions.Last updated
- FlicenseCqualityDmaintenanceA demonstration MCP server that provides a simple addition tool for learning how to create and deploy servers following the Model-Context-Protocol specification. Serves as a basic example for developers getting started with MCP server development.Last updated1
- Alicense-qualityDmaintenanceA simple tutorial MCP server that provides a basic addition tool for adding two numbers together, demonstrating fundamental MCP server implementation.Last updated14ISC
- Flicense-qualityCmaintenanceA simple MCP server that provides a tool for adding two numbers, designed for testing MCP integration with Claude.Last updated
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
A very simple remote MCP server that greets you, with a custom icon.
A basic MCP server to operate on the Postman API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/slavkurochkin/first-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server