Documentation
/

Deployment

Deployment Guide

Deploy your MCP servers to the ModelFetch platform with built-in hosting, authentication, and scaling. Get your server live in minutes.

Deployment Process

Deploying your MCP server requires just two commands:

# First, login to your account (one time only)
modelfetch login

# Second, deploy your MCP server
npm run deploy

The deploy command handles everything automatically - just select your organization and MCP server when prompted.

Environment Variables

Configure environment variables for your deployed MCP server through the ModelFetch web dashboard:

Best Practices

Before deploying:

Troubleshooting

Common deployment issues and solutions:

"No MCP servers found"

Create an MCP server instance through the web dashboard before deploying.

"Authentication failed"

Run modelfetch logout then modelfetch login to refresh your authentication.

"Build failed"

Ensure your code builds locally with npm run build before deploying.

Next Steps

After successfully deploying your MCP server: