How to add an MCP server to Cursor or VS Code
Short answerAdd a remote MCP server to Cursor or VS Code: where the config lives, how the OAuth sign-in works, and how to limit access before you try it.
Written with AI assistance

In Cursor, add the server's URL to mcp.json or the Customize screen. In VS Code, run MCP: Add Server, choose HTTP and paste the URL. With an OAuth server such as DeskWink, the server then opens its own sign-in page in your browser, so no key goes into the editor.
What you need first
You need a remote MCP server with a URL. This guide uses DeskWink, whose address is https://mcp.deskwink.com/mcp, because that is the server we can describe from our own docs. The editor steps are the same for any remote server that signs you in with OAuth.
For DeskWink you also need the DeskWink program running on the computer whose files you want to use, as the getting started guide explains. If any of these words are new, read what a remote MCP server is first.
VS Code needs its AI features turned on, a project folder open and Copilot selected as the session target. What your plan or organisation allows in either editor is decided by the editor's maker, not by DeskWink.
How the two editors connect to a server
An editor is an MCP host: it opens one connection to each server you add. It can start a local program and talk to it directly, or connect to a remote server over a URL.

| Kind of server | How the editor connects | Watch out for |
|---|---|---|
| Remote (HTTP) | Connects to a URL. If the server uses OAuth, you sign in in your browser. | The server's owner decides what it can do, so check its permissions. |
| Local (command) | Starts a program on your computer and talks to it. | The program runs with your permissions. Check who publishes it and what command starts it. |
Cursor's documentation lists three transports: stdio for local servers, and SSE and Streamable HTTP for local or remote ones. VS Code offers an HTTP option and a command option when you add a server. The local MCP vs remote MCP comparison explains when each fits.
Add a remote MCP server to Cursor
-
Open Customize in Cursor's sidebar, where you can add, enable and disable MCP servers. Or edit the file directly:
.cursor/mcp.jsonin a project, or~/.cursor/mcp.jsonfor every project. -
Add the server with its URL:
{ "mcpServers": { "deskwink": { "url": "https://mcp.deskwink.com/mcp" } } } -
Next to DeskWink in the server list, choose the option to sign in. Your browser opens DeskWink's page: sign in, choose what Cursor may use and click Allow.
-
Reload Cursor if the server does not appear, then check that its tools are listed.
Do not add headers or an auth block for DeskWink. Cursor's documentation describes OAuth with PKCE for remote servers, and it registers itself with the server when the server allows that, so there is no client secret to paste.
Add a remote MCP server to VS Code
- Open the Command Palette (Ctrl+Shift+P, or Shift+Cmd+P on a Mac), run Chat: Open Customizations, choose MCP Servers and select Add Server (+) in the User group. The command MCP: Add Server starts the same guided setup.
- Choose HTTP (HTTP or Server-Sent Events) and paste
https://mcp.deskwink.com/mcpas the server endpoint. - Enter
deskwinkas the server ID. - Choose Global, then Copilot Global. This saves the server in your personal configuration, shared across your workspaces. VS Code can also offer a workspace
.mcp.jsonfile for sharing with a team, which you do not want for a server that is only yours. - Review any trust request before you accept it. When VS Code asks you to sign in (an Authenticate action may appear), your browser opens DeskWink's page: sign in, choose what VS Code may use and click Allow.
The entry goes into ~/.copilot/mcp-config.json, or into $COPILOT_HOME/mcp-config.json if you have set COPILOT_HOME, with mcpServers as the top-level key:
{
"mcpServers": {
"deskwink": {
"type": "http",
"url": "https://mcp.deskwink.com/mcp",
"tools": ["*"]
}
}
}
The tools field lists which of the server's tools the AI may use, and ["*"] means all of them. VS Code's reference says tool approvals still apply.
VS Code's documentation also describes an older Local setup, with a top-level servers key in .vscode/mcp.json. It calls that setup deprecated and says it will be removed in February 2027, so use the steps above for a new server. To manage a server later, use Chat: Open Customizations and then MCP Servers, or run MCP: List Servers.
Test it with something harmless
DeskWink starts with everything on, so limit it before the first test if you want the AI to see less. On the computer where DeskWink runs:
deskwink access read folders
deskwink folders add ~/Documents/notes
deskwink approvals level 0
The first command limits DeskWink to folders you share. The second shares one folder, read-only. The third makes every change and command wait for your approval. The filesystem MCP guide explains how to choose the folder.
Then open the editor's chat and ask something that only reads: "Use DeskWink to list the files in my notes folder." You should see the editor ask before it runs the tool, and DeskWink's Activity page should show the request.
What is different about an editor
An editor puts an AI next to your code, your terminal and your repositories. That changes a few things.
- Repository text is input to the AI. A README, an issue, a dependency or a downloaded file can contain instructions aimed at the AI. Keep tool approval on at first, and read the MCP security checklist for how prompt injection works.
- A project's config travels with the project. Cursor's
.cursor/mcp.jsonlives in the project folder, and VS Code's documentation describes a workspace.mcp.jsonas a way to share server definitions with your team. Keep servers that are only yours in the global or personal file, and read any server entry in a project you did not write before you start it. - Tool approval settings differ. Cursor asks before it uses an MCP tool by default, and in its Auto-review mode, tools you have allowlisted run straight away. VS Code asks you to review tool approval requests and approve only what you understand.
- Secrets stay out of the file. Cursor's documentation suggests environment variables for secrets, and VS Code's says not to store literal credentials in shared files. DeskWink needs none because you sign in with OAuth, as OAuth for AI connectors, explained simply describes.
- Commands run as you. If you leave DeskWink's commands on, they can reach whatever your account can. Switch commands off, or set approval level 0 so each command waits for you.
If it does not work
- The server does not appear or start. In Cursor, check that the JSON is valid and the URL exact, then reload the editor. In VS Code, run MCP: List Servers to open the server controls, or look under Chat: Open Customizations and then MCP Servers.
- "The computer is offline". Run
deskwink launchon the computer. - VS Code does not offer Copilot Global. Microsoft's page says to check the Copilot requirements for your setup.
- VS Code asks for a client ID. DeskWink has none to give. Write to [email protected] with your VS Code version.
- You cannot add a server at all. An administrator can restrict which servers an editor may use. Cursor has a team MCP allowlist, and VS Code's availability can depend on organisation policy.
Next step
The short versions of these steps are in the Cursor guide and the VS Code guide, and Troubleshooting covers the usual errors. For the same setup in a chat app, see how to add an MCP server to ChatGPT and how to add an MCP server to Claude. DeskWink's plans are on the pricing page.
Steps follow Cursor's MCP documentation, Microsoft's VS Code MCP page and its MCP configuration reference, read on 15 November 2026. Menus, settings and file formats change, so check the vendor's page if yours looks different. DeskWink is not made or endorsed by Cursor or Microsoft.
Frequently asked questions
Where does Cursor keep its MCP configuration?
In a file called mcp.json: .cursor/mcp.json inside a project, or ~/.cursor/mcp.json in your home folder for every project. You can also add and switch servers on and off from Customize in the sidebar.
Can Cursor or VS Code use a local MCP server instead?
Yes. Both can start a local program on your computer and talk to it directly. That program runs with your permissions, so review who publishes it and what command starts it. A remote server is reached by a URL instead.
Do I need an API key or token to add DeskWink?
No. DeskWink uses an OAuth sign-in on its own page, so you do not add headers or an auth block to the config. Keep tokens and passwords out of any file you commit.
Does adding DeskWink give the AI in my editor my whole computer?
A new install covers the whole computer, and you can limit it to folders you choose in the computer's settings. Do that before the first test if you want the AI to see less.
Does DeskWink change Cursor's or VS Code's plans or limits?
No. DeskWink does not change any AI product's plan or limits. What your plan or your organisation allows is set by Cursor, Microsoft and GitHub, and by your administrator.
Let the AI you already use work with your own files, with the limits you choose in your DeskWink settings.