Connecting MCP Servers in Cherry Studio
Summary
MCP is a way to give Cherry Studio tools: terminal, files, browser. Here is a step-by-step setup guide for servers, connection verification, and troubleshooting common errors.
What is MCP and Why Does an Assistant Need It
A typical chatbot only writes text. With MCP, an assistant starts acting: reading files from disk, running commands in the terminal, opening a browser and clicking on pages, searching the internet.
MCP stands for Model Context Protocol—an open protocol that describes how a model invokes external tools. It's like USB for AI assistants: one standard, many devices.
In Cherry Studio, MCP servers are connected at the assistant level. After setup, the assistant sees a list of available tools and decides when and which to call.
What You Need in Advance
Most MCP servers require Node.js because they run via npx. Check if it's installed:
node --version
npx --version
If npx is not found—install Node.js from the official site (LTS version) and restart Cherry Studio.
Where to Configure Servers
- Open Cherry Studio.
- Go to Settings (Settings).
- Find the MCP Servers (MCP Servers) section.
- Click Add Server (Add Server).
Next steps depend on which server you are connecting. Below are three most useful ones.
Server 1. Terminal and Files (Desktop Commander)
Gives the assistant access to the file system and command line: read and write files, run Python, search folders.
Fields for creating a server:
Name: desktop-commander
Command: cmd
Arguments: /c npx -y @wonderwhy-er/desktop-commander
Explanation:
cmd—wrapper through which the command is run on Windows;/c—tell cmd to "execute and exit";npx -y—download the package without extra questions.
Why cmd /c
GUI applications on Windows do not always see npx directly due to PATH variable inheritance issues. Wrapping in cmd /c solves the problem: the launch goes through the command shell, which knows the PATH exactly.
Server 2. Browser (Playwright)
Gives the assistant a real browser: open pages, log in, click, fill forms, wait for loading. Useful for admin panels without a convenient API.
Name: playwright
Command: cmd
Arguments: /c npx -y @playwright/mcp@latest --user-data-dir="C:\Users\YOUR_NAME\.playwright-mcp" --output-dir="C:\Users\YOUR_NAME\.playwright-mcp\output"
Two flags are mandatory:
--user-data-dir—where to store the browser profile;--output-dir—where to save screenshots and snapshots.
Do not set the working directory in Program Files
By default, the working directory of Playwright may coincide with the Cherry Studio installation folder (C:\Program Files\...), where Windows does not allow writing without administrator rights. Explicitly specifying --user-data-dir and --output-dir in a user folder solves the problem without running as administrator.
Server 3. Web Search (Fetch)
Gives the assistant access to the internet: get pages by URL. Suitable when a simple fetch is needed without a heavy browser.
Name: fetch
Command: cmd
Arguments: /c npx -y @modelcontextprotocol/server-fetch
This server simply returns the page content. For tasks like "find and read," it's sufficient; a browser is needed only for dynamic sites with clicks and forms.
Checking the Connection
- Create a new assistant.
- In its settings, find the MCP block and enable the required servers.
- Open the chat and write: "List the tools you have access to."
If the assistant lists the servers—the connection works. If not—see the next section.
Typical Errors and Their Causes
1. Server does not start, status is "Error"
Almost always this is npx not being visible from GUI. Check that the command runs from a regular terminal and that the arguments start with cmd /c.
2. Assistant does not use the tool
The tool must be enabled in the assistant settings, not just added globally. Global addition is "tool installed," and enabling is "tool allowed for this assistant."
3. Cyrillic in terminal responses is garbled
Windows terminal by default may return ???? instead of Russian letters. Fixed by explicitly setting the encoding at the beginning of the command:
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
4. Browser requires authentication on each launch
Means the browser profile is not being saved. Ensure --user-data-dir points to a permanent folder, not a temporary one.
Security
MCP gives the assistant real permissions: the terminal can delete files, the browser can submit forms. A few rules:
- connect only servers you trust;
- don't give terminal access where web search is enough;
- store keys and passwords in a separate folder (e.g.,
.secrets/) and don't ask the assistant to output them in the chat; - if the service has an official API—use it instead of browser automation: it's more reliable and secure.