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
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.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.