New Project

MCP with Express

Run a Model Context Protocol (MCP) server on Vercel with Express.

DeployView Demo

Express MCP Server on Vercel

Model Context Protocol (MCP) server built with Express.js that provides weather data tools.

Clone and run locally

git clone https://github.com/vercel-labs/express-mcp
pnpm i
pnpm dev

Features

This MCP server provides weather-related tools:

  • get-alerts: Get weather alerts for a US state (requires 2-letter state code)
  • get-forecast: Get weather forecast for a location (requires latitude/longitude)

Testing

You can connect to the server using MCP Inspector or any other MCP client. Be sure to include the /mcp path in the connection URL (e.g., https://your-deployment.vercel.app/mcp).

API Endpoints

  • POST /mcp: Handles incoming messages for the MCP protocol
GitHub Repovercel-labs/express-mcp
Use Cases
Starter
AI
Stack
Other
None

Related Templates

Chatbot

A full-featured, hackable Next.js AI chatbot built by Vercel
Chatbot thumbnail

MCP with Next.js

Run an Model Context Protocol (MCP) server on Vercel with Next.js.
MCP with Next.js thumbnail

Express.js on Vercel

Simple Express.js + Vercel example that serves html content, JSON data and simulates an API route.
Express.js on Vercel thumbnail
DeployView Demo