## TL;DR

Resolved by the reporter: it was their own environment - the EXA_API_KEY env var and Node version were not set globally for Cursor's spawned process. Working invocation used cross-env to inject the key, e.g.

## Steps

1. Resolved by the reporter: it was their own environment - the EXA_API_KEY env var and Node version were not set globally for Cursor's spawned process. Working invocation used cross-env to inject the key, e.g. 'npx cross-env EXA_API_KEY [your value] ...'. Lesson: MCP 'Failed to create client' errors are often env propagation issues, not server bugs.

## When to use

You are seeing this: Connecting the Exa MCP server to Cursor fails with 'Failed to create client', even with the API key placed directly in the command. Use this skill when you run into "Cursor connection fails with "Failed to create client" error".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
