OmniscioGuidesCould not import a server from Claude Desktop
Claude Code: could not import a server from Claude Desktop
This page is the per-server refusal the import prints. The command itself, the other ways to add a server, and what each scope reaches are on how to add an MCP server to Claude Code.
Last checked against Anthropic's documentation on November 24, 2026. By the Omniscio team. Updated .
What is the exact message?
Could not import my server: Invalid name my server. Names can only contain letters, numbers, hyphens, and underscores.Everything after the colon is the reason. The name check is the common one; Anthropic also lists a configuration that fails validation and a server blocked by your organization's MCP policy.
What does it mean?
claude mcp add-from-claude-desktop copies the servers you pick in its dialog into Claude Code. Servers added through claude mcp commands may only use letters, numbers, hyphens and underscores in their names. Claude Desktop applies no such rule, so a server called my server or one with a period in its name cannot be carried across as it stands.
The import is per server. It still adds the other servers you selected, and prints one line for each one it skipped. Before v2.1.205 the first failure stopped the import, which is why a single dropped server used to hide the rest.
The dialog is interactive and the feature is documented for macOS and Windows Subsystem for Linux. The standalone CLI does not read claude_desktop_config.json on its own, so this command is the road in.
How do I fix it?
- Rename the server in
claude_desktop_config.json, Claude Desktop's own configuration file, to letters, numbers, hyphens and underscores, then runclaude mcp add-from-claude-desktopagain. - Or add that one server directly with
claude mcp addorclaude mcp add-json, under a name the command accepts, with the same connection details. - Check what arrived.
claude mcp listshows the servers Claude Code now has, including the ones the import did add. - If the reason is not the name, read the reason after the colon. A configuration that fails validation has to be corrected in Claude Desktop's file, and a server your organization blocks stays blocked until the policy changes.
If a name already exists, the import keeps both: the newer one gets a numerical suffix such as server_1, so a surprising name in the list is not a failure.
Adding a server without the import, with its scope, transport and authentication, is on adding an MCP server to Claude Code. A server that imports but will not connect is a different problem, covered on Claude Code MCP errors.
How do I know it is fixed?
- Running the import again prints no line for that server.
claude mcp listshows it, and a session started in that project can use its tools.
Where these answers come from
- Anthropic's error reference, Could not import a server from Claude Desktop, read November 24, 2026: the message, the name rule, the other reasons, the one-line-per-server behaviour, the v2.1.205 note and both fix roads.
- Connect Claude Code to tools via MCP, Import MCP servers from Claude Desktop, read the same day, for the command, the name restriction, the platforms it runs on, and the numeric suffix for a duplicate name.
- The desktop application page, for the note that the standalone CLI does not read
claude_desktop_config.json.
Common questions
Did the import stop halfway?
No. The command still imports the other servers you selected and prints one line for each server it could not add. Before v2.1.205 the first failure stopped the whole import, which is why older advice says to run it again and see what happens.
Which characters are allowed in a server name?
Letters, numbers, hyphens and underscores, for servers added through claude mcp. Claude Desktop does not apply that restriction, so a name with a space or a period imports nowhere until you rename it in Claude Desktop configuration.
Does the import work on Windows?
Not on native Windows. Inside Windows Subsystem for Linux, yes: Anthropic documents the feature for macOS and WSL only, and the standalone CLI does not read claude_desktop_config.json on its own.
When a server arrives without its tools
A skipped import shows up later as a session without the tools it expected, and nothing in the transcript says why until someone asks for one.
Omniscio, the desktop app we make for running many Claude Code sessions at once, shows each session's status in the sidebar and collects the ones that need a decision from you in an inbox at the top of it. The features page covers the rest of the app, and the download page has the installers.