DMCPS
Connects Google's Gemini mobile and web apps to the MCP server via a custom Streamable HTTP Transport Adapter, allowing Gemini to perform filesystem operations and execute shell commands on the host machine.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DMCPSlist files in /projects/my-app and show git status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ก๏ธ DMCPS (Docker Model Context Protocol Secured)
๐ฅ OFFICIALLY PUBLISHED ON THE GLOBAL MCP REGISTRY!
A true revolution in AI security. DMCPS seamlessly bypasses PaaS hypervisor limitations (like Render's no-new-privileges) via application-layer interceptors while retaining a military-grade directory sandbox.
๐ DMCPS V2: Absolute Sandbox Isolation (Rewrite In Progress)
The "Massive Rocks" We Hit (Why V2?)
Our legacy architecture on AWS/Render hit fundamental bottlenecks:
Startup Lag: Dynamic container builds (
npm ci, disk chowning) on every request choked disk I/O and CPU, leading to massive lag on micro-instances.Lost Base Control: The latency caused agents to randomly lose structural connection to the base orchestrator.
The V2 Rewrite Architecture
DMCPS V2 throws out dynamic building and shifts to a pure disposable isolation model:
Instant Orchestration: We spin up a pre-built monolithic
dmcps-baseimage viadocker runin milliseconds.Root Without Risk: The AI gets a full, unrestricted OS (no sudo blocks, no firewalls, full
rm -rfpower) completely inside the disposable Docker sandbox. The AI is assigned a directrootuser, tricking it into feeling absolute freedom without any "Permission denied" frustrations, because the container is entirely disposable.Dashboard Whitelisting & Auto-Backups: The dashboard now supports explicit directory mounting toggles (Write Access & Backup Enabled).
HF Bucket Automated Backups: Backups can be seamlessly managed and synced through a dedicated HuggingFace bucket, completely offloading backup I/O and storage from the primary server.
DMCPS vs. OpenClaw / OpenHands (and other Agent Sandboxes)
While frameworks like OpenClaw or OpenHands provide excellent generic runtime sandboxes for LLM development, DMCPS is explicitly engineered for safe local production orchestration:
Absolute Root Illusion: OpenClaw often locks down the environment or requires complex privilege escalation. DMCPS grants the agent native
rootinside a disposable container, immediately satisfying the agent's permission checks and avoiding broken script loops.Dashboard-driven Access: Instead of blindly mounting everything, DMCPS uses a strict whitelist dashboard where you grant explicit paths (with backup enforcement).
PaaS Native: DMCPS is built from the ground up to deploy flawlessly on highly restricted PaaS environments (like Render and Railway) that block
setuid/Docker-in-Docker, making it trivial to run a secure agent on a $5 cloud instance.
A highly secure, isolated Model Context Protocol (MCP) server environment designed to give AI agents access to a sandboxed filesystem and shell execution, without compromising the host machine.
This is built as a robust Node.js/Express backend daemon, featuring a "military-grade" secured dashboard to strictly manage which directories the AI is allowed to touch.
Related MCP server: FieldCure MCP Filesystem Server
๐ก๏ธ Key Security Features
PaaS Hypervisor Bypass via Node: Runs natively as root within the container, but uses JS interceptors to filter commands, allowing package installs (
apk add) seamlessly on Render without triggeringno-new-privilegescrashes.Strict Whitelisting: The AI cannot read, write, or execute commands outside of directories explicitly whitelisted via the web dashboard. (Directory traversal attempts like
../are mathematically blocked).Hardened Dashboard:
Protected by customizable environment credentials (
ADMIN_USERNAMEandADMIN_PASSWORD).Implements Rate Limiting to prevent brute-force login attacks.
Hardened with Helmet (CSP, HSTS, XSS protection, anti-sniffing).
Auto-Generated API Keys: Connect to your MCP server using a dynamically generated Bearer token to ensure only authorized agents can execute tools on your server.
Pre-installed AI Toolkit: Foundational tools (
git,python3,curl,bash,make,jq) are pre-baked into the image so the AI is immediately ready to work.
๐ Getting Started Locally
1. Configure Environment
Copy the example environment file:
cp .env.example .envOpen .env and set your ADMIN_USERNAME and ADMIN_PASSWORD.
2. Run with Docker Compose
The safest way to run this is via the provided docker-compose.yml:
docker-compose up -d --buildThis will mount your local ./projects folder into the sandbox, but the AI won't be able to touch it until you approve the path in the dashboard.
3. Configure the Sandbox & Get Your API Key
Navigate to the mobile-friendly dashboard:
๐ http://localhost:3000/
Log in with your configured ADMIN_USERNAME (default: admin) and ADMIN_PASSWORD.
From the dashboard, you can:
Whitelist directories (e.g.,
/projects/my-app) that the AI can interact with.Copy your API Key needed for the AI agent to securely connect.
Monitor Active Connections in real-time.
Copy the exact JSON Config for Cursor or Claude Desktop.
4. Connect your AI Agent
Point your MCP-compatible AI agent (like Cursor, Claude Desktop, Gemini, Spark, or custom tools) to the Server-Sent Events (SSE) endpoint securely.
Raw agents and clients can connect to standard endpoints: ๐ http://localhost:3000/sse OR http://localhost:3000/mcp
You must pass the auto-generated API Key (found in your dashboard) in the request headers:
Authorization: Bearer mcp_your_random_key_here(You can also pass it in the URL for raw browser connections: /mcp?key=mcp_your_random_key_here)
๐ Cloud Deployments (Backend)
This is a persistent backend service, not a static frontend. It is pre-configured for 1-click deployments on modern PaaS providers.
AWS (Pure Elastic IPv4 Architecture)
DMCPS runs flawlessly on an AWS EC2 instance backed by a Caddy reverse proxy, providing a direct, un-proxied (no middleman), low-latency connection with an auto-renewing Let's Encrypt SSL certificate via sslip.io. This avoids WebSocket timeouts and anti-bot verification blocks common with Ngrok or Cloudflare tunnels.
Create a
.envfile on your server (do not commit this):
ADMIN_USERNAME=admin
ADMIN_PASSWORD=supersecret
DOMAIN_NAME=16.176.42.41.sslip.io(Replace the IP with your AWS Elastic IP)
Run the provided stack which instantly spins up the MCP Server and the Caddy SSL reverse proxy:
docker compose up -d --buildRender
Clicking deploy or pushing to Render will automatically read render.yaml. It spins up a persistent Node.js web service and auto-generates an ADMIN_PASSWORD for you.
Railway
Push to Railway and it will automatically detect the railway.toml config, building the backend via Nixpacks and keeping the daemon alive automatically.
Vercel (Testing Only)
Vercel is supported via vercel.json for UI testing. Note: Because Vercel is a stateless serverless platform, whitelist configurations and API keys will be saved to /tmp and will reset when the function goes to sleep. For production, use Render, Railway, or Docker.
๐งช Running Automated Tests
The security rules (Path checking, Directory Traversal prevention, Suffix attacks) are proven via an automated Jest test suite. To run the tests without starting the server:
npm install
npm test๐ ๏ธ MCP Tools Exposed to the AI
Once authenticated and restricted to a whitelisted folder, the AI has access to:
read_file- Read text from a file.write_file- Write content to a file.list_directory- List all files in a folder.run_shell_command- Execute terminal commands strictly within the isolated workspace.
๐ The Revolution: "Cursor on your Phone" (Gemini Mobile)
This server features a custom Streamable HTTP Transport Adapter designed specifically to bypass Google's aggressive caching and seamlessly hook into the Gemini mobile app (and web app).
You can now turn your phone into a full-fledged cloud coding environment, giving Gemini arbitrary filesystem and shell execution access on your machine!
How to Connect to Gemini
Open the Gemini App (or gemini.google.com).
Go to Settings > Connected Apps.
Scroll to the bottom and click Add a custom app under "Custom apps for Spark".
When prompted for the MCP Server URL, enter your server's root endpoint (e.g.
https://16.176.42.41.sslip.io/sseorhttps://YOUR-APP-URL.onrender.com).โ ๏ธ IMPORTANT: Do NOT use
trycloudflare.com,ngrok, orlocalhost.runquick tunnels. Interstitial warning screens and anti-bot verification pages block Gemini Spark from verifying the connection and break the SSE stream. Deploy on AWS (with a permanent domain) or Render for best results.Gemini Spark will automatically verify the server by fetching OAuth discovery metadata (
/.well-known/oauth-protected-resource).Follow the on-screen prompts. If asked to authorize, our custom dummy OAuth flow will handle the redirect automatically.
Click Connect!
Once connected, you can open a chat with Gemini on your phone and ask it to list files in my project directory or run a shell command to start the server. Enjoy the power of Cursor right in your pocket! ๐
This server cannot be deployed
Maintenance
Related MCP Connectors
No-KYC VPS + per-second code sandboxes AI agents run over MCP โ 75 tools, SDK, pay BTC/XMR/USDC/USDT
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
Related MCP Servers
- AlicenseBqualityDmaintenanceProduction-grade MCP server that gives AI agents safe access to your local dev environment: filesystem, databases, processes, and OpenAPI specs.1543 npm3MIT
- AlicenseNot gradedqualityCmaintenanceA secure MCP server that exposes local filesystem operations to AI clients with sandboxed access and runtime directory changes.1MIT
- AlicenseNot gradedqualityBmaintenanceGives any MCP-compatible AI chat or agent a safe, model-neutral coding runtime with file read/search, structured multi-file patches, command execution, interactive sessions, and git operations, all confined to a single workspace and gated by permission modes.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to operate a persistent Linux sandbox in the cloud, running commands, managing files, using Git, and publishing artifacts through a Streamable HTTP MCP endpoint.-