JSON-RPC · troubleshooting record
JSON-RPC -32603 Internal error
-32603The server hit an unexpected failure while handling a valid request. Unlike invalid params, this usually indicates a server bug, a dependency failure, or an unhandled exception. The client only sees a generic internal error unless the server logs the underlying stack.
Symptoms
- A valid-looking tool call returns -32603.
- The server stays connected but the operation fails.
- Server logs show an exception without a protocol error mapping.
Confirmed causes
These causes have a documented basis. They may not be the cause of your specific failure.
An unhandled exception in the tool handler
The JSON-RPC internal error code is the generic server-side failure category.
A downstream dependency timed out or returned an unexpected payload
Servers often wrap database or API failures as internal errors instead of mapping them to a tool result.
A serialization failure in the result
A result containing non-serializable values can fail after the tool logic succeeds.
Possible causes
- A bug in the server version.
- Resource exhaustion in the server process.
- A malformed response from an upstream API.
- The server is mixing protocol output with logs on stdout.
What still needs verification
- The server's own logs for the request identifier.
- Whether the same call fails consistently or intermittently.
- Whether the server maps tool errors to structured MCP results.
Affected environments
Fixes
Capture the server-side failure
- Enable the server's stderr logging and reproduce with a minimal request.
- Look for an exception, timeout, or serialization error tied to the tool call.
- Return a structured tool error with a useful message instead of an unhandled exception.
Isolate the dependency
- Call the upstream API or database outside MCP with the same inputs.
- Check timeouts, credentials, and response formats.
- Retry once with a bounded timeout; do not loop indefinitely.
Verify the fix
- The tool call returns a normal result or a structured tool error, not a bare -32603.
- Server logs contain the actual failure for future diagnosis.
- The client remains connected after the error.
Paste the configuration into the Config Doctor. It runs in your browser, never uploads the file, and can show structural issues and safe fixes.
Why we believe this
- modelcontextprotocol.io/specification/2026-07-28/basic/index#error-codesOfficial documentation · checked Oct 23, 2026 · documented
The 2026-07-28 MCP specification defines JSON-RPC and MCP-specific error codes.