Claude Desktop MCP To Claude Agent

Bridges Claude Code with the MCP Desktop client via a local stdio server to perform coding tasks.
  • javascript

0

GitHub Stars

javascript

Language

6 months ago

First Indexed

3 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "sobieskicodes-claude-desktop-mcp-to-claude-agent": {
      "command": "node",
      "args": [
        "/path/to/your/mcp-claude-bridge/server.js"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "your_api_key_here"
      }
    }
  }
}

You set up a Claude Code Bridge MCP Server to delegate coding tasks from your MCP Desktop client to Claude Code. This bridge runs locally, connects through a stdio process, and enables you to run Claude Code-powered actions from your desktop interface while keeping all computations local to your environment.

How to use

Use the Claude Code Bridge MCP Server from your MCP Desktop client to execute coding tasks with Claude Code. The bridge runs as a local stdio service that you start alongside your project. In the Desktop client, configure a bridge entry that points to the local node process and the server script, and supply your Anthropic API key as an environment variable. You can then issue tasks such as creating projects, listing or reading files, running commands, or instructing Claude Code to generate or modify code within your desktop session. Start tasks by referring to the bridge in the Desktop interface, and the MCP server will handle the heavy lifting via Claude Code while you stay in the familiar Desktop workflow.

How to install

Prerequisites you need before installing the bridge are Docker, Docker Compose, the Claude Code CLI, and an Anthropic API key.

Create a project directory for the bridge and move into it.

Create the required files for the bridge: Dockerfile, package.json, server.js, and docker-compose.yml.

Set your Anthropic API key as an environment variable in your shell.

Build and run the bridge using Docker Compose.

Configuration and test

Configure the Claude Desktop MCP settings to point at the local bridge. You provide the command to run Node with the server script and set the environment variable for the API key.

{
  "mcpServers": {
    "claude_code_bridge": {
      "command": "node",
      "args": ["/path/to/your/mcp-claude-bridge/server.js"],
      "env": {
        "ANTHROPIC_API_KEY": "your_api_key_here"
      }
    }
  }
}

Test with a sample task

After connecting, you can issue a request like asking Claude Desktop to create a simple coding task using the bridge’s tooling. For example, you could have Claude Code generate or modify a small project, then use the Desktop interface to view results and files. This validates that the bridge correctly delegates tasks to Claude Code while maintaining control from your Desktop environment.

Available tools

claude_code_task

Execute coding tasks through Claude Code to generate, modify, or analyze code according to your instructions.

create_project

Create new project directories to organize code tasks and outputs.

list_files

List files within a project to understand the current structure.

read_file

Read the contents of a file in a project to review results.

run_command

Execute shell commands from the MCP Desktop interface.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational