Overview
Connect Claude Code to the experimental MDN MCP server so it checks the CSS in a branch against MDN documentation and browser compatibility data, and reports issues with links before you merge.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- MDN MCP server
- Prerequisites
- Claude Code with a Claude subscription or Anthropic Console account, and access to the experimental MDN MCP server or a local copy of it.
How It Works
Add the MDN MCP server to Claude Code with claude mcp add --transport http and the remote address given in the MDN README, or run the server locally. Decide which browsers you support and write them in CLAUDE.md. On a branch with CSS changes, ask Claude Code to list every property, selector and at-rule the changes introduce, look each one up through the MDN server, and report which are unsupported or partly supported in your target browsers, with the MDN page for each finding and a suggested fallback. Ask it to keep the report as a comment-ready list and not to edit any file. Read the report, check the flagged features in real browsers, and make the changes you agree with yourself or ask Claude Code to make them as a separate step you review.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: MDN MCP server.
- Check the prerequisitesClaude Code with a Claude subscription or Anthropic Console account, and access to the experimental MDN MCP server or a local copy of it.
- Gather your detailsCollect what the prompt asks for: Branch with the CSS changes, Branch to compare with, Folders or files with CSS, Browsers you support.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at github.com before you rely on it.
Practical Starter Prompt: Check the CSS in this branch against MDN
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Compare [Branch with the CSS changes] with [Branch to compare with] and list every CSS property, selector and at-rule the changes add in [Folders or files with CSS]. Look each one up with the MDN MCP server and report which are not supported or only partly supported in [Browsers you support]. For each finding give the file and line, the MDN page, and a suggested fallback. Write the report as a list I can paste into a review comment. Do not edit any file or post anything.Read the report, test flagged features in real browsers, and post the review comment yourself; any edits are a separate request you review.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The MDN README describes an experimental MCP server that provides access to MDN search, documentation and browser compatibility data, and shows the claude mcp add command for adding it to Claude Code. The Claude Code MCP page says HTTP servers are the recommended option for remote MCP servers. Neither page measures how complete the checks are, so testing in real browsers stays part of the review.
Limitations and Considerations
The MDN server is experimental and may be withdrawn at any time; while it runs as an experiment, MDN stores data about the queries it receives, and using it means agreeing to its Acceptable Use Policy. The Claude Code MCP page warns that servers that fetch external content can expose you to prompt injection risk, so verify you trust a server before connecting it. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- GitHub - mdn/mcp: MDN's prototype MCP server · GitHub (opens in a new tab)
Project documentation · github.com · Undated · Source checked 27 Nov 2026, 08:43 UTC
What this source supports
- This is an experimental MCP server that provides access to MDN's search, documentation, and browser compatibility data.
- The README shows adding the remote server in Claude Code with claude mcp add --transport http, or running it locally.
- While it is an experiment, MDN stores data about the queries it receives, and as an experimental server it may be withdrawn at any time.
- Connect Claude Code to tools via MCP - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 12:10 UTC
What this source supports
- HTTP servers are the recommended option for connecting to remote MCP servers.
- Verify you trust each server before connecting it; servers that fetch external content can expose you to prompt injection risk.

