when I create MCP server trigger, I can connect using postman , But I send meesage, it response error 'Invalid message: { “type”: “message”, “message”: “Hello MCP!” } ’
Hi there!
That Invalid message error is just MCP’s way of saying, “I was expecting a different JSON format.”
Every request has to be wrapped in a tiny “envelope” called JSON-RPC.
Here’s the minimum it needs:
json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}
If you post something simpler like
json
{ "type":"message", "message":"Hello MCP!" }
MCP doesn’t recognise it and shows the error you saw.
Postmat
- URL → the
/messages
endpoint you see in n8n. - Method → POST.
- Header →
Content-Type: application/json
. - Body → use the JSON-RPC envelope (example above).
Send it and you should get a clean reply instead of the error.
- Documentation: Transports - Model Context Protocol
let me know.