mcp-sandbox-server
mcp-sandbox-server
AIエージェントに対して、サンドボックスホストへの認証済みシェルアクセスとファイルアクセスを提供するリモートMCP(Model Context Protocol)サーバーです。さらに、フルアクセスを決して持たせてはならない本番ホストに対し、デプロイをトリガーする安全で限定的な経路も用意します。
機能
中核のMCPツール(
run_command、read_file、write_file、list_directory)をStreamable HTTPで公開し、エージェントがサンドボックス上で直接コードをビルド/テストできるようにします。最小構成のOAuth 2.0認可サーバーをゼロから実装。動的クライアント登録(RFC 7591)、単一の管理者認証情報で保護された認可エンドポイント、PKCE対応のトークンエンドポイントを備えます。MCPクライアント(claude.aiのコネクタUIなど)は、貼り付けられたベアラートークンではなく、完全なOAuthフローを期待するためです。したがって、管理者が1人だけのセットアップであっても、サーバー側はOAuthフローに対応する必要があります。
2つ目の、より機密性の高いホストへの制限付きゲートウェイ(
biscuit_status、biscuit_logs、biscuit_deployなど)。エージェントを境界内に留めることをツールコードだけに頼るのではなく、実際の境界はもう一段下のレイヤーにあります。対象ホストのauthorized_keysにおいて専用のSSHキーがcommand="..."により制限されており、そのキーでクライアントが何を送信しても、実行できるのは固定されたホワイトリスト登録済みスクリプトの1本だけです。ここでのツールコードは文字通りアクション文字列を組み立てるだけで、セキュリティ境界を担うのは強制コマンド(forced command)の方です。
Related MCP server: Shellgate
なぜこのような構成なのか
興味深い制約は、同じエージェントに2つのまったく異なる信頼レベルが必要だったことです。使い捨てのサンドボックスでは、フルで無制限のシェル。一方、本番サービスが稼働しているホスト上では、事前に承認された読み取り中心の限られた数件の操作のみ。エージェントの振る舞い(プロンプトやツールの説明など)をサンドボックス化しようとするのではなく、この設計では実際の境界を、エージェントが何を送信しようともOSが強制するレイヤーに押し下げています。すなわち、強制SSHコマンドと、パストラバーサルを検査するホワイトリストスクリプトです。
技術スタック
Node.js、Express、@modelcontextprotocol/sdk、Zod。データベースは不使用——認証状態はサーバーの隣に置かれた小さなJSONファイルに永続化されます。
注記
これは、実際に本番稼働しているサーバーから余計な部分を削り、識別子を取り除いたコピーです。実際のホスト名・IP・内部プロジェクト名はプレースホルダ(your-production-server-ip、project-a / project-b / project-c など)に置き換えられています。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceProvides policy-driven, auditable SSH access to server fleets for AI assistants with zero-trust security controls, command whitelisting, and comprehensive audit logging to safely manage infrastructure.1327Apache 2.0
- AlicenseNot gradedqualityAmaintenanceA secure gateway that lets AI agents interact with APIs and SSH servers via scoped tokens, with credential injection, human-in-the-loop for dangerous commands, and MCP integration for tool access.1015MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to securely execute SSH commands on remote servers with connection pooling, session isolation, and a web audit panel.3MIT
- AlicenseAqualityCmaintenanceEnables AI agents to execute SSH commands, read files, and list directories on remote hosts with a configurable command-safety policy.5MIT
Related MCP Connectors
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
The bridge from K2 agents through Wrangler to your master AI - safe, approval-gated Cloudflare ops.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/enes-sakin-dev/mcp-sandbox-server-showcase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server