# Connect Cursor to Stasho

Cursor connects to Stasho with a key in its `mcp.json` file. Cursor's documentation now calls the app Grok Build; the file and its place are the same.

## How do I connect Cursor?

1. In Stasho, open the library menu, choose **Connect AI apps**, and make a new key, for example named `cursor`. Choose **contributor** so Cursor can save memories.
2. Open the file `~/.cursor/mcp.json` in your home folder (make it if it is not there). This file is for every project you open.
3. Add Stasho under `mcpServers`, with your key after `Bearer`:

   ```json
   {
     "mcpServers": {
       "stasho": {
         "url": "https://stasho.page/mcp",
         "headers": {
           "Authorization": "Bearer sto_<your key>"
         }
       }
     }
   }
   ```

4. Save the file. Cursor shows Stasho in its list of MCP servers.
5. Ask in a chat: "What is in my Stasho library?"

## Where should the key live?

Keep the key in the file in your home folder, not in a project's `.cursor/mcp.json`: a project file can end up in a shared repository. If a key leaks, revoke it in Stasho's **Connect AI apps** and make a new one.

Cursor's own reference for `mcp.json` is [Model context protocol (MCP)](https://docs.grok.com/build/agents-window/mcp) (checked 2026-12-06).
