- Home
- MCP servers
- My First
My First
- javascript
0
GitHub Stars
javascript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"maxigarcia13-my-first-mcp": {
"command": "npm",
"args": [
"run",
"myFirstMcp"
]
}
}
}You can run and test a simple MCP server that provides an addition tool. It demonstrates how to expose a basic computation service using the MCP SDK, so you can integrate it with an MCP client and build more tools on top of it.
How to use
Use a compatible MCP client to discover and call the available tool named add. The server advertises itself as a basic MCP endpoint that can be extended with additional tools. You will start the server, list available tools, and then invoke the add operation to obtain the sum of two numbers.
How to install
Prerequisites you need before installing are Node.js and npm. Ensure you have network access to install dependencies.
Install dependencies and run the server with the following steps.
npm install
npm run myFirstMcp
Notes and dependencies
This server is built using the MCP SDK and json schema validation. It lists a single tool named add, which sums two numbers.
Common maintenance tasks include listing tools and calling the add tool via the defined npm scripts to verify the server functionality.
Available tools
add
Adds two numbers together. Requires arguments a and b and returns the numerical sum.