Skip to content
ReviewRamble

The weekly brief

AI, reviewed, in your inbox.

  • New reviews of tools, models, MCP servers and repos, with the verdict up front
  • Re-checked prices and ratings when something changes
  • New analysis pieces as they are published

Models, agents, MCP servers and the tools actually worth your time.

One email a week. Unsubscribe with the link in any brief. How we use your email

MockServer MCP

The MCP endpoint built into MockServer: 46 tools for mocks, traffic checks and LLM test doubles, open to any caller by default.

Reviewed by ReviewRamble editors · Updated

Setup docs Source codeOpen source

Share this page:XLinkedInFacebookRedditWhatsAppEmail

Our rating

4.1/5

A capable agent test bench built into a mature mock server, as long as the wide-open MCP port is the first thing you lock down.

What is MockServer MCP?

MockServer is an open-source HTTP and HTTPS mock server and recording proxy, started by James D Bloom in 2013 and licensed under Apache-2.0, with about 5,015 GitHub stars. Every running instance also serves an MCP endpoint at /mockserver/mcp over Streamable HTTP, on the same port as the mocks (1080 in the docs), so there is nothing extra to install.

The tools page lists 46 tools. They create and verify expectations, retrieve recorded traffic, switch between SIMULATE, SPY and CAPTURE modes, turn recordings into mocks, run contract tests against OpenAPI specs and explain why a request did not match. Version 7.0.0, in June 2026, added tools that mock seven LLM providers and check agent runs. Version 9.4.0 came out on 20 November 2026, the fifteenth release since May.

How to install MockServer MCP

docker run -d --rm -p 1080:1080 mockserver/mockserver (MCP at http://localhost:1080/mockserver/mcp)

Is MockServer MCP worth it?

MockServer's MCP endpoint is the strongest reason yet to keep using MockServer, because the tools drive the same engine as its REST API and arrive free with every instance. An assistant can create an expectation, hit it with curl, then call debug_request_mismatch to get a ranked list of the mocks that nearly matched a stray request. suggest_expectation_fix proposes JSON patches and leaves applying them to you, and lint_expectations flags mocks that can never match. Anyone who has scrolled a MockServer log to find the one header that broke a match will see the appeal.

Version 7.0.0 turned it into an agent test harness as well. It mocks completions and streaming for Anthropic, OpenAI, OpenAI Responses, Azure OpenAI, Gemini, Bedrock and Ollama, scripts multi-turn conversations, and checks runs with verify_tool_call, verify_structured_output and verify_cost_budget. detect_llm_drift replays a recording against the live provider and reports changes in response structure, which tells you when a fixture has gone stale.

The defaults need a plain warning. mcpEnabled is true, control-plane authentication (mTLS, JWT, OIDC or Basic) is off, and localBoundIP is blank, which the project's configuration reference describes as every interface. Anyone who can reach port 1080 can call stop_server, which shuts the instance down at once and takes no parameters, or reset, which wipes every expectation, recorded request and log. Switching authentication on helps less than you would hope: the authorisation docs say the MCP endpoint validates the bearer token but does not yet enforce per-tool roles, so any authenticated session should be treated as able to change state. The project plans to make 127.0.0.1 the default in a future major release and logs a startup warning until then.

Three tools, run_contract_test, run_resiliency_test and run_mcp_contract_test, send requests to URLs the agent supplies. The setting that keeps them away from loopback, private and cloud-metadata addresses, forwardProxyBlockPrivateNetworks, is also off by default. Recordings can hold real credentials; redactSecretsInLog masks them in explain output, and promote_recordings redacts secrets when it converts traffic into mocks.

The release pace is the other cost. MockServer went from 6.0.0 on 20 May to 9.0.0 on 15 October 2026, and each major version came with breaking changes in the upgrade guide. 9.4.0 made a configuration setting startup-only after the team found that anyone able to reach the control plane could make the server run the constructor of almost any class on its classpath. Public feedback on the MCP side is scarce: we found no Reddit or Hacker News discussion of it, and the issue tracker is mostly dependency updates. Pin the version in CI and bind it to localhost, and it earns its place.

Where it earns its place

  • A backend engineer on a payments team whose integration tests run against MockServer

    Find out why a test request falls through to a 404

    Ask the agent to run explain_unmatched_requests and debug_request_mismatch, read what suggest_expectation_fix proposes, then apply the patch yourself. Free, and it replaces the log-reading part of the afternoon.

  • An AI platform team at a 30-person start-up building an agent on OpenAI and Anthropic

    Run agent tests in CI without paying for or waiting on real model calls

    Script replies with create_llm_conversation, then check behaviour with verify_tool_call and verify_cost_budget. Run detect_llm_drift now and then to see whether the real API has changed; that step calls the live provider.

  • A QA lead moving a legacy service onto contract tests

    Turn real traffic into a starting set of mocks

    Proxy traffic through MockServer in CAPTURE mode, then let promote_recordings convert it into expectations with secrets redacted and duplicates merged. Review the result before committing it, since recordings carry bodies as well as headers.

Before you commit

Setup
Start MockServer (docker run -d --rm -p 1080:1080 mockserver/mockserver, or the Maven, npm or Java routes) and point the client at http://localhost:1080/mockserver/mcp. For Claude Code: claude mcp add mockserver --transport streamable-http with that URL. Outside containers, set mockserver.localBoundIP=127.0.0.1.
Integrations
46 tools in the docs table; config examples for Cursor, Windsurf, Cline, Claude Code, Continue, OpenCode and LangChain through langchain-mcp-adapters. The same instance can mock MCP and A2A servers and proxy AI traffic for inspection.
Data and privacy
Self-hosted. Recorded requests, responses and logs stay in the instance until cleared or reset, and can include credentials; redactSecretsInLog masks them in explain output. Control-plane mTLS, JWT, OIDC or Basic authentication exists but is off by default.
Cost at scale
Free under Apache-2.0. The real costs are CI time and, for detect_llm_drift, the live provider calls it makes when replaying recordings.
Limits
Per-tool authorisation is not enforced on MCP; mcpEnabled=false turns the endpoint off entirely. Frequent major releases with breaking changes. The tools page's example response mentions 36 tools while its table lists 46.

What’s good

  • MCP endpoint built into every instance
  • 46 tools, including mismatch debugging and fix suggestions
  • LLM provider mocks for seven providers
  • Apache-2.0, maintained since 2013

What’s not

  • MCP on, auth off, all interfaces by default
  • stop_server and reset open to any client that reaches the port
  • No per-tool authorisation on MCP sessions
  • Major versions 6 to 9 in five months

Best for

Teams already using MockServer in integration tests who want an agent to write mocks, debug mismatches and test LLM clients on a local or CI instance.

MockServer MCP alternatives

Where it fits in the AI stack

MockServer MCP: common questions

Is MockServer MCP worth it?
A capable agent test bench built into a mature mock server, as long as the wide-open MCP port is the first thing you lock down. We rate it 4.1 out of 5.
How much does MockServer MCP cost?
Free and open source (Apache-2.0). No paid tier.
What are the downsides of MockServer MCP?
MCP on, auth off, all interfaces by default; stop_server and reset open to any client that reaches the port; no per-tool authorisation on MCP sessions; major versions 6 to 9 in five months.
Who is MockServer MCP best for?
Teams already using MockServer in integration tests who want an agent to write mocks, debug mismatches and test LLM clients on a local or CI instance.
How much does MockServer MCP cost for a team or in production?
Free under Apache-2.0. The real costs are CI time and, for detect_llm_drift, the live provider calls it makes when replaying recordings.
Is MockServer MCP safe for company data?
Self-hosted. Recorded requests, responses and logs stay in the instance until cleared or reset, and can include credentials; redactSecretsInLog masks them in explain output. Control-plane mTLS, JWT, OIDC or Basic authentication exists but is off by default.
What are the best MockServer MCP alternatives?
The closest alternatives we have reviewed are Playwright MCP and Chrome DevTools MCP.

Answers checked Nov 29, 2026.

Make MockServer MCP? Show this rating on your siteMockServer MCP rated 4.1 out of 5 on ReviewRamble