Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions guides/express-weather-mcp-server/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
This example shows how to build an MCP Server with Weather tools using Express and Vercel

MCP clients connect to the Streamable HTTP endpoint at `/api/mcp`. This
example requires Node.js 20 or later.

## How to Use

You can choose from one of the following two methods to use this repository:
Expand All @@ -24,6 +27,7 @@ Run the Express app in development mode:
First install the [Vercel CLI](https://vercel.com/docs/cli). You will need to link the code with a Vercel project.

```bash
pnpm install
vercel dev
```

Expand Down
12 changes: 9 additions & 3 deletions guides/express-weather-mcp-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@
"type": "module",
"private": true,
"scripts": {
"dev": "vc dev"
"dev": "vc dev",
"build": "tsc --noEmit",
"test": "pnpm build"
},
"dependencies": {
"@modelcontextprotocol/server": "^2.0.0",
"express": "^5.1.0",
"mcp-handler": "^1.0.3",
"zod": "3.23.8"
"mcp-handler": "^2.0.0",
"zod": "^4.2.0"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^20.0.0",
"tsx": "^4.7.0",
"typescript": "^5.0.0"
},
"engines": {
"node": ">=20"
}
}
Loading