PluginBench
MCP Server
Active
AGPL-3.0

io.github.btouchard/herald MCP Server

io.github.btouchard/herald

Bridge Claude Chat and Claude Code—control your workstation from your phone via MCP.

What is the io.github.btouchard/herald MCP server?

Herald is a self-hosted MCP server that bridges Claude Chat to Claude Code, enabling you to dispatch coding tasks from your phone or browser and have them execute on your workstation. It uses Anthropic's official Custom Connectors protocol to create a bidirectional link between Claude Chat and Claude Code, with Git branch isolation and async task execution.

Herald solves the friction of context-switching between Claude Chat (accessible anywhere) and Claude Code (tied to your terminal). Instead of copy-pasting or waiting until you're at your desk, you can send tasks like "refactor the auth middleware and run tests" from your phone, and Claude Code executes them on your workstation while you monitor progress remotely. The bridge is bidirectional: Claude Code can also push session context back to Herald for continuation from another device.

How to install io.github.btouchard/herald

Copy-paste configuration for popular MCP clients.

transport: http
Config generated by PluginBench — verify against the source before use.
~/.cursor/mcp.json
{
  "mcpServers": {
    "herald": {
      "url": "https://your-herald-instance.example.com/mcp"
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • start_task — Launch a Claude Code task with optional priority, timeout, session resumption, and Git branch configuration. Returns a task ID immediately.
  • check_task — Check the status and progress of a running or queued task, optionally including recent output.
  • get_result — Retrieve the full result of a completed task in summary, full, or JSON format.
  • list_tasks — List tasks with filters for status, project, and time range.
  • cancel_task — Cancel a running or queued task, optionally reverting Git changes.
  • get_diff — View Git diff for a task's branch or uncommitted changes.
  • list_projects — List configured projects with their Git status.
  • read_file — Read a file from a project with path-traversal protection.
  • herald_push — Push a Claude Code session to Herald for remote monitoring and continuation from another device.
  • get_logs — View logs and activity history.

Use cases

  • Refactor code from your phone while away from your desk, with Claude Code executing changes and running tests automatically
  • Monitor long-running tasks (code generation, test suites, deployments) from Claude Chat without polling
  • Resume a Claude Code session on your phone after starting work on your terminal, picking up context automatically
  • Control multiple projects from a single Claude Chat interface with per-project tool restrictions and Git branch isolation
  • Push session snapshots from Claude Code to Herald for asynchronous handoff between devices

io.github.btouchard/herald MCP server FAQ

What is Herald?

Herald is a self-hosted MCP server that bridges Claude Chat (on your phone/browser) to Claude Code (on your workstation). It lets you dispatch coding tasks remotely and monitor execution via MCP, with bidirectional context sharing.

Is Herald free?

Yes. Herald is open-source under the AGPL-3.0 license. You self-host it as a single Go binary (~15MB) on your workstation.

How do I install Herald in Claude Chat?

Run the Herald binary on your workstation with HTTPS (via ngrok tunnel or reverse proxy), then in Claude Chat go to Settings → Custom Connectors and add your Herald URL. Authenticate via OAuth, and Herald's 10 tools appear automatically.

Do I need a domain or reverse proxy?

No. Herald includes a built-in ngrok tunnel (free plan supported) for instant HTTPS. Alternatively, use Traefik or Caddy if you already have a reverse proxy.

What authentication does Herald use?

OAuth 2.1 with PKCE. Every request requires a valid Bearer token. Access tokens expire in 1 hour; refresh tokens rotate on each use and expire after 30 days.

Does my code leave my machine?

No. Herald runs on your workstation and only orchestrates Claude Code execution locally. Your codebase never leaves your machine—Herald just bridges the MCP protocol between Claude Chat and Claude Code.

README (reference)

Source of truth, from the repository.

<p align="center"> <h1 align="center">Herald</h1> <p align="center"> <strong>Code from your phone. Seriously.</strong> <br /> <em>The self-hosted MCP bridge between Claude Chat and Claude Code.</em> </p> </p> <p align="center"> <a href="https://go.dev"><img src="https://img.shields.io/badge/Go-1.26+-00ADD8?logo=go&logoColor=white" alt="Go 1.26+"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg" alt="AGPL-3.0 License"></a> <a href="https://github.com/btouchard/herald/stargazers"><img src="https://img.shields.io/github/stars/btouchard/herald?style=social" alt="GitHub Stars"></a> </p> <p align="center"> <a href="https://btouchard.github.io/herald/">Documentation</a> &middot; <a href="#quick-start">Quick Start</a> &middot; <a href="#how-it-works">How It Works</a> &middot; <a href="#features">Features</a> &middot; <a href="#security">Security</a> &middot; <a href="#roadmap">Roadmap</a> <br /> 🇫🇷 <a href="README_FR.md">Version française</a> </p>
<img src="/assets/herald-hero.svg">

You're on the couch. On your phone. You open Claude Chat and type:

"Refactor the auth middleware in my-api to use JWT instead of session cookies. Run the tests."

Four minutes later, it's done. Branch created, code refactored, tests passing, changes committed. Your workstation did all the work. You never opened your laptop.

That's Herald.

The Problem

Claude Chat and Claude Code are two brilliant tools that live in completely separate worlds.

Claude ChatClaude Code
WhereBrowser, phone, anywhereYour terminal
WhatConversations, analysis, thinkingReads, writes, and ships actual code
GapCan't touch your codebaseCan't leave your desk

You've been copy-pasting between them. Or worse — you've been waiting until you're back at your desk. That's over.

The Solution

Herald is a self-hosted MCP server that bridges Claude Chat to Claude Code using Anthropic's official Custom Connectors protocol. One Go binary. Zero hacks.

  You (phone/tablet/browser)
       │
       │  "Add rate limiting to the API"
       ▼
  Claude Chat ──── MCP over HTTPS ────► Herald (your workstation)
                                           │
                                           ▼
                                        Claude Code
                                           ├── reads your codebase
                                           ├── writes the code
                                           ├── runs the tests
                                           └── commits to a branch

  You (terminal)
       │
       │  Claude Code calls herald_push
       ▼
  Claude Code ──── MCP ────► Herald ────► Claude Chat picks it up
                                           └── session context, summary,
                                               files modified, git branch

The bridge is bidirectional. Claude Chat dispatches tasks to Claude Code, and Claude Code can push session context back to Herald for remote monitoring and continuation from another device.

Your code never leaves your machine. Herald just orchestrates.

How It Works

You (Claude Chat)          Herald                     Claude Code
─────────────────          ──────                     ───────────
"Refactor auth..."    ──►  start_task
                           → creates branch
                           → spawns Claude Code  ──►  reads codebase
                                                      refactors code
                                                      runs tests
                                                      commits changes
                      ◄──  task_id: herald-a1b2c3d4

"How's it going?"     ──►  check_task
                      ◄──  ✅ Completed (4m 12s)
                           4 files changed (+127/-23)

"Show me the diff"    ──►  get_diff
                      ◄──  auth/middleware.go
                           +func ValidateJWT(...)
                           -func CheckSession(...)

Three tools. That's the core loop. Start, check, get results — all from wherever you are.

Reverse flow: Claude Code → Herald

Working in your terminal and want to continue from your phone? Claude Code pushes its session to Herald:

You (terminal)             Claude Code                Herald
──────────────             ───────────                ──────
"Push this to Herald"  ──►  herald_push
                             → session_id, summary,
                               files, branch       ──►  linked task created
                                                         🔗 visible in list_tasks

You (phone, later)         Claude Chat                Herald
──────────────────         ───────────                ──────
"What sessions are         list_tasks
 waiting for me?"     ──►  (status: linked)      ──►  🔗 herald-a1b2c3d4
                                                         my-api / feat/auth

"Resume that session"  ──► start_task
                            (session_id)          ──►  picks up where you left off

Features

Core

  • Native MCP bridge — Uses Anthropic's official Custom Connectors protocol. Not a hack, not a wrapper, not a proxy.
  • Async task execution — Start tasks, check progress, get results. Claude Code runs in the background while you do other things.
  • Git branch isolation — Each task runs on its own branch. Your main branch stays untouched.
  • Session resumption — Multi-turn Claude Code conversations. Pick up where you left off.
  • Bidirectional bridge — Claude Code can push session context to Herald via herald_push for remote monitoring and continuation from another device.

Multi-Project

  • Multiple projects — Configure as many projects as you need, each with its own settings.
  • Per-project tool restrictions — Control exactly which tools Claude Code can use. Full sandboxing per project.

Operations

  • MCP push notifications — Herald pushes task updates directly to Claude Chat via MCP server notifications. No polling needed.
  • SQLite persistence — Tasks survive server restarts. Full history, fully searchable.

Engineering

  • Single binary — One Go executable, ~15MB. No Docker, no runtime, no node_modules.
  • Zero CGO — Pure Go. Cross-compiles to Linux, macOS, Windows, ARM.
  • 6 dependencies — chi, mcp-go, modernc/sqlite, uuid, yaml, testify. That's the entire dependency tree.

Quick Start

Prerequisites: Claude Code CLI installed, HTTPS via ngrok (built-in) or a domain with reverse proxy.

1. Install

curl -fsSL https://raw.githubusercontent.com/btouchard/herald/main/install.sh | sh
<details> <summary>Or build from source (requires Go 1.26+)</summary>
git clone https://github.com/btouchard/herald.git
cd herald && make build
# Binary is in ./bin/herald
</details>

2. Configure

mkdir -p ~/.config/herald
cp configs/herald.example.yaml ~/.config/herald/herald.yaml
# Edit with your domain and projects (see below)

3. Run

herald serve
# Client secret is auto-generated on first start and displayed in the console

Edit ~/.config/herald/herald.yaml with your domain and projects:

server:
  host: "127.0.0.1"
  port: 8420
  public_url: "https://herald.yourdomain.com"

auth:
  client_id: "herald-claude-chat"

projects:
  my-api:
    path: "/home/you/projects/my-api"
    description: "Main backend API"
    default: true
    allowed_tools:
      - "Read"
      - "Write"
      - "Edit"
      - "Bash(git *)"
      - "Bash(go *)"
      - "Bash(make *)"
    git:
      auto_branch: true
      branch_prefix: "herald/"

Then connect from Claude Chat:

  1. Claude Chat → Settings → Custom Connectors
  2. Add connector: https://herald.yourdomain.com/mcp
  3. Authenticate via OAuth
  4. Done — Claude Chat now has 10 new tools to control your workstation

Quick Start with ngrok (No Reverse Proxy Needed)

Don't have a domain or reverse proxy? Use ngrok to expose Herald instantly over HTTPS:

1. Get ngrok auth token

Sign up at ngrok.com (free plan works) and grab your auth token from the dashboard.

2. Enable tunnel in config

Edit ~/.config/herald/herald.yaml:

tunnel:
  enabled: true
  provider: "ngrok"
  authtoken: "2abc..."  # or set HERALD_NGROK_AUTHTOKEN env var
  # domain: "my-herald.ngrok-free.app"  # optional: fixed domain (paid plans)

3. Run Herald

herald serve
# Tunnel URL appears in the banner:
#   Tunnel: https://abc123.ngrok-free.app (ngrok)

Connect from Claude Chat using the ngrok URL shown in the banner. That's it — no Traefik, Caddy, or DNS setup required.

Note: The ngrok tunnel is optional. If you already have a reverse proxy (Traefik/Caddy), leave tunnel.enabled: false and use your domain as usual.

<details> <summary><strong>Full configuration reference</strong></summary>
server:
  host: "127.0.0.1"          # Always localhost — reverse proxy handles external
  port: 8420
  public_url: "https://herald.yourdomain.com"
  log_level: "info"           # debug, info, warn, error
  log_file: ""                # Optional file path for log output

auth:
  client_id: "herald-claude-chat"
  # client_secret is auto-generated — override with HERALD_CLIENT_SECRET env var if needed
  access_token_ttl: 1h
  refresh_token_ttl: 720h    # 30 days
  redirect_uris:
    - "https://claude.ai/oauth/callback"
    - "https://claude.ai/api/oauth/callback"
    - "https://claude.ai/api/mcp/auth_callback"

database:
  path: "~/.config/herald/herald.db"
  retention_days: 90

execution:
  claude_path: "claude"
  model: "claude-sonnet-4-5-20250929"  # Default model for tasks
  default_timeout: 30m
  max_timeout: 2h
  work_dir: "~/.config/herald/work"
  max_concurrent: 3
  max_prompt_size: 102400    # 100KB
  max_output_size: 1048576   # 1MB
  env:
    CLAUDE_CODE_ENTRYPOINT: "herald"
    CLAUDE_CODE_DISABLE_AUTO_UPDATE: "1"

projects:
  my-api:
    path: "/home/you/projects/my-api"
    description: "Main backend API"
    default: true
    allowed_tools:
      - "Read"
      - "Write"
      - "Edit"
      - "Bash(git *)"
      - "Bash(go *)"
      - "Bash(make *)"
    max_concurrent_tasks: 1
    git:
      auto_branch: true
      auto_stash: true
      auto_commit: true
      branch_prefix: "herald/"

tunnel:
  enabled: false               # Set to true to enable ngrok tunnel
  provider: "ngrok"
  authtoken: ""                # or set HERALD_NGROK_AUTHTOKEN env var
  # domain: ""                 # optional: fixed domain (paid ngrok plans)

rate_limit:
  requests_per_minute: 200
  burst: 100

</details>

MCP Tools

Herald exposes 10 tools that Claude Chat discovers automatically via the MCP protocol:

ToolWhat it does
start_taskLaunch a Claude Code task. Returns an ID immediately. Supports priority, timeout, session resumption, and Git branch options.
check_taskCheck status and progress. Optionally include recent output.
get_resultGet the full result of a completed task (summary, full, or json).
list_tasksList tasks with filters — status, project, time range.
cancel_taskCancel a running or queued task. Optionally revert Git changes.
get_diffGit diff for a task's branch or uncommitted changes.
list_projectsList configured projects with Git status.
read_fileRead a file from a project (path-safe — cannot escape project root).
herald_pushPush a Claude Code session to Herald for remote monitoring and continuation from another device.
get_logsView logs and activity history.

Security

Herald exposes Claude Code to the network. We take that seriously.

LayerProtection
NetworkBinds to 127.0.0.1 only. HTTPS via built-in ngrok tunnel or reverse proxy (Traefik/Caddy).
AuthOAuth 2.1 with PKCE. Every request needs a valid Bearer token.
TokensAccess tokens: 1h. Refresh tokens: 30d, rotated on each use.
FilesystemPath traversal protection on all file operations. Symlink escapes blocked.
ExecutionPer-project tool restrictions. No blanket --dangerously-skip-permissions.
Rate limiting200 req/min per token (configurable).
TimeoutsEvery task has a deadline (default: 30min). No runaway processes.
PromptsPassed to Claude Code unmodified. No injection, no enrichment, no rewriting.
AuditEvery action logged with timestamp and identity.

Architecture

Claude Chat (mobile/web)
  → HTTPS (MCP Streamable HTTP + OAuth 2.1)
  → Traefik / Caddy (TLS termination)
  → Herald (Go binary, port 8420)
    ├── MCP Handler (/mcp)
    ├── OAuth 2.1 Server (PKCE, token rotation)
    ├── Task Manager (goroutine pool, priority queue)
    ├── Executor Registry (pluggable backends, default: Claude Code)
    ├── SQLite (persistence)
    └── MCP Notifications (server push via SSE)

Design principles: single binary (everything compiled into one Go executable), async-first (each task is a goroutine), stateless MCP with stateful backend, fail-safe (Herald crash doesn't kill running Claude Code processes).

<details> <summary><strong>Tech stack</strong></summary>
ComponentChoiceWhy
LanguageGo 1.26Single binary, cross-compilation, goroutines
MCPmcp-goStreamable HTTP, official protocol support
RouterchiLightweight, stdlib-compatible
Databasemodernc.org/sqlitePure Go, zero CGO
Logginglog/slogGo stdlib, structured
Configgopkg.in/yaml.v3Standard YAML

6 direct dependencies. No ORM. No logging framework. No build toolchain.

</details>

Deployment

Herald runs best as a native binary (direct access to Claude Code and your files). Docker is available as an option.

<details> <summary><strong>Docker Compose with Traefik</strong></summary>
services:
  traefik:
    image: traefik:v3
    command:
      - "--entrypoints.websecure.address=:443"
      - "--certificatesresolvers.le.acme.email=you@example.com"
      - "--certificatesresolvers.le.acme.storage=/letsencrypt/acme.json"
      - "--certificatesresolvers.le.acme.httpchallenge.entrypoint=web"
    ports:
      - "443:443"
    volumes:
      - "./letsencrypt:/letsencrypt"

  herald:
    build: .
    network_mode: host
    volumes:
      - "~/.config/herald:/root/.config/herald"
      - "~/projects:/root/projects:ro"
    labels:
      - "traefik.http.routers.herald.rule=Host(`herald.yourdomain.com`)"
      - "traefik.http.routers.herald.tls.certresolver=le"
      - "traefik.http.services.herald.loadbalancer.server.port=8420"
</details>

Roadmap

VersionStatusFocus
v0.1✅ DoneCore MCP server, async tasks, Git integration, OAuth 2.1, SQLite
v0.2🚧 In progressShared memory — bidirectional context between Claude Chat and Claude Code
v0.3🚀 FutureStable API, plugin system

Have an idea? Open an issue. We build what users need.

Contributing

Herald is in early alpha — the best time to shape a project.

# Get started
git clone https://github.com/btouchard/herald.git
cd herald
make build && make test

# Create your branch
git checkout -b feat/your-feature

# Code, test, lint
make lint && make test

# Open a PR

Commit messages follow Conventional Commits (feat:, fix:, refactor:, docs:).

Whether it's a bug fix, a new notification backend, or a documentation improvement — all contributions are welcome.

Why Herald?

HeraldCopy-paste workflowOther tools
Official protocolMCP Custom ConnectorsN/ACustom APIs, fragile
Your code stays localAlwaysYesDepends
Works from phoneNativeNoRarely
Self-hosted100%N/AOften SaaS
Dependencies6N/A50-200+
Setup time~5 minutesN/A30min+
CGO requiredNoN/AOften

Herald uses the same protocol Anthropic built for their own integrations. No reverse engineering, no unofficial APIs, no hacks that break on the next update.


<p align="center"> <a href="LICENSE"><strong>AGPL-3.0 License</strong></a> — Built by <a href="https://kolapsis.com"><strong>Benjamin Touchard</strong></a> <br /><br /> If Herald saves you time, <a href="https://github.com/btouchard/herald">leave a star</a>. It helps others find the project. </p>

Related MCP servers

AI teammate for tasks: builds your list from meetings, email and chats, and checks off done work.

CRCrossFin logo

CrossFin

Maintained

AI agent access to Asian crypto markets. Korean exchange routing and x402 paid APIs.

0
TypeScript
MIT
View repository →
BUBugBug logo

BugBug

Active

BugBug workflows for AI agents workflows for AI agents

4
JavaScript
MIT
View repository →
BUBugfender logo

Bugfender

Active

Access Bugfender logs, crashes, devices, and user feedback from MCP-enabled clients.

0
TypeScript
Apache-2.0
View repository →

MCP server exposing Galaxy UI components — manifests, source code, and framework coverage

1
TypeScript
View repository →
BIBilt logo

Bilt

Maintained

AI agents autonomously build and deploy mobile apps through natural language workflows

1
View repository →