Skip to main content
Glama
my-first-mcp

my-first-mcp

by yarakhattab

My First MCP Server

Project Purpose

This project is my first implementation of a Model Context Protocol (MCP) server as part of the Nextflows Academy MCP training.

The server exposes a simple tool called greet, which accepts a user's name as input and returns a greeting message. The project demonstrates the basic structure of an MCP server using the official TypeScript SDK and shows how tools are registered and tested using MCP Inspector.


Related MCP server: malicious-skills-mcp

Technologies Used

  • Node.js

  • TypeScript

  • Model Context Protocol (MCP) SDK v1.29.0

  • Zod

  • MCP Inspector


Project Structure

my-first-mcp/
│
├── src/
│   └── index.ts
├── package.json
├── package-lock.json
├── tsconfig.json
├── .gitignore
└── README.md

How to Run the Project

1. Clone the repository

git clone https://github.com/yarakhattab/my-first-mcp.git

2. Open the project folder

cd my-first-mcp

3. Install the dependencies

npm install

4. Start the MCP server

npm run dev

The server will start and wait for incoming MCP requests.


Testing with MCP Inspector

Run the following command:

npx @modelcontextprotocol/inspector npx tsx src/index.ts

Open the URL displayed in your terminal.

Then:

  • Open the Tools tab.

  • Select the greet tool.

  • Enter a name.

  • Click Run.

  • The server should return a greeting message.


Academy Website

Nextflows Academy

https://academy.nextflows.com/


Author

Yara Khattab

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      A simple MCP server that exposes a 'greet' tool which returns a friendly greeting for a given name.
      10 npm
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables a simple greeting tool over MCP, demonstrating schema validation and transport communication.
      ISC
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients to call a simple greeting tool that takes a name and returns personalized text and structured messages via stdio.
      1
      ISC
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides a simple greeting tool that returns a personalized hello message.
      10 npm
      MIT