Set up backdesk in Claude Code and Claude Desktop
Add backdesk as a stdio MCP server. Claude Code uses claude mcp add or a .mcp.json file. Claude Desktop uses claude_desktop_config.json. The MCP protocol was verified with the official MCP C# SDK client. A run with the real Claude Code client is pending, because the Claude CLI sign-in had expired on the test machine.
Claude Code
claude mcp add --transport stdio backdesk -- <path-to>\backdesk.exe mcp
Or put this in a project .mcp.json (no type means stdio):
{
"mcpServers": {
"backdesk": {
"type": "stdio",
"command": "<path-to>\\backdesk.exe",
"args": ["mcp"]
}
}
}
Scopes are local (default), project (.mcp.json) and user. Source: Claude Code MCP docs. <path-to> is the folder that holds backdesk.exe (install).
Claude Desktop
Edit %APPDATA%\Claude\claude_desktop_config.json, then restart Claude Desktop fully:
{
"mcpServers": {
"backdesk": {
"command": "<path-to>\\backdesk.exe",
"args": ["mcp"]
}
}
}
Paths must be absolute. Logs are in %APPDATA%\Claude\logs (mcp.log and mcp-server-backdesk.log). Source: MCP: connect to local servers.
When Claude Closes the Connection
Claude Code closes standard input and ends the process tree if it is still running 300 ms later (source: the Claude Code MCP docs above). MCP stdio servers are expected to exit when input closes (MCP stdio transport). backdesk's daemon is a separate process. When a client disconnects mid-drag, backdesk releases the button and frees the lease. A passing recovery test covers this. See recovery.
Not Verified
Listing tools and running a workflow from the real Claude Code or Claude Desktop client has not been done. Do not read this page as a compatibility claim for those clients. See limitations.