deno-mcp-template
Verified Safeby phughesmcr
Overview
A comprehensive template for building Model Context Protocol (MCP) servers using Deno, providing examples for prompts, resources, and tools.
Installation
deno task startEnvironment 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
claude-prompts-mcp
The Claude Prompts MCP Server provides hot-reloadable prompts, structured reasoning, and chain workflows to enhance AI assistant interactions.
boilerplate-mcp-server
Provides a TypeScript boilerplate for developing custom Model Context Protocol (MCP) servers, with an IP geolocation tool as an example.
mcp-ai-agent-guidelines
The MCP server provides a suite of tools for designing, analyzing, and orchestrating AI agents and their components, focusing on structured design, code quality, prompt engineering, and cross-session consistency.
mcp_server
Provides a Python server that exposes various external APIs (Microsoft Graph, GitHub, OpenWeatherMap) as tools to be consumed by AI assistants via the Model Context Protocol (MCP).