Deno MCP Template

v1.0.0Developer Toolsstable

A template repo for writing and publishing local, remote, DXT, and binary MCP servers using Deno.

aianthropicclaude-codecursordeno
Share:
31
Stars
0
Downloads
0
Weekly
0/5

What is Deno MCP Template?

Deno MCP Template is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to template repo for writing and publishing local, remote, dxt, and binary mcp servers using deno.

A template repo for writing and publishing local, remote, DXT, and binary MCP servers using Deno.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A template repo for writing and publishing local, remote, DX

Use Cases

Write MCP servers
Deploy with Deno
Support binary MCP servers
phughesmcr

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx deno-mcp-template

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Deno MCP Template

Deno MCP Template is a production-ready starter repository for building and publishing MCP servers using the Deno runtime, with a single codebase that compiles to six deployment targets: local STDIO server, Streamable HTTP server, JSR package, standalone native binary, DXT extension for Claude Desktop, and a Deno Deploy cloud app. It ships with built-in support for dual transports, rate limiting, CORS, bearer token auth, Deno KV persistence, sandboxed code execution via microVMs, background task queuing, and interactive UI components — removing all the boilerplate so developers can focus on writing their actual MCP tools.

Prerequisites

  • Deno 2.x installed (curl -fsSL https://deno.land/install.sh | sh)
  • GitHub account for using the template repository and GitHub Actions CI/CD
  • An MCP-compatible client such as Claude Desktop, Claude Code, or Cursor for testing
  • gh CLI installed if creating from the template via GitHub CLI
1

Create a new repository from the template

Use the GitHub CLI or the GitHub web UI to create a new repo from the deno-mcp-template template. This copies all starter files into your new project.

gh repo create my-mcp-server --template phughesmcr/deno-mcp-template
cd my-mcp-server
2

Run the setup task

The setup task installs Deno dependencies and configures the project for local development.

deno task setup
3

Start the server locally in STDIO mode

Launch the MCP server in STDIO mode for use with Claude Desktop or Claude Code. The server auto-detects transport based on environment variables.

deno task start
4

Configure environment variables for your deployment

Set key environment variables to control transports, auth, and networking. For HTTP mode, set MCP_PORT; for bearer auth, set MCP_HTTP_BEARER_TOKEN.

export MCP_PORT=3001
export MCP_HTTP_BEARER_TOKEN=your_secret_token
export MCP_ALLOWED_ORIGINS=https://yourapp.com
5

Add to MCP client configuration

Register your local Deno MCP server in your MCP client config using the deno run command pointing at your project.

6

Build a native binary for distribution

Compile the server to a self-contained binary that runs without the Deno runtime. Useful for distributing to users who don't have Deno installed.

deno task compile

Deno MCP Template Examples

Client configuration

Register your Deno MCP server with Claude Desktop using the deno run command. Replace the path with your project location.

{
  "mcpServers": {
    "my-mcp-server": {
      "command": "deno",
      "args": ["run", "--allow-all", "/path/to/my-mcp-server/src/index.ts"]
    }
  }
}

Prompts to try

The template ships with example tools you can test immediately after setup.

- "Fetch the page title and description from https://deno.land"
- "Execute this JavaScript snippet: console.log(2 + 2)"
- "Increment the counter and show me the current value"
- "Review this code snippet using the review-code prompt"
- "Show me the hello://world resource"

Troubleshooting Deno MCP Template

deno task setup fails with permission errors

Deno requires explicit permission flags. Ensure you run setup from inside the project directory, and if using a custom deno.json, verify that the tasks section includes the correct --allow-* flags for your tools.

The server starts in HTTP mode instead of STDIO mode

Set MCP_NO_HTTP=true to disable HTTP transport, or check that your MCP client is spawning the process via stdin/stdout. When invoked from a terminal interactively, the server defaults to HTTP mode.

Bearer token authentication blocks all requests

If MCP_HTTP_BEARER_TOKEN is set, all HTTP requests must include the header 'Authorization: Bearer <your_token>'. For STDIO mode, bearer auth does not apply — remove the env var if you only use STDIO transport.

Frequently Asked Questions about Deno MCP Template

What is Deno MCP Template?

Deno MCP Template is a Model Context Protocol (MCP) server that template repo for writing and publishing local, remote, dxt, and binary mcp servers using deno. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Deno MCP Template?

Follow the installation instructions on the Deno MCP Template GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Deno MCP Template?

Deno MCP Template works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Deno MCP Template free to use?

Yes, Deno MCP Template is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "deno-mcp-template": { "command": "npx", "args": ["-y", "deno-mcp-template"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Deno MCP Template?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides