Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mockserver

MCP server by mock-server Verified · mock-server.com

Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.

  • Score 100
  • 5k stars
  • Apache-2.0
  • Updated

Install mockserver

Built from the published package, never by AI.

claude mcp add mockserver -- docker run -i --rm docker.io/mockserver/mockserver:9.3.0

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install mockserver in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mockserver block.

About

MockServer mocks, records, and chaos-tests HTTP(S) dependencies that an application talks to. It runs as one binary on a single port and auto-detects HTTP/1.1, HTTPS, HTTP/2, gRPC, gRPC-Web, WebSockets, and raw TCP. Expectations can return canned, templated, or callback responses, or it can sit as a proxy that records and modifies real traffic. Mocks can also be generated from an OpenAPI or Swagger spec.

It also mocks chat-completion APIs for OpenAI, Anthropic, Gemini, Bedrock, Azure OpenAI, and Ollama, and it can inject latency, dropped connections, and errors for chaos testing. A built-in MCP server at /mockserver/mcp lets AI coding assistants drive MockServer directly. The source describes it as a development and testing tool only.

Written from the project's README and checked against it.

What you need

  • Docker, or Java 17+ for the JAR and other non-container installs
  • Homebrew on macOS or Linux for the brew install option

Try asking

  • Mock a GET /hello endpoint that returns 200 with Hello World
  • Record traffic from my API dependency through a MockServer proxy
  • Generate mocks from my OpenAPI spec and run them on port 1080

Good to know

  • Intended for development and testing only, not production
  • HTTP/3 (QUIC) support is marked experimental
  • Versions from 6.0.0 require Java 17+; use 5.15.x for Java 11

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Mock HTTP and REST dependencies in tests
  • Record and replay real API traffic
  • Chaos-test how an app handles failing services
  • Mock LLM chat APIs during development

Alternatives to mockserver

All alternatives →
GitDiagram ahmedkhaleel2004
100

Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.

AAA Remote 19k
XcodeBuildMCP getsentry
100

Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.

AAA Local 6.6k
draw.io jgraph
100

Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.

AAA Local and remote 20k/wk
Repowise repowise-dev
98

Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.

ACA Local and remote 8.4k
Repowise (Hosted) repowise-dev
98

Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.

ACA Remote 8.5k
Qase Test Management qase-tms
98

Official MCP server for Qase Test Management that lets AI assistants manage test cases, runs, suites and defects. Connect to the hosted server with a Qase login or run it locally with an API token. Built for QA teams that use Qase.

AAC Local and remote 25k/wk

Compare with GitDiagram, XcodeBuildMCP or draw.io

mockserver: common questions

Does MockServer work with gRPC and WebSockets?

Yes. The source says gRPC, gRPC-Web, and WebSockets are auto-detected on the same port as HTTP traffic, alongside raw TCP.

Can MockServer mock AI model APIs?

The source says it mocks chat-completion APIs for OpenAI, Anthropic, Gemini, Bedrock, Azure OpenAI, and Ollama, including streaming.

Can MockServer simulate failing dependencies?

Yes. The source says chaos engineering is built in, with injected latency, dropped connections, and errors on demand.

How do I install mockserver?

In Claude Code run claude mcp add mockserver -- docker run -i --rm docker.io/mockserver/mockserver:9.3.0. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is mockserver the official server?

mockserver is published by mock-server.com from its verified domain in the official MCP Registry.

Is mockserver free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is mockserver safe to use?

It scores 100 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mockserver?

Similar MCP servers: GitDiagram, XcodeBuildMCP, draw.io, Repowise.

Does mockserver work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

mockserver Install

Add to stack

Loading.