Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4 Claude: Workarround while Problems installing and using exa-mcp-server #4

Open
gniiial opened this issue Dec 12, 2024 · 1 comment

Comments

@gniiial
Copy link

gniiial commented Dec 12, 2024

If you may have trouble (WIN only):

Clone the repository:
clone (I did it with the desktop app!)
use the link to the reposity
https://github.com/exa-labs/exa-mcp-server
set YOUR personal path where to find it

open cmd as administrator
cd PATH/TO/YOUR/git-clone/

Follow: Installation instructions

Install dependencies:
npm install --save axios dotenv

Build the project:
npm run build

Create a global link (this makes the server executable from anywhere):
npm link

Create in a folder: C:\Users\YOUR-USERNAME\AppData\Roaming\npm\node_modules@modelcontextprotocol
exa-server

in there create a folder:
dist

NOW go into PATH/TO/YOUR/git-clone/build and copy:
index.js
types.js

paste into:
C:\Users\YOUR-USERNAME\AppData\Roaming\npm\node_modules@modelcontextprotocol\exa-server\dist

NOW go into PATH/TO/YOUR/git-clone/ and copy:

node_modules (the whole folder)
package.json
README.md

paste into:
C:\Users\YOUR-USERNAME\AppData\Roaming\npm\node_modules@modelcontextprotocol\exa-server

then open C:\Users\YOUR-USERNAME\AppData\Roaming\Claude
open: claude_desktop_config.json

fill in the following lines:
"exa-mcp-server": {
"command": "node",
"args": [
"C:/Users/YOUR-USERNAME/AppData/Roaming/npm/node_modules/@modelcontextprotocol/exa-server/dist/index.js"
],
"env": {
"YOUR-API-KEY"
}

},

What did we do?! We not just copied and cloned something. We also seperated all necessary files and structured them FOR Claude in the order the other MCP's are arranged. Then we can match exactly the acctual workaround for using the MCP's.

I hope it helps.

@tyu1996
Copy link

tyu1996 commented Dec 13, 2024

Thanks, it worked with a minor edit on args:

"args": ["C:\\Users\\YOUR-USERNAME\\AppData\\Roaming\\npm\\node_modules@modelcontextprotocol\\exa-server\\dist\\index.js"]

On Windows, since the file path is using backslash '\', so it needs to be escaped by adding another '\'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants