I’m having trouble with the MCP server memory in n8n. When I try to use the add_observation node tool, I get this error:
Failed to execute operation: Failed to execute tool 'add_observations': MCP error -32603: Cannot read properties of undefined (reading 'includes')
I tried using it as a node instead of a tool, but the same error popped up. I’m not sure if there’s something wrong with my JSON, but it looks okay to me.
Has anyone else run into this issue? Any ideas on how to fix it? I’m pretty new to this, so any help would be awesome. Thanks!
I’ve dealt with this MCP server memory error before. It’s often related to data inconsistencies or missing properties in the input. First, double-check your JSON structure and ensure all required fields are present. Log your data at each step to identify where the undefined property occurs.
If that doesn’t work, try updating your n8n installation. Newer versions sometimes fix these issues. Also, verify your node connections - make sure data is flowing correctly between nodes and no essential information is being dropped.
As a last resort, you might need to increase your server’s memory allocation if you’re dealing with large datasets. This can sometimes resolve unexpected errors in data processing.
I’ve encountered a similar issue with the MCP server memory in n8n. From my experience, this error often stems from inconsistencies in data structures or undefined variables. Have you verified that all the required fields in your input data are present and correctly formatted? It might be worth logging the data at each step to pinpoint where the ‘undefined’ property is occurring.
Another approach that worked for me was updating n8n to the latest version. Sometimes, these errors are resolved in newer releases. If you’re running an older version, consider upgrading.
Lastly, check your node connections. Ensure that the data flow between nodes is correct and that no essential information is being dropped along the way. This error can sometimes occur when expected data isn’t being passed properly between nodes.
hey noah, i’ve seen that error before. it’s usually cuz the MCP server memory isn’t set up right. try clearing ur browser cache and restarting n8n. if that doesn’t work, double-check ur JSON formatting - sometimes tiny errors can cause big probs. good luck!