
MCP Host Server
A multi-tenant remote server platform that enables applications to connect to Model Context Protocol servers over WebSocket connections, allowing secure access to file management, database, and API capabilities.
README
MCP Host Server
A multi-tenant remote MCP (Model Context Protocol) server hosting platform built for DigitalOcean deployment. This server allows multiple applications to connect to and use various MCP servers remotely over WebSocket connections.
Features
- 🏗️ Multi-tenant Architecture: Isolated MCP servers for different tenants
- 🔒 Secure Authentication: JWT-based authentication with role-based access
- 🌐 Remote Access: WebSocket-based connections for remote MCP usage
- 📊 Management API: RESTful API for server management
- 🛡️ Security: Rate limiting, input validation, CORS protection
- 📈 Scalable: Designed for cloud deployment on DigitalOcean
Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ MCP Client │ │ MCP Client │ │ MCP Client │
│ (Claude, etc.) │ │ (API App) │ │ (Custom) │
└─────────┬───────┘ └─────────┬───────┘ └─────────┬───────┘
│ │ │
└──────────────────────┼──────────────────────┘
│ WebSocket Connections
┌────────────▼────────────┐
│ MCP Host Server │
│ ┌─────────────────┐ │
│ │ Tenant A │ │
│ │ ├ File Server │ │
│ │ ├ DB Server │ │
│ │ └ API Server │ │
│ ├─────────────────┤ │
│ │ Tenant B │ │
│ │ ├ Custom Server │ │
│ │ └ File Server │ │
│ └─────────────────┘ │
└─────────────────────────┘
Quick Start
1. Installation
# Clone the repository
git clone https://github.com/motionmavericks/mcp-server.git
cd mcp-server
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
2. Configuration
Edit .env
file with your settings:
PORT=3000
JWT_SECRET=your_secret_here
ALLOWED_ORIGINS=https://yourdomain.com
ADMIN_PASSWORD=YourSecurePassword123!
3. Development
# Start in development mode
npm run dev
# Or start normally
npm start
4. Production Deployment
# Set environment to production
export NODE_ENV=production
# Start the server
npm start
API Usage
Authentication
# Login
curl -X POST http://localhost:3000/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@mcp.mvrx.com.au", "password": "SecureMCP2024!"}'
Create MCP Server
# Create a file manager server
curl -X POST http://localhost:3000/api/servers \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My File Server",
"type": "file-manager",
"description": "File management MCP server"
}'
Get Connection URL
# Get WebSocket connection URL for MCP client
curl -X POST http://localhost:3000/api/servers/SERVER_ID/connect \
-H "Authorization: Bearer YOUR_TOKEN"
MCP Client Configuration
Claude Desktop
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"remote-file-server": {
"command": "node",
"args": ["path/to/mcp-websocket-client.js"],
"env": {
"MCP_SERVER_URL": "ws://mcp.mvrx.com.au:3001/mcp-ws?tenant=TENANT_ID&server=SERVER_ID&token=CONNECTION_TOKEN"
}
}
}
}
Custom MCP Client
import { WebSocket } from 'ws';
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
const ws = new WebSocket('ws://mcp.mvrx.com.au:3001/mcp-ws?tenant=TENANT_ID&server=SERVER_ID&token=CONNECTION_TOKEN');
const client = new Client({ name: 'my-app', version: '1.0.0' }, { capabilities: {} });
await client.connect(new WebSocketClientTransport(ws));
// Use MCP tools
const tools = await client.listTools();
console.log('Available tools:', tools);
Available MCP Server Types
File Manager
read_file
: Read file contentswrite_file
: Write file contentslist_files
: List directory contents
Database
query_database
: Execute SQL queries
API Client
api_request
: Make HTTP API requests
Custom
- Define your own tools and resources
Security Features
- JWT Authentication: Secure token-based authentication
- Rate Limiting: Prevents abuse and DoS attacks
- Input Validation: Sanitizes all inputs
- CORS Protection: Configurable cross-origin policies
- Security Headers: Helmet.js security headers
- Request Logging: Comprehensive audit logging
Deployment on DigitalOcean
App Platform
- Create new app from GitHub repository
- Set environment variables in App Platform dashboard
- Configure custom domain (optional)
- Deploy!
Example App Spec
name: mcp-host-server
services:
- name: api
source_dir: /
github:
repo: motionmavericks/mcp-server
branch: main
run_command: npm start
environment_slug: node-js
instance_count: 2
instance_size_slug: apps-s-1vcpu-1gb
http_port: 3000
envs:
- key: NODE_ENV
value: production
- key: JWT_SECRET
value: YOUR_SECRET
- key: ALLOWED_ORIGINS
value: https://mcp.yourdomain.com
Monitoring
Health Check
curl http://localhost:3000/health
System Status
curl -H "Authorization: Bearer TOKEN" \
http://localhost:3000/api/status
Development
Project Structure
src/
├── config/ # Configuration management
├── middleware/ # Express middleware
├── routes/ # API routes
├── services/ # Business logic
└── utils/ # Utilities
Adding New MCP Server Types
- Extend
MCPServerManager.registerServerTools()
- Add new tool handlers
- Update validation in API routes
- Add tests
Testing
npm test
Contributing
- Fork the repository
- Create feature branch (
git checkout -b feature/new-feature
) - Commit changes (
git commit -am 'Add new feature'
) - Push to branch (
git push origin feature/new-feature
) - Create Pull Request
License
MIT License - see LICENSE file for details.
Support
- GitHub Issues: https://github.com/motionmavericks/mcp-server/issues
- Documentation: https://github.com/motionmavericks/mcp-server/wiki
- Email: support@motionmavericks.com.au
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.