You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up mcp-replicate to work as an MCP server in Cursor, and I'm running into a persistent "Client Closed" error. I've followed the setup guides and tried a bunch of things, but I'm still stuck, and hoping you can point me in the right direction! I appreciate this was made with Claude tools in mind but hoping I can get it working.
I add the mcp-replicate server in Cursor settings, but it always shows "Client Closed" and "No tools available." It seems like Cursor can start the server, but then the connection gets dropped right away.
I've installed mcp-replicate globally and locally in my project (and uninstalled/reinstalled multiple times to be sure!). I've used npm install -g mcp-replicate and npm install mcp-replicate in my project folder.
I've spent a lot of time in the terminal trying to run mcp-replicate directly in different ways:
Just mcp-replicate
Using npx mcp-replicate
Using the full path to the global install (/opt/homebrew/bin/mcp-replicate)
Using the path to the local install (./node_modules/.bin/mcp-replicate)
I've tried setting my Replicate API token as an environment variable (REPLICATE_API_TOKEN) in the terminal before running these commands, and also tried putting the token directly in the command line.
At first, it seemed like the mcp-replicate command wasn't doing anything in the terminal (just a new line), but then I realized it was actually running in the background (weird!).
Now, I can see the mcp-replicate executable in my project's node_modules/.bin/ folder.
In Cursor, I've added an MCP server with "Type: command" and tried all sorts of things for the "Command" setting, including:
* mcp-replicate
* npx mcp-replicate
* /opt/homebrew/bin/mcp-replicate
* ./node_modules/.bin/mcp-replicate
* node node_modules/mcp-replicate/build/index.js
* I've made sure the "Server name" is replicate.
I even tried sending direct commands to the server in the terminal using echo and npx mcp-replicate to see if it was responding at all. It does respond, but it keeps saying "Method not found" even when I try basic things like searchModels.
Cursor still gives me the "Client Closed" error for mcp-replicate.
The mcp-replicate server seems to be running and talking back in the terminal (at least with those direct commands), but it doesn't like the method names I'm using (or maybe I'm doing something wrong?).
I've got Node.js v23.7.0 installed.
I'm really scratching my head here! Could you give me some advice on:
What should the "Command" be in Cursor settings when I've installed mcp-replicate locally in my project? Maybe I'm just missing the right path or command.
Are there any known issues with Cursor and mcp-replicate that I should know about?
Does the "Method not found" error mean I'm setting up the server wrong, or sending bad requests?
Any other ideas for things I can try to get this working?
Any help you can offer would be amazing! Thanks so much for your time.
The text was updated successfully, but these errors were encountered:
Hi there!
I'm trying to set up
mcp-replicate
to work as an MCP server in Cursor, and I'm running into a persistent "Client Closed" error. I've followed the setup guides and tried a bunch of things, but I'm still stuck, and hoping you can point me in the right direction! I appreciate this was made with Claude tools in mind but hoping I can get it working.I add the
mcp-replicate
server in Cursor settings, but it always shows "Client Closed" and "No tools available." It seems like Cursor can start the server, but then the connection gets dropped right away.I've installed
mcp-replicate
globally and locally in my project (and uninstalled/reinstalled multiple times to be sure!). I've usednpm install -g mcp-replicate
andnpm install mcp-replicate
in my project folder.I've spent a lot of time in the terminal trying to run
mcp-replicate
directly in different ways:mcp-replicate
npx mcp-replicate
/opt/homebrew/bin/mcp-replicate
)./node_modules/.bin/mcp-replicate
)REPLICATE_API_TOKEN
) in the terminal before running these commands, and also tried putting the token directly in the command line.mcp-replicate
command wasn't doing anything in the terminal (just a new line), but then I realized it was actually running in the background (weird!).mcp-replicate
executable in my project'snode_modules/.bin/
folder.In Cursor, I've added an MCP server with "Type: command" and tried all sorts of things for the "Command" setting, including:
*
mcp-replicate
*
npx mcp-replicate
*
/opt/homebrew/bin/mcp-replicate
*
./node_modules/.bin/mcp-replicate
*
node node_modules/mcp-replicate/build/index.js
* I've made sure the "Server name" is
replicate
.I even tried sending direct commands to the server in the terminal using
echo
andnpx mcp-replicate
to see if it was responding at all. It does respond, but it keeps saying "Method not found" even when I try basic things likesearchModels
.Cursor still gives me the "Client Closed" error for
mcp-replicate
.The
mcp-replicate
server seems to be running and talking back in the terminal (at least with those direct commands), but it doesn't like the method names I'm using (or maybe I'm doing something wrong?).I've got Node.js v23.7.0 installed.
I'm really scratching my head here! Could you give me some advice on:
mcp-replicate
locally in my project? Maybe I'm just missing the right path or command.mcp-replicate
that I should know about?Any help you can offer would be amazing! Thanks so much for your time.
The text was updated successfully, but these errors were encountered: