Skip to main content
Glama
Claude Project Bridge

Claude Project Bridge

by Arel32
README.md
# Claude Project Bridge

[![tests](https://github.com/Arel32/claude-project-bridge/actions/workflows/tests.yml/badge.svg)](https://github.com/Arel32/claude-project-bridge/actions/workflows/tests.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

**Let your Claude projects talk to each other.**

*¿Hablás español? La guía de instalación completa está en [docs/HOWTO.es.md](docs/HOWTO.es.md).*

You keep separate Claude projects for separate things: your website, your pricing, your marketing, your notes. Each project knows a lot. But when the website project needs a price, you end up opening the pricing chat, copying, pasting, and explaining it again. You become the messenger between your own projects.

Claude Project Bridge removes the messenger. It's a small MCP server that runs on your own computer. You add it to claude.ai as a custom connector, and every project can now:

- **read another project's card**: a short page with what it is, its status, key facts and where everything is
- **search what another project already knows**: its files, its notes, and even the memory and recent chats of your Claude Code projects
- **leave a question in a shared mailbox** when the answer isn't written down anywhere, so the other project answers it the next time it's open

So from inside your *Website* project you can just say *"Pricing has that, go get it"*, and Claude does it. You don't copy anything, and you don't have to wait for some slow sync to catch up.

```mermaid
flowchart LR
    subgraph cloud [claude.ai]
        A[Website project]
        B[Pricing project]
        C[Marketing project]
    end
    A & B & C -- custom connector --> T[HTTPS tunnel<br/>secret URL]
    T --> S[Project Bridge<br/>on your computer]
    S --> F[(Project folders<br/>and cards)]
    S --> V[(Notes vault)]
    S --> K[(Claude Code<br/>memory and chats)]
    S --> M[(Mailbox)]
```

## Why it exists

Claude projects are isolated by design. Usually that's what you want, but not when they're all yours and all about the same business. Syncing a shared knowledge base through cloud drives works, but it's slow. Copy-pasting works too, but then you have to babysit it. The bridge lets the projects look things up in each other directly. It runs in the background, and once it's set up you don't really notice it's there.

## Tools

| Tool | What it does |
|---|---|
| `list_projects` | Lists the projects you can consult |
| `read_card(project)` | Shows a project's card and the files in its folder |
| `search_project(project, question)` | Keyword search across the project's folder, extra folders, and the Claude Code memory, `CLAUDE.md` and latest chats. Returns the best fragments, each with its source |
| `read_file(project, path)` | Reads one text file from the project's folder (it can't read anything outside that folder) |
| `update_card(project, text)` | Replaces your project's card. The old version is backed up first |
| `ask(sender, to, question)` | Leaves a question in the mailbox |
| `inbox(project)` | Shows the threads waiting for you and the ones waiting for someone else |
| `reply(thread, sender, text, close)` | Answers a question, asks a follow-up, or closes a thread |

The mailbox is plain markdown, one file per message. Every message ends with instructions on how to reply. That way even a Claude that doesn't have the connector can answer it by creating a file. If you keep the mailbox in a synced folder (Google Drive, Dropbox, OneDrive), projects can also use it through those connectors.

## Quick start

You'll need Python 3.10 or newer, a computer that stays on while you work, and a way to publish a local port over HTTPS. [Tailscale Funnel](https://tailscale.com/kb/1223/funnel) is free and is what we use; Cloudflare Tunnel or ngrok work too.

```bash
git clone https://github.com/Arel32/claude-project-bridge.git
cd claude-project-bridge
pip install -r requirements.txt
cp config.example.json config.json
python project_bridge.py --new-secret     # paste the output into config.json -> "secret"
# edit config.json: your projects and folders, and your public host name
python project_bridge.py
tailscale funnel --bg 8790
```

Then in claude.ai go to **Settings → Connectors → Add custom connector**, enter `https://<your-public-host>/<your-secret>/mcp`, and leave authentication empty, since the secret in the URL is the key.

The full step-by-step guide is in **[docs/HOWTO.en.md](docs/HOWTO.en.md)**, and there's a Spanish version in **[docs/HOWTO.es.md](docs/HOWTO.es.md)**.

## Make it automatic

Add this to your personal preferences in claude.ai (in Settings), and you won't have to name the connector again:

> When I say another project has some information, or a fact lives in another project, use the "My Projects" connector to get it yourself without asking me: read_card first, then search_project, and if it isn't there, ask (it stays in the mailbox). At the start of a conversation, call inbox with this project's name and answer what is waiting. When you save something important or finish a task, refresh this project's card with update_card.

## Security, in short

- The server only listens on `127.0.0.1`. The tunnel is the only door in.
- The URL contains a 43-character random secret. Without it, every request gets a 404.
- It can only read the folders you list in `config.json`. Paths that try to leave those folders are rejected.
- It never deletes anything. Cards get backed up before they're replaced, and mailbox files are never edited.
- It logs what tool was called and when, but never what was in the request.

Anyone who has your URL can read the folders you configured, so treat the URL like a password and leave folders with credentials out of the config. More in [SECURITY.md](SECURITY.md).

## Tests

```bash
python -m unittest -v
```

## Contributing

Issues, ideas and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md). If you build something on top of it, open a Discussion and tell us about it.

## Credits

Created by **Ariel G.** ([GitHub](https://github.com/Arel32) · [LinkedIn](https://www.linkedin.com/in/ariel-gastiarena-4717bb185/)) together with Claude (Anthropic), as a real tool for running a small business across many Claude projects.

## License

[MIT](LICENSE)