Mock Service Worker · GraphQL Specification

Mock Service Worker GraphQL API

Mock Service Worker (MSW) is an open-source library for mocking REST, GraphQL, WebSocket, and Server-Sent Events APIs at the network level. It provides setupWorker for browser environments and setupServer for Node.js, with handlers (http, graphql, ws, sse) that allow developers to declare mocked responses without modifying application code.

Documentation Endpoint View on GitHub API MockingGraphQLHTTPMock ServerMockingService WorkerTestingWebSocketGraphQL

Overview

Mock Service Worker GraphQL API is a GraphQL API specification published by Mock Service Worker on the APIs.io network.

Mock Service Worker (MSW) is an open-source library for mocking REST, GraphQL, WebSocket, and Server-Sent Events APIs at the network level. It provides setupWorker for browser environments and setupServer for Node.js, with handlers (http, graphql, ws, sse) that allow developers to declare mocked responses without modifying application code.

The GraphQL endpoint is available at https://mswjs.io/. documentation is published at https://mswjs.io/.

The specification includes 1 reference link.

Tagged areas include API Mocking, HTTP, Mock Server, Mocking, and Service Worker.

Endpoint

https://mswjs.io/

References

Back to Mock Service Worker · All GraphQL Specs · GitHub

Work with this as data

Every GraphQL schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for graphql

4 MCP tools reach this
  • find_graphqlBrowse and filter every GraphQL schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This GraphQL schema
curl "https://apis.io/api/v1/graphql/mock-service-worker-graphql"
All graphql
curl "https://apis.io/api/v1/graphql?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.