# Mock Service Worker — card for AI agents

API mocking library for seamless request interception in tests and development.

Category: Testing · npm package `msw` · latest version 3.0.3 (checked 2026-11-01)
Install: `npm install msw`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 74.3 (#224 of all tools, 9 of 122 in its category)
- Used in 86 public projects set up for AI coding agents (1.4%)
- Downloads last week: 36,198,584 (as of 2026-11-24), +52.0% over 4 weeks
- GitHub stars: 18,359 (as of 2026-11-24)
- Last push: 2026-11-18

## Often used with
Testing Library 77.9%, Vitest 79.1%, Vite 72.1%, Playwright (JavaScript) 66.3%, jsdom 60.5%, React 83.7%

## Links
- AgentGid page: https://agentgid.com/tools/msw/
- Homepage: https://mswjs.io
- Repository: https://github.com/mswjs/msw

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
