My First MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@My First MCPgreet Alice"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: mcpscope
Tech stack
@modelcontextprotocol/sdk— official MCP server SDKzod— schema validation for tool inputTypeScript +
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
└── .gitignoreSetup
npm installRunning the server
npm run devIf 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.tsThen, 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/JHT127/my-first-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server