Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Hosting an MCP server on Vercel for FREE

DEV Community: express·Dinesh·about 1 month ago
#gpodVeIs
#dev#class#code#server#highlight#photo
Reading 0:00
15s threshold

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' --exec…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More