Skip to main content
Glama
MaxiGarcia13

My First MCP

by MaxiGarcia13

my-first-mcp

My first MCP (Model Context Protocol) server implementation.

Based on the video tutorial https://frontendmasters.com/courses/mcp/

Description

This is a simple MCP server that provides an addition tool. It demonstrates how to create a basic MCP server using the @modelcontextprotocol/sdk.

Related MCP server: Addition MCP Server

Features

  • Addition Tool: Adds two numbers together and returns the result

Installation

npm install

Usage

Running the server

npm run myFirstMcp

Testing the server

List available tools

npm run myFirstMcp:list

This will return information about all available tools in the server.

Call the add tool

npm run myFirstMcp:call

This will call the add tool with example arguments (5 + 3) and return the result.

API

Tools

add

Adds two numbers together.

Parameters:

  • a (number): First number

  • b (number): Second number

Returns:

  • A text response with the sum of the two numbers

Example:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add",
    "arguments": {
      "a": 5,
      "b": 3
    }
  }
}

Dependencies

  • @modelcontextprotocol/sdk: MCP SDK for building servers

  • zod: TypeScript-first schema validation

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    C
    quality
    D
    maintenance
    A 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.
    1
  • A
    license
    -
    quality
    D
    maintenance
    A simple demonstration MCP server that provides a basic arithmetic tool for adding two numbers together, showcasing how to build custom MCP servers with input validation.
    12
    ISC
  • F
    license
    -
    quality
    D
    maintenance
    A minimal demonstration MCP server that provides basic mathematical addition and greeting functionality, serving as a template for building and deploying FastMCP servers.

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/MaxiGarcia13/my-first-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server