Test any MCP server

Debug any MCP server in a local web UI, then guard it in CI with lint and a smoke test. Free, open source, and it runs on your machine.

npx mcp-master-tester
  • stdio, Streamable HTTP and SSE
  • 2 dependencies
  • No build step
  • MIT licence
Connecting to the reference server, running the echo and get-sum tools, the protocol log, a resource, the lint report and the server info
Connect, run tools, read the protocol log, then lint the tool list.

One tool, five jobs

Point it at a server, either a local command over stdio or a remote URL. Use the web UI while you build, and the same checks from the command line in CI.

Explore

Run every tool by hand

Each tool's schema becomes a form. Call it and see the result, its structured content, and every JSON-RPC message in both directions.

Lint

Check what the model sees

Spec errors, missing descriptions, look-alike tools a model may confuse, missing safety labels, and tool lists so large they eat the context window.

Smoke test

Prove the tools answer

Calls each read-only tool once and fails on timeouts, crashes, protocol errors and results that break their output schema.

Diff

Catch breaking changes

A lockfile of your tools, checked in CI. A removed parameter, a new required one or a narrower type fails the pull request; a changed description gets flagged for review.

Eval

Check the model picks right

List requests your users make and the tool each should lead to. A model gets your real tool list and each request; the report shows wrong picks and which tools it mixed up.

Forms from the schema

Strings, numbers, enums, multi-select arrays and JSON objects each get the right field, with required-field checks before anything is sent.

Results show text, images, audio and embedded resources. A tool's isError result is shown apart from a protocol error, so you can tell which one you have.

The echo tool of the reference server: the form, the echoed result, call history and the protocol log listing every JSON-RPC frame

Lint that knows how models fail

Every finding links to its tool. Beyond the spec, it flags what trips models up in practice: get_user next to getUsers, a string that should be an enum, a list tool with no limit, a tool marked read-only but named cancel_booking.

How lint works

The lint report for the reference server: 0 errors, 0 warnings and 30 info findings

A smoke test that doesn't take labels on trust

Only tools marked read-only run by default, and any whose name says they write are held back. For a server with real data, name the tools yourself with --tool.

How the smoke test works

The smoke test for the reference server: 9 read-only tools passed and 5 tools not marked read-only were skipped

Add it to CI in three lines

The GitHub Action runs lint and the smoke test, shows each finding as an annotation on the workflow run, and fails the job when something is wrong.

- uses: simplymanas/mcp-master-tester@v1
  with:
    command: node dist/index.js

Without the action, on GitHub or any other CI system, the same checks are two commands that exit non-zero on a problem:

- run: npx -y mcp-master-tester lint --format github --fail-on warn -- node dist/index.js
- run: npx -y mcp-master-tester smoke --format github -- node dist/index.js
mcp-master-tester lint · my-server v1.4.0 · 12 tools · stdio

  error  send_mail    required "subject" is not defined in properties
  warn   get_user     name is very close to "getUsers" — models may confuse them; …
  warn   send_mail    missing description — models cannot tell when to use it

✖ failed: 1 error, 2 warnings, 9 info (add --show-info to list the info findings). Failing on: error.

Options, exit codes and GitHub Actions

Small on purpose

  • Two runtime dependencies: the official MCP SDK and Express.
  • No build step and no frontend framework. Plain JavaScript you can read.
  • No install scripts, and nothing loaded from the internet: no CDN, fonts or analytics.
  • A weight budget in the test suite, so a pull request that adds a dependency fails CI.

Safe to run locally

  • Listens on 127.0.0.1 only, and rejects other hosts and origins to block DNS rebinding.
  • Everything a server sends is escaped before display, backed by a Content-Security-Policy.
  • Secrets stay in memory. Saved profiles keep names, never values.
  • Tools marked destructive ask before they run.