first-node-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., "@first-node-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.
First Node MCP Server
A simple Model Context Protocol (MCP) server implementation in Node.js that provides an addition tool.
About
This project implements a basic MCP server that exposes an "add" tool which adds two numbers together. It demonstrates how to create a simple Model Context Protocol server using the MCP SDK.
Related MCP server: FastMCP Dummy Server
Prerequisites
Node.js (v18 or later recommended)
npm
Installation
Clone the repository and install dependencies:
git clone https://github.com/syashwanth3110/first-node-mcp-server.git
npm install -yRunning Locally
You can run the MCP server locally by piping JSON-RPC requests to it:
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "add", "arguments": {"a": 5, "b": 3}}}' | node mcp.jsThis will call the add tool with arguments a=5 and b=3, which should return 8.
Configuring as an MCP Server
To use this server with an MCP-compatible client (like an AI assistant), add the following configuration to your MCP config file:
{
"mcpServers": {
"demo-server-yash": {
"command": "/path/to/node",
"args": ["/path/to/first-node-mcp-server/mcp.js"],
"env": {
"NODE_OPTIONS": "--no-deprecation"
}
}
}
}Replace /path/to/node with your Node.js executable path, and /path/to/first-node-mcp-server/mcp.js with the absolute path to your mcp.js file.
Example configuration:
{
"mcpServers": {
"demo-server-yash": {
"command": "/opt/homebrew/opt/node@18/bin/node",
"args": ["/Users/syashwanth/Source/first-node-mcp-server/mcp.js"],
"env": {
"NODE_OPTIONS": "--no-deprecation"
}
}
}
}Available Tools
Add Tool
Adds two numbers together.
Tool Name:
addInput Parameters:
a: First number (required)b: Second number (required)
Output: Sum of the two numbers
License
MIT
Contributing
Feel free to submit issues and pull requests.
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
- AlicenseDqualityDmaintenanceA minimal Model Context Protocol server that provides a simple add(a, b) tool for computing the sum of two numbers.Last updated127MIT
- Flicense-quality-maintenanceA minimal example server implementing the Model Context Protocol, providing addition and multiplication tools for learning and experimentation with MCP clients.Last updated1
- FlicenseBqualityDmaintenanceA simple server that provides basic mathematical operations (sum and subtraction) through the Model Context Protocol.Last updated21
- Alicense-qualityDmaintenanceA minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.Last updated91MIT
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server exposing the Backtest360 engine API as tools for AI agents.
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/syashwanth3110/first-node-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server