MCP Catalogs
Homedeno-mcp-template screenshot

deno-mcp-template

by phughesmcr·30·Score 46

Comprehensive TypeScript template for building production MCP servers with Deno, supporting multiple distribution formats.

developer-toolsops-infraai-llm
4
Forks
9
Open issues
1 mo ago
Last commit
2d ago
Indexed

Overview

The Deno MCP Server Template is a batteries-included starting point for building production MCP servers in TypeScript. It provides a complete working server with STDIO + HTTP transports, security middleware, persistent state, sandboxed execution, and CI/CD workflows out of the box. The template supports multiple distribution formats including JSR packages, native binaries, DXT extensions, and cloud deployment on Deno Deploy, making it easy to ship MCP servers anywhere with a single codebase.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Rapid prototyping of MCP servers with security and infrastructure already implemented
you:Creating MCP servers that need to be distributed as binaries, packages, or cloud-hosted services
you:Building MCP servers with sandboxed execution capabilities for untrusted code
you:What distribution formats are supported?
you:How do I handle authentication for my MCP server?

When to choose this

Choose this template if you want to build production MCP servers with TypeScript and Deno, especially when you need multiple distribution formats and built-in infrastructure like persistent state and sandboxed execution.

When NOT to choose this

Don't choose this template if you're not using TypeScript/Deno, or if you need more specialized functionality beyond what the template provides (like custom authentication systems beyond bearer tokens).

Tools this server exposes

11 tools extracted from the README
  • elicit-input

    Elicits input from users through a two-step form process

  • elicit-form-wizard

    Creates a two-step form wizard for complex data collection

  • url-elicitation-demo

    Demonstrates URL-mode elicitation with streamable HTTP and session handling

  • fetch-website-info

    Fetches information from a website with optional MCP Apps UI

  • increment-counter

    Increments a persistent counter value stored in Deno KV

  • log-message

    Logs a message to the system with structured logging

  • notify-list-changed

    Notifies subscribers when a list has been modified

  • poem

    Generates a sample poem using the sampling functionality

  • execute-code

    Executes code in a sandboxed environment using Deno's microVM

  • delayed-echo

    Demonstrates experimental task workflows with delayed echo functionality

  • guided-poem

    Creates a guided poem generation using elicitation and sampling pipeline

Comparable tools

n8n-mcp-serverserverless-stackmcp-server-template

Installation

Installation

  1. Install Deno (if needed):
curl -fsSL https://deno.land/install.sh | sh
  1. Create your project from template:
gh repo create my-mcp-server --template phughesmcr/deno-mcp-template
cd my-mcp-server
  1. Run setup (renames placeholders, then self-destructs):
deno task setup
  1. Start the server:
deno task start

Claude Desktop Configuration

Add to your Claude Desktop config.json:

{
  "mcpServers": {
    "my-mcp-server": {
      "command": "deno",
      "args": ["run", "-A", "/absolute/path/to/main.ts"]
    }
  }
}

FAQ

What distribution formats are supported?
The template supports JSR packages, native binaries, DXT extensions, and cloud deployment on Deno Deploy from a single codebase.
How do I handle authentication for my MCP server?
Set the MCP_HTTP_BEARER_TOKEN environment variable (or --http-bearer-token flag) to require clients to send Authorization: Bearer or x-api-key headers.

Compare deno-mcp-template with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.