So recently for an internship assignment, I had to create and deploy an mcp server. It was my first time working with MCP servers so deploying it was kind of a hassle and I couldn't find any blogs or documentation on how to deploy it quickly.
Long story short, I deployed it using Vercel for free and in this blog post I'm going to guide you through it. I assume you've already created a remote mcp server using StreamableHTTPServerTransport and it runs on your localhost. If not, no worries. Follow this example to switch your transport from stdio to httpStreamable
Github Example - Simple Server
Setting up for the Vercel deployment
Inside your tsconfig.json, inside "compilerOptions"
// File Layout "rootDir" : "./src" , "outDir" : "./dist" ,
(this assumes your server is inside the 'src' directory)
Example -
Inside your package.json, include the build script
"scripts" : { "build" : "tsc" , // make sure this build script is present "start" : "node dist/server.js" , "dev" : "nodemon --watch 'src/**/*.ts'…