Deno Sandbox MCP Server
An MCP server that allows you to run TypeScript and JavaScript code securely on your local machine using the Deno® sandbox. This server provides a controlled environment for executing code with explicit permission controls. This project is not affiliated with Deno Land LLC in any way.
bewt85
README
Deno Sandbox MCP Server
An MCP server that allows you to run TypeScript and JavaScript code securely on your local machine using the Deno® sandbox. This server provides a controlled environment for executing code with explicit permission controls.
Note: This project is not affiliated with Deno Land LLC in any way. I'm just a fan of the Deno® runtime. "Deno" is a registered trademark of Deno Land LLC.
Features
- Execute TypeScript/JavaScript code in a secure Deno® sandbox
- Granular permission control via command-line flags
- Clear error messages for permission issues
- Resource that lists available permissions
Usage with Claude Desktop
To use this MCP server with Claude Desktop, add it to your claude_desktop_config.json
:
{
"mcpServers": {
"denoSandbox": {
"command": "node",
"args": [
"/absolute/path/to/deno-mcp/dist/index.js",
"--allow-net=icanhazip.com"
]
}
}
}
Permission Examples and Tradeoffs
-
Network Access
- Permissive:
--allow-net
- Allows all network access
- Useful for web scraping, API calls
- Tradeoff: Code can access any website or API
- Restricted:
--allow-net=api.github.com,example.com
- Allows network access only to specific domains
- Safer while still enabling useful functionality
- Tradeoff: Must know domains in advance
- Permissive:
-
File System
- Permissive:
--allow-read --allow-write
- Full file system access
- Useful for data processing applications
- Tradeoff: High security risk, can read/modify any files
- Restricted:
--allow-read=/tmp --allow-write=/tmp
- Limited to specific directories
- Good for processing isolated files
- Tradeoff: Limited functionality, but much safer
- Permissive:
For a complete list of permissions and detailed documentation, see Deno® Security.
Security Considerations
This server runs code with precisely the permissions specified when starting the server. No additional permissions will be granted at runtime.
Remember that any code executed has access to the permissions you've provided, so be careful about what permissions you enable. Remember malicious people can use prompt injection to trick your prefered language model into running bad things on your computer.
Installation
# Clone the repository
git clone https://github.com/yourusername/deno-mcp.git
cd deno-mcp
# Install dependencies
npm install
Development
Build the TypeScript code:
npm run build
Test with the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.js --allow-net
Example Tests
Try these examples in the inspector:
-
Basic arithmetic (works without permissions):
console.log(1 + 2);
-
Network access (requires
--allow-net
):fetch('https://icanhazip.com').then(response => response.text()).then(ip => console.log(`Your IP is: ${ip.trim()}`));
-
File system access (requires
--allow-read
):const text = Deno.readTextFileSync('/path/to/file.txt'); console.log(text);
License
MIT
推荐服务器
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
MCP Package Docs Server
促进大型语言模型高效访问和获取 Go、Python 和 NPM 包的结构化文档,通过多语言支持和性能优化来增强软件开发。
Claude Code MCP
一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。
@kazuph/mcp-taskmanager
用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。
mermaid-mcp-server
一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。
Jira-Context-MCP
MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。

Linear MCP Server
一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。

Sequential Thinking MCP Server
这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。
Curri MCP Server
通过管理文本笔记、提供笔记创建工具以及使用结构化提示生成摘要,从而实现与 Curri API 的交互。