βοΈ
Hosty
One command deploy MCP to vercel
0 installs
1 stars
Trust: 53 β Fair
Cloud
Installation
npx hostyAsk AI about Hosty
Powered by Claude Β· Grounded in docs
I know everything about Hosty. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
hosty
One-command deploy any MCP server to Vercel.
hosty deploy ./my-mcp-server
That's it. Your MCP server is now live and ready to use.
Install
npm install -g hosty
Also need:
- Vercel CLI -
npm i -g vercel - Run
vercel loginonce
Usage
hosty deploy [path] # Deploy an MCP server
hosty list # Show deployed servers
hosty config <name> # Get config for a server
hosty check [path] # Validate a project
Deploy
hosty deploy # Deploy current directory
hosty deploy ./my-mcp-server # Deploy specific path
hosty deploy --prod # Deploy to production
After deploying, hosty:
- Outputs the live URL
- Outputs config to paste into Claude Desktop
- Saves to
~/.hosty/servers.jsonfor later
List & Config
hosty list # See all deployed servers
hosty config my-server # Get Claude Desktop config again
How Auth Works
When you deploy, hosty:
- Generates a random 64-character bearer token
- Sets it as
AUTH_TOKENenv var in your Vercel deployment - The deployed wrapper validates incoming requests against this token
- Saves the token locally so you can retrieve it later
Your MCP clients send Authorization: Bearer <token> header with each request.
What Gets Deployed
hosty creates a temporary Vercel serverless wrapper (api/mcp.js) that:
- Exposes your MCP server over HTTP/SSE
- Handles CORS
- Validates the bearer token
- Provides a health check endpoint
After deployment, hosty cleans up all generated files.
Supported Servers
Node/TypeScript
Your project needs:
package.jsonwith@modelcontextprotocol/sdk- Entry point that exports
serverorcreateMcpServer()
// src/index.ts
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
export const server = new Server({ name: "my-server", version: "1.0.0" }, {
capabilities: { tools: {} }
});
// ... register handlers
Python
Your project needs:
requirements.txtorpyproject.tomlwithmcp- Entry point that exports
serverormcp_server
# server.py
from mcp.server import Server
server = Server("my-server")
@server.list_tools()
async def list_tools():
return [...]
@server.call_tool()
async def call_tool(name: str, arguments: dict):
...
Examples
# Node/TypeScript
cd examples/hello-mcp
npm install
hosty deploy
# Python
cd examples/hello-mcp-python
pip install -r requirements.txt
hosty deploy
Output
After hosty deploy, you get:
MCP server is live
URL: https://hello-mcp-abc123.vercel.app
MCP: https://hello-mcp-abc123.vercel.app/api/mcp
Key: a1b2c3d4...
Saved to ~/.hosty/servers.json
ββββββββββββββββββββββββββββββββββββββββββββββββββ
Add to Claude Desktop config:
{
"mcpServers": {
"hello-mcp": {
"transport": {
"type": "sse",
"url": "https://hello-mcp-abc123.vercel.app/api/mcp"
},
"headers": {
"Authorization": "Bearer a1b2c3d4..."
}
}
}
}
License
MIT
