Skip to content

Menu

MCP JSON-RPC Inspector

Paste MCP JSON-RPC 2.0 logs to pair requests with responses by id, see per-call latency, and find spec violations. Runs in your browser.

Runs entirely in your browserAIFree, no sign-up
Loading tool
How log lines become callsEach line is read as a request, notification or response; responses are matched to the open request with the same id, in value and type.Log lineoptional timestamp prefix, then JSONRequestmethod + idNotificationmethod, no idResponseid + resultor errorMatch response to requestsame id, same typeid "9" doesn't answer id 9Table of callslatency from timestampsStill open at endlisted as no response
Each line is read as a request, notification or response; responses are matched to the open request with the same id, in value and type.

01What is MCP JSON-RPC Inspector?

MCP clients and servers talk in JSON-RPC 2.0 messages. When a tool call hangs or fails, the log of those messages is usually the fastest way to see why, but a raw log is hard to read. This inspector takes a log with one JSON message per line and turns it into a table of calls. Each line is read as a request, a notification or a response. A request has a method and an id, a notification has a method and no id, and a response has an id plus either result or error. Responses are matched to the earlier open request with the same id. The id must match in value and type, so a response with id "9" does not answer a request with id 9, and the tool says so. Text in front of the JSON is allowed, which covers most logging formats. If that prefix holds an ISO 8601 timestamp or a 13 digit epoch in milliseconds, the table shows the latency between each request and its response. Every message is checked against the JSON-RPC 2.0 specification and the MCP base protocol. Errors include a jsonrpc field that is not exactly "2.0", a response with both result and error, a non-integer error code, a missing id on a response and lines that are not valid JSON. MCP adds stricter rules, so a null request id is reported, as is a request id reused in the same log. Batches are flagged because MCP 2025-06-18 removed batch support. The current spec, revision 2026-07-28, has no handshake. Each request carries its protocol version and client capabilities in params._meta, and a client may call server/discover to learn what the server supports. The tool labels the log modern when it sees those fields, and warns about a request with a version but no capabilities, a modern result without resultType, or a method the revision removed, such as ping. An initialize request and notifications/initialized are still accepted and labelled legacy (2025-11-25 and earlier). Error codes are named, including -32601 Method not found, -32022 UnsupportedProtocolVersion and the old -32002 resource not found, now -32602. There are limits. The log does not say which side sent a message, so a server request and a client request that share an id can look like a reused id. Each message must fit on one line. Requests still open at the end of the log are listed as having no response. The tool does not check params against MCP method schemas. Everything runs in your browser, so tokens or file contents in the log stay on your machine.

Developers building or debugging MCP servers and clients who need to read message logs quickly. The tool runs entirely in your browser, so your data never leaves your device.

02How to use MCP JSON-RPC Inspector

  1. Capture the messages from your client, server or proxy, one JSON message per line
  2. Paste the log into the input box; timestamps or arrows before the JSON are fine
  3. Read the table of requests with their response line, latency and result
  4. Work through the errors and warnings, each tagged with its line number
  5. Copy the summary to share it in a bug report

03Worked examples

Input: Timestamped 2026-07-28 log: server/discover (id 1), tools/list (id 2), tools/call for an unknown tool x (id 3) answered with -32602, and tools/list (id 4) sent with version 1900-01-01
Result: protocol era: modern (2026-07-28, per-request _meta) server/discover id=1 ok 40ms tools/list id=2 ok 80ms tools/call id=3 error 320ms -32602 Unknown tool: x tools/list id=4 error 30ms -32022 Unsupported protocol version
Every request carries its version and capabilities in _meta, so there is no handshake. The -32022 error lists the supported versions, and the client retries with one of them.
Input: Legacy log: initialize (id 1), notifications/initialized, tools/list (id 2)
Result: protocol era: legacy (2025-11-25 and earlier) initialize (legacy) id=1 ok 45ms tools/list id=2 ok 80ms notification line 3 notifications/initialized
Older clients and servers still use the handshake, so it is accepted and labelled rather than reported as an error.
Input: {"jsonrpc":"2.0","id":null,"method":"ping"} {"jsonrpc":"2.0","id":9,"method":"resources/list"} {"jsonrpc":"2.0","id":"9","result":{"resources":[]}} {"jsonrpc":"2.0","id":4,"result":{},"error":{"code":-32603,"message":"x"}} [{"jsonrpc":"2.0","method":"notifications/progress"}] {"jsonrpc":"2.0","id":5,"method":"tools/list"
Result: line 1 error: Request id is null. JSON-RPC discourages it and MCP forbids it. line 3 warning: Response id "9" has a different type from request id 9 (line 2). The id must be the same value and type. line 4 error: Response contains both "result" and "error". Exactly one is allowed. line 5 warning: Batch of 1 message. JSON-RPC allows batches, but MCP 2025-06-18 removed batch support. line 6 error: Line is not valid JSON (a server would answer Parse error, -32700). Each message must be on one line.
Shortened to the main issues; the tool also flags the unanswered resources/list and the unmatched id 4. A string "9" does not match a numeric 9.
Input: {"jsonrpc":"2.0","id":"a1","method":"prompts/list"} {"jsonrpc":"2.0","id":"a1","result":{"prompts":[]}} {"jsonrpc":"2.0","id":"a2","method":"prompts/get","params":{"name":"missing"}} {"jsonrpc":"2.0","id":"a2","error":{"code":-32601,"message":"Method not found"}}
Result: prompts/list id="a1" ok prompts/get id="a2" error -32601 Method not found
Without timestamps the pairs still match by id but show no latency. String ids work as long as both sides use the same string.
Input: Timestamped log: tools/call id 10 with a progressToken, a notifications/progress at 50 of 100, the result 2.1 s later, resources/read id 11 cancelled with notifications/cancelled, and a stray response for id 12
Result: tools/call id=10 ok 2100ms resources/read id=11 pending notification line 2 notifications/progress notification line 5 notifications/cancelled line 4 warning: Request "resources/read" (id 11) has no response in this log. line 6 warning: Response id 12 matches no earlier open request.
Progress notifications do not end a request; only the response does. A cancelled request stays pending, which is expected because a server should not answer it.

04Common use cases

  • Finding which tools/call request never got a response in a stalled MCP session
  • Measuring how long each MCP method takes from timestamped stdio or proxy logs
  • Checking a custom MCP server for responses that break JSON-RPC rules
  • Spotting id type mismatches, such as a string id answered with a number
  • Reading the error code and message of failed calls in one table
  • Telling whether a log uses the 2026-07-28 per-request _meta or the legacy initialize handshake

05Tips

  • Keep ISO 8601 timestamps with milliseconds in your log lines to get latency per call
  • If a request shows no response, check whether the server wrote a log line to stdout, which breaks stdio framing
  • A warning about a reused id can be harmless when the server and client each number their own requests
  • Pretty-printed JSON spread across lines will not parse; log one message per line

06Related concepts

JSON-RPC 2.0, Model Context Protocol, request id, server/discover, error code -32022, stdio transport.

Frequently Asked Questions

What is MCP JSON-RPC Inspector?

MCP JSON-RPC Inspector is a free, browser-based developer tool on AIDToolStack. Paste MCP JSON-RPC 2.0 logs to pair requests with responses by id, see per-call latency, and find spec violations. Runs in your browser. It requires no installation or sign-up and works entirely in your browser.

Is MCP JSON-RPC Inspector free to use?

Yes. No sign-up, no fees and no usage cap.

Does MCP JSON-RPC Inspector store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe