MCP Server Starter Template
MCPRepo — NextFlows Academy Starter
Part of NextFlows Academy — the free cohort program Building an MCP for an AI Engine.
Clone this repo to build your Model Context Protocol (MCP) server in TypeScript. By Demo Day you will ship a public GitHub repo with real tools, Zod validation, docs, and a live demo — the same path used in the free NextFlows Academy cohort.
Program hub: nextflows.ai/academy
Full program page (in this repo): docs/PROGRAM.md
Apply: Cohort application
About NextFlows Academy
NextFlows Academy runs structured, cohort-based programs with live sessions, mentor support, and a real project you ship by the end.
This repository belongs to:
Program | Building an MCP for an AI Engine |
Audience | 4th & 5th year CS / CE students |
Duration | 6 weeks |
Format | Cohort + project |
Price | Free |
Level | Intermediate |
Outcome | Shipped MCP server on GitHub |
Schedule | Wed & Sat online 1:30–3:30 PM + Monday on-site workshop days |
You go from “what’s an MCP?” to a working MCP server connected to an AI engine (for example Claude), fully documented, and live on GitHub.
See docs/PROGRAM.md for outcomes, weekly plan, starter projects, and who it’s for.
What you get
Path | Purpose |
| MCP server + stdio transport |
| One register helper per tool |
| Zod input contracts (with |
| Sample JSON args for Inspector |
| Full NextFlows Academy program page |
| Full Week 2 step-by-step plan |
| 6-week overview |
| Week 2 project choice template |
| Week 2 design doc template |
Week 1 is already wired: a working greet tool so you can open Inspector on day one.
Week 2 examples included: stub tools for Notes & FAQ Search (search_notes, list_notes, add_note). Enable them when you pick that starter (or copy the pattern for your own idea).
Prerequisites
Node.js 20+ (
node -v)npm (
npm -v)Git + a GitHub account
Cursor or VS Code
Quick start
git clone <YOUR_FORK_OR_ORG_URL>/MCPRepo.git
cd MCPRepo
npm install
npm run inspectIn the Inspector browser tab:
Click Connect
Open Tools
Select
greetand putAlexin the name field (seeexamples/greet.jsonfor the full args shape)Try invalid input (empty name) and confirm Zod rejects it
To run the server alone (waits on stdin):
npm run devImportant: log only with
console.error. Never useconsole.log— stdout is reserved for the MCP protocol.
Week 2
Week 2 is design-first. Follow docs/WEEK-2.md.
Useful scripts:
Script | What it does |
| Start the MCP server on stdio (stays alive; stop with Ctrl+C) |
| Same as |
| Open MCP Inspector against this server |
Stack
TypeScript via
tsx(no build step early on)Official MCP TypeScript SDK (
@modelcontextprotocol/server)Zod for tool
inputSchemaMCP Inspector for local testing
stdio transport for Claude Desktop / Cursor demos
Six-week journey
Week | Focus |
1 | Set up & first MCP tool ( |
2 | Design your own tools → see |
3 | Connect tools to real data |
4 | Make it safe & reliable |
5 | Test & write docs people can follow |
6 | Ship on GitHub & Demo Day |
Full program details: docs/PROGRAM.md
Starter project options (pick in Week 2)
Notes & FAQ Search — fully offline (example stubs included)
Personal Expense Tracker — summarize spending from a spreadsheet
To-Do List — create / list / complete tasks
Weather Briefing — free API (e.g. Open-Meteo), no paid keys
Quote of the Day — simple offline or public API
Advanced ideas (repo health, course planner, job tracker) need mentor approval before you expand scope.
Repo layout after Week 2
MCPRepo/
├── docs/
│ ├── PROGRAM.md
│ ├── CURRICULUM.md
│ ├── WEEK-2.md
│ ├── project-choice.md
│ └── design.md
├── examples/
│ └── <tool_name>.json
├── src/
│ ├── index.ts
│ ├── schemas/
│ └── tools/
├── package.json
└── README.mdRules that matter
One job per tool; use
verb_nounnames (search_notes,add_expense)Write descriptions for the model, not only for humans
Every Zod field needs
.describe(...)Prefer small focused tools over one mega-tool with an
actionenumAvoid paid APIs / OAuth-heavy projects in Weeks 1–2
Links
License
MIT — built for NextFlows Academy students.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/mohammad-jaradat/MCPServerStarterTemplate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server