Back to Home
phughesmcr icon

deno-mcp-template

Verified Safe

by phughesmcr

Overview

A comprehensive template for building Model Context Protocol (MCP) servers using Deno, providing examples for prompts, resources, and tools.

Installation

Run Command
deno task start

Environment Variables

  • MCP_NO_STDIO
  • MCP_NO_HTTP
  • MCP_PORT
  • MCP_HOSTNAME
  • MCP_HEADERS
  • MCP_DNS_REBINDING
  • MCP_ALLOWED_ORIGINS
  • MCP_ALLOWED_HOSTS

Security Notes

The server implements good security practices including CORS, rate limiting, security headers, request timeouts, and DNS rebinding protection. Input validation is performed using Zod and custom validators. However, the default Deno execution with `-A` (all permissions) is too broad for production and requires fine-tuning. The `KvEventStore` for session resumability is explicitly marked as 'not suitable for production use' in the README, indicating a potential weakness for persistent/scalable state management or security if not replaced. CORS protection is configurable but will allow all origins if no allowed origins are specified, which can be a security risk if not explicitly set.

Similar Servers

Stats

Interest Score42
Security Score8
Cost ClassMedium
Avg Tokens750
Stars27
Forks4
Last Update2025-11-25

Tags

DenoMCPAITemplateServer