mock-server

Serve configurable mock REST APIs with static, recorded, or dynamic responses.

5|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/JansenAnalytics/claudex --skill mock-server-jansenanalytics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mock-server
Source: https://github.com/JansenAnalytics/claudex/tree/main/skills/mock-server
Command: npx skills add https://github.com/JansenAnalytics/claudex --skill mock-server-jansenanalytics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Frontend developers often need reliable mock APIs to decouple frontend from backend, speed up iteration, and enable offline testing.

Core Features & Use Cases

  • Static response serving for endpoints
  • Record/replay of real API calls
  • Dynamic response generation and templating
  • Lightweight integration via Python, shell, and JSON configs

Quick Start

Start the mock server using a routes.json configuration to run on a local port for frontend development and testing.

Frequently Asked Questions about mock-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a mock API server for frontend development?

You can set up a mock API server by configuring a routes.json file to define static REST endpoints, custom headers, and response delays, then running the server locally to provide instant mock data for frontend testing.

Can I record and replay real API calls during testing?

Yes, the mock server supports recording real API calls and replaying them later, allowing you to capture live responses and reuse them for offline frontend development and testing without hitting the backend.

How do I generate dynamic responses for REST endpoints?

Dynamic responses are generated using dynamic templates applied to REST endpoints, enabling you to script configurable mock data outputs via Python, shell, and JSON configurations.

Does the mock server support OpenAPI configurations?

Yes, the mock server accepts OpenAPI inputs alongside JSON, Python, and shell scripts to configure endpoints, regex path matching, and custom headers for serving mock API responses.

What is the best way to mock REST APIs with custom headers and delays?

The best way to mock REST APIs with custom headers and delays is to define these parameters within a script-driven configuration or routes.json file, allowing the mock server to serve responses with specified latency and header injection.

Why use a mock server instead of connecting directly to a backend API?

Using a mock server decouples frontend development from backend availability, speeds up iteration by providing instant static and dynamic responses, and enables reliable offline testing by recording and replaying real API calls.