Overview
Vercel provides the simplest deployment option for the WebHelp MCP Server. The project is built with Next.js 15 and requires no additional environment variables or configuration for basic deployment.Prerequisites
Before deploying, ensure you have:- A GitHub account
- A Vercel account (sign up at vercel.com)
- Node.js installed locally for testing
Deployment Steps
Install Dependencies
Install the required npm packages:This installs all dependencies including:
- Next.js 15.5.9
- Model Context Protocol SDK
- mcp-handler for MCP endpoint creation
- jsdom and turndown for HTML to Markdown conversion
Build the Project Locally (Optional)
Test the build process before deploying:This runs the Next.js build process defined in
package.json. The build command compiles TypeScript, optimizes assets, and prepares the application for production.Import to Vercel
- Log in to your Vercel dashboard
- Click “Add New…” → “Project”
- Import your GitHub repository
- Vercel will automatically detect the Next.js framework
- Use the default settings - no environment variables are required for basic functionality
- Click “Deploy”
Build Configuration
The project uses standard Next.js build configuration frompackage.json:
package.json
Build Process
npm run build: Compiles the Next.js application for productionnpm run start: Starts the production server locallynpm run dev: Runs the development server with hot reloading
Environment Variables (Optional)
While no environment variables are required for basic deployment, you can configure optional proxy settings:HTTPS proxy URL for outbound requests. Used when the server needs to access external WebHelp deployments through a corporate proxy.
HTTP proxy URL for outbound requests (fallback if HTTPS_PROXY is not set).
lib/webhelp-search-client.ts:119-123 when performing semantic searches:
lib/webhelp-search-client.ts
Next.js Configuration
The project uses a minimal Next.js configuration innext.config.ts:
next.config.ts
- Automatic static optimization
- Server-side rendering for dynamic routes
- API route handling for the MCP endpoint
Verifying Deployment
After deployment, test your MCP server:- Access the endpoint at
https://your-domain.vercel.app/docs.example.com - Configure your AI tool to use the endpoint URL
- Test the search functionality by querying documentation
The live demo is available at webhelp-mcp.vercel.app for reference.
Troubleshooting
Build fails on Vercel
Build fails on Vercel
- Ensure all dependencies are listed in
package.json - Check that TypeScript types are correct
- Review Vercel build logs for specific errors
Cannot access WebHelp sites
Cannot access WebHelp sites
- Verify the target WebHelp deployment is publicly accessible
- Check for CORS issues if accessing private documentation
- Consider configuring proxy settings if behind a firewall
Deployment is slow or times out
Deployment is slow or times out
- The server fetches and processes WebHelp indexes on-demand
- Large documentation sites may take longer to initialize
- Consider implementing caching strategies (see Configuration)
Next Steps
Configuration
Customize MCP handler options and Next.js settings
Security
Review security considerations for production deployments