denoland / denoland/std

Proposal: native MCP protocol primitives in the standard library

Open
#7,185 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

MCP (Model Context Protocol) is becoming a standard for AI tool integration. Deno could be the most natural platform for building MCP servers by adding native protocol primitives to the standard library. Currently MCP server authors using Deno must either use the npm package @modelcontextprotocol/sdk (Node.js-focused) or implement JSON-RPC manually over std/http. A Deno-native std/mcp module would provide proper TypeScript types for the MCP protocol, handle JSON-RPC over stdin/stdout and HTTP transports, integrate with Deno's permission model, and require zero configuration. MCP servers are often single-file scripts which maps perfectly to Deno's design. Deno's security model (--allow-read, --allow-net) also maps cleanly to MCP's tool permission concept.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.