mcp-server-typescript icon indicating copy to clipboard operation
mcp-server-typescript copied to clipboard

npm install -g node-fetch

Open lalainarahajason opened this issue 1 year ago • 1 comments

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)

lalainarahajason avatar Jun 10 '25 14:06 lalainarahajason

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

dfsvlado avatar Jun 26 '25 13:06 dfsvlado