Tandem MCP: Run and Manage Claude Code Sessions from Claude.ai Chat

Tandem is an open-source MCP (Model Context Protocol) server that connects Claude.ai browser chat directly to local Claude Code CLI sessions. It eliminates the copy-paste cycle between brainstorming in chat and executing code on the terminal.
How It Works
Tandem operates as a bidirectional loop:
- You work in Claude.ai chat as usual — brainstorm, write specs, plan architecture.
- When ready, Tandem can start a new Claude Code session or resume an existing one on your local machine.
- Claude Code executes tasks and sends output back into the Claude.ai browser chat.
- Claude.ai can then respond with further instructions back down through the CLI, creating an autonomous loop.
The key insight: Claude.ai manages Claude Code, not you. You stay in the browser IDE for brainstorming and the actual work happens automatically on your machine.
Installation & Usage
Tandem is fully open source and available on GitHub. To get started:
git clone https://github.com/Maxmedawar/tandem
cd tandem
# Follow the README for MCP configuration
# Add the MCP server to your Claude.ai settings
Once configured, Tandem registers as an MCP tool within Claude.ai. You can invoke it with natural language prompts like Run a Claude Code session to implement the spec above.
Why It Matters
No more manual context transfer. No switching windows to start a session. No copy-paste errors. The chat remains your single point of control while Claude Code does the heavy lifting on your local environment — file system, shell access, tools.
This is especially useful for developers who want to:
- Iterate on specs and then execute without leaving the chat.
- Resume interrupted work directly from a browser session.
- Chain brainstorming and coding in an automated loop.
Check out the repository for setup details, configuration examples, and contribution guidelines.
📖 Read the full source: r/ClaudeAI
👀 See Also

AutoDream: 11-hook memory system for Claude Code with safety features
AutoDream is an open-source tool that adds project memory persistence and command safety to Claude Code. It uses 11 hooks across 6 events to inject context, block dangerous commands, and survive the /compact operation.

OpenGauge: Open-source tool for tracking LLM agent costs locally
OpenGauge is an open-source tool that monitors API calls from LLM agents like OpenClaw, logging token usage, costs, and latency to a local SQLite database. It includes proxy mode for automatic logging, detailed cost statistics, and circuit breaker functionality to prevent runaway loops.

Coasts: Containerized Hosts for Running Multiple Localhost Environments
Coasts is a Docker-in-Docker solution that solves the problem of running multiple localhost environments simultaneously, handling port conflicts, secrets, and volume topologies without requiring complex scripting.

depct: MCP Server Provides Claude with Live Runtime Analysis and Documentation
depct is an MCP server that instruments Node.js applications to capture runtime data, generating structured documentation with confidence levels that Claude can access before coding. The tool updates documentation automatically after Claude makes changes.