My First MCP

My First MCP

A simple MCP server that exposes a 'greet' tool which returns a friendly greeting for a given name.

Category
Visit Server

README

My First MCP

NextFlow AI Internship — Submission 3 (Module 1.5 & 1.6)

This is my first working MCP (Model Context Protocol) server. The goal of this submission is to build the smallest possible end-to-end MCP pipeline — one server, one tool — and prove it actually works by connecting to it with MCP Inspector.

What this server does

The server exposes a single tool called greet:

  • greet(name) — takes a person's name as input and returns a friendly greeting, e.g. Hello, Ada!

It's intentionally simple. The point of this step isn't a useful tool — it's confirming that the server starts, registers a tool correctly, validates input with Zod, and responds over stdio the way a real MCP host would expect.

Tech stack

  • @modelcontextprotocol/sdk — official MCP server SDK
  • zod — schema validation for tool input
  • TypeScript + tsx — run TS directly without a separate build step

Project structure

my-first-mcp/
├── src/
│   └── index.ts      # server setup + the "greet" tool
├── package.json
├── package-lock.json
├── tsconfig.json
├── README.md
└── .gitignore

Setup

npm install

Running the server

npm run dev

If it stays running with no crash and no visible output, that's expected — the server is just waiting for input over stdio. Stop it with Ctrl+C.

Testing with MCP Inspector

Since this server talks over stdio, it needs a host or inspector to actually call it. To verify it manually:

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

Then, in the browser UI that opens:

  1. Go to the Tools tab and confirm greet is listed with its description and input schema.
  2. Call it with valid input (name: "Ada") → returns Hello, Ada!.
  3. Call it with invalid input (empty or wrong type) → rejected by Zod before the handler code runs, confirming input validation is working.

A screenshot of both the tool listing and a successful call is included with this submission.

Notes

  • All logging in this server uses console.error, never console.log or process.stdout.write — the stdio transport uses standard output to talk to the host, so anything else written there would corrupt the connection.
  • node_modules/ and dist/ are excluded via .gitignore and are not part of this repo.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured