MCP Server Starter Template
A TypeScript starter template for building MCP servers, including a greet tool and stubs for a Notes & FAQ Search, designed for the NextFlows Academy cohort.
README
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 |
|---|---|
src/index.ts |
MCP server + stdio transport |
src/tools/ |
One register helper per tool |
src/schemas/ |
Zod input contracts (with .describe(...)) |
examples/ |
Sample JSON args for Inspector |
docs/PROGRAM.md |
Full NextFlows Academy program page |
docs/WEEK-2.md |
Full Week 2 step-by-step plan |
docs/CURRICULUM.md |
6-week overview |
docs/project-choice.md |
Week 2 project choice template |
docs/design.md |
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 inspect
In 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 dev
Important: 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 |
|---|---|
npm run dev |
Start the MCP server on stdio (stays alive; stop with Ctrl+C) |
npm start |
Same as dev |
npm run inspect |
Open MCP Inspector against this server |
Stack
- TypeScript via
tsx(no build step early on) - Official MCP TypeScript SDK (
@modelcontextprotocol/server) - Zod for tool
inputSchema - MCP Inspector for local testing
- stdio transport for Claude Desktop / Cursor demos
Six-week journey
| Week | Focus |
|---|---|
| 1 | Set up & first MCP tool (greet ✅ in this repo) |
| 2 | Design your own tools → see docs/WEEK-2.md |
| 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.md
Rules 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
actionenum - Avoid paid APIs / OAuth-heavy projects in Weeks 1–2
Links
- NextFlows Academy
- Program page (this repo)
- Apply for Cohort #1
- MCP docs
- MCP specification
- Build your first server (TypeScript SDK)
License
MIT — built for NextFlows Academy students.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。