My First MCP
A simple MCP server that exposes a 'greet' tool which returns a friendly greeting for a given name.
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 SDKzod— 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:
- Go to the Tools tab and confirm
greetis listed with its description and input schema. - Call it with valid input (
name: "Ada") → returnsHello, Ada!. - 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, neverconsole.logorprocess.stdout.write— the stdio transport uses standard output to talk to the host, so anything else written there would corrupt the connection. node_modules/anddist/are excluded via.gitignoreand are not part of this repo.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.