Back to Home
mdn icon

mcp

Verified Safe

by mdn

Overview

Provides a Model Context Protocol (MCP) interface for AI models to access MDN Web Docs for searching, retrieving full documentation as markdown, and querying browser compatibility data.

Installation

Run Command
npm start

Environment Variables

  • PORT
  • SENTRY_DSN

Security Notes

The server correctly validates URLs for the 'get-doc' tool to ensure they are MDN domains, preventing Server-Side Request Forgery (SSRF) vulnerabilities. It relies on environment variables for Sentry DSN, avoiding hardcoded secrets. The 'get-compat' tool constructs URLs using a key parameter, but the base URL for the BCD API is hardcoded, which limits the scope of potential path manipulation. Overall, it follows good practices for external API interaction.

Similar Servers

Stats

Interest Score35
Security Score8
Cost ClassMedium
Avg Tokens3000
Stars4
Forks0
Last Update2025-12-02

Tags

MDN Web DocsDocumentationBrowser CompatibilityAI Agent ToolWeb Development