# Connect Contextli to Claude Code, Cursor or VS Code

Source: https://help.contextli.com/articles/connect-contextli-to-claude-code-cursor-and-vs-code

Add `https://mcp.contextli.com/mcp` as an MCP server in Claude Code, Cursor or VS Code, then sign in with your Contextli email and 6-digit code. Your coding assistant can then search and read your Contextli notes, for example the bug reports or ideas you dictated.

## Claude Code

1. Run this in your terminal:

   ```
   claude mcp add --transport http contextli https://mcp.contextli.com/mcp
   ```

2. Open Claude Code and type `/mcp`.
3. Choose **contextli** and sign in with your Contextli email and the 6-digit code.

## Cursor

1. Open Cursor Settings, then **Tools & Integrations** (just **Tools** on the Free plan), and click **New MCP Server**.
2. In the `mcp.json` that opens, add an entry under `"mcpServers"` named `contextli` with its `"url"` set to the MCP URL. No client ID or secret is needed:

   ```json
   {
     "mcpServers": {
       "contextli": { "url": "https://mcp.contextli.com/mcp" }
     }
   }
   ```

3. Save. Cursor connects and shows a **Needs login** prompt next to the server.
4. Click **Needs login** and finish the browser sign-in with your Contextli email and 6-digit code.

## VS Code (Copilot agent mode)

1. Make sure VS Code is version 1.102 or newer with the GitHub Copilot extension signed in.
2. Open the Command Palette and run **MCP: Add Server**, choose **HTTP**, then paste `https://mcp.contextli.com/mcp`.
3. Name it `contextli`, pick **Global** or **Workspace**, and confirm the trust prompt.
4. Complete the browser sign-in with your Contextli email and 6-digit code, then enable Contextli in the Agent mode **Tools** picker.

You can also find these steps in the desktop app: sidebar **Pull notes in Claude** > **AI Integrations** > **Connect** on the tool you use.

## What you can ask

- "Find my notes about the checkout bug from this week and summarise them."
- "Review my product ideas from the last 7 days and turn them into a triage list."
- "Save this plan as a note and label it launch."

The connector can read and search notes, list contexts and labels, save a new note and add labels. It never edits a note's text or deletes anything.

## Troubleshooting

- **Sign-in window does not open:** remove the server and add it again, then retry the sign-in.
- **No notes found:** make sure you signed in with the same email you use in the Contextli app.
- Still stuck? Email support@contextli.com.

## Related articles

- [Use your notes in Claude, ChatGPT and Perplexity](/articles/connect-contextli-to-claude-chatgpt-and-perplexity)
- [Organize notes with labels](/articles/organize-notes-with-labels)
- [Find, copy and retranscribe your notes](/articles/find-and-manage-your-notes)
