How to use the MCP servers the SSE URL

HI guys do you have any idea how to use this new feature?

2 Likes

4 Likes

Same here, the screenshot seems okay but not enough info and explanation on how it works and where to find good commands and servers

Can you provide more specific details how you do that? So that we can start brainstorming too?

Hey, we have added a documentation page for this now, to learn more here:

Is there a way to provide environmental variables to MCP Servers.

Iā€™m trying to use the Github one but it requires a personal access token

GITHUB_PERSONAL_ACCESS_TOKEN=TOKEN_HERE npx -y @modelcontextprotocol/server-github

This does not work

To answer my own question you have to create a shell wrapper. I asked Cursor to write it for me.

#!/bin/bash
export GITHUB_PERSONAL_ACCESS_TOKEN=TOKEN_HERE
npx -y @modelcontextprotocol/server-github

Save it as github-mcp.sh and chmod +x it

3 Likes

I found the when you add env before the cmd, then i works.
like this :

env TAVILY_API_KEY=your-api-key npx -y tavily-mcp@0.1.3

I was using this trick (env before cmd) but it seems to not work any longer in 0.46 :frowning: