npm install -g node-fetch
Hello,
Successfully installed and configured dataforseo mcp server with claude desktop and only selected the serp_organic_live_advanced, now entering prompt like : list 10 first keywords of "destinations madagascar en famille", i get back :
{
depth: 10,
keyword: destinations madagascar en famille,
language_code: fr,
location_name: France,
search_engine: google
}
Error: fetch is not defined
v16.20.2 -> v22.14.0 system default -> 22 (-> v22.14.0) iojs -> N/A (default) unstable -> N/A (default) node -> stable (-> v22.14.0) (default) stable -> 22.14 (-> v22.14.0) (default)
Hi, thanks for reaching out and providing the details!
The error message Error: fetch is not defined typically indicates that the Node.js environment doesn’t have the fetch API available globally. While fetch is available by default in modern browsers, it was only added natively to Node.js starting in v18+.
Since you're now on Node.js v22.14.0, it should support fetch natively. However, if the script was started using an older version or if the environment isn't cleanly using the right version, that might explain the issue