Settings for plugins from cursor marketplace?

I installed Context7 from Cursor plugins marketplace (via settings in IDE).

Now I need to set up the api key for context7, how do I do this?

The only way I see is going to settings, Plugins, Installed, click on the Context7 installed plugin, then click on MCP and it opens the file at ~/.cursor/plugins/cache/cursor-public/context7-plugin/58a36cea87ea887e7bb4850409f1f9ea58dae5e5/.mcp.json which seems to be some kind of a cached file

Is it safe to edit? Won’t it be updated automatically and erased?

Is it the way it was designed?

Is there any “normal” way to set env/params to an mcp of official plugins?

Hey, good request. Right now there’s no built-in UI to set environment variables for MCP servers that come with Marketplace plugins.

Editing the cached .mcp.json in ~/.cursor/plugins/cache/... can work, but yes, plugin updates may overwrite that file, so it’s not reliable long term.

A more stable workaround is to add the same MCP server manually to your global ~/.cursor/mcp.json and set the env field:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"],
      "env": {
        "CONTEXT7_API_KEY": "your-key-here"
      }
    }
  }
}

This way you control the config directly and it won’t get overwritten. You may also want to disable the plugin’s MCP server in Cursor: Settings > MCP, so you don’t run two copies at the same time.

Let me know if this workaround works for you.