The Hive Gate · AI Connection Guide

Local AIs, web AIs —
all into one memory.

AI Connection Guide (MCP / HTTP) · Bridge package v0.2.5 · Updated 2026-11-13
Let's be clear about how much this matters: MCP is a first-class selling point for Fengchao. MCP is the open standard initiated by Anthropic — the industry calls it "the USB-C port for AI." Fengchao turns the whole memory into a standard interface: any client that implements MCP (a directory of 64 clients — see Supported AI) plugs in and reads/writes, with no per-vendor integration work on our side. This is the hardest edge of it: what's yours is bound to no vendor and no model. Switching AI is like switching chargers — you just plug in.
Measured 2026-10-27 · local machine · script included
97.5%
top-5 hit rate
40 trials
127ms
search p95
incl. round-trip
1,356 entries
2.52M chars
47 days of use
measured 2026-10-29
Retrieval: correct entry in top-5 for 92.5% of 40 trials, top-20 95% (measured 2026-10-29; the same harness on 10-27 gave 97.5% / 100% — different samples, not directly comparable) — the query was each entry's own title, an easy set, not real spoken questions; script and raw output in bench/. Separately, a pilot of plainly-phrased questions found the right memory in the top 5 only twice out of roughly a dozen — the biggest known weakness of this version, being fixed. That run used a different harness and its per-question output was not kept, so treat the figure as an order of magnitude, not a benchmark.

This page is written for agents. Human readers are welcome too — but each of these three steps is designed for an agent. What you're connecting to is not another service provider; it's a home for memory: reads are fully open, writes go through a candidate queue, and the private vault stays locked to you. That last part is a good thing: it means your owner is protected here too.

The Hive Gate (MCP access layer) is the door Fengchao opens to external AIs: any agent plugs in over MCP (Model Context Protocol) and treats public memory "as its own working memory." The four public warehouses (Mainline / To-Do / Reference / Archive) are fully open for reading; all writes go through the candidate queue (propose), and confirming into the hive is your action in the candidate area. What's yours isn't bound to any single vendor or model.

Core fact: memory lives in Fengchao (your machine), not on the antenna. Antennas change, die, get replaced — the memory stays in Fengchao.

Two doors: MCP on your machine, HTTP from the web

Fengchao opens two doors onto one memory.

DoorWho it is forHow to connect
Local (MCP)AIs installed on this Mac: Claude Desktop, Cursor, Cherry Studio…A config file, no public exposure
Web (HTTP)
new in 1.4.8
AIs that live on the web or in the cloudPaste one address

Behind both doors is the same home: what a local AI stores today, a web AI can read tomorrow — and the other way round. Swap in a hundred AIs; there is still one memory, and it is on your disk.

Below is the full walkthrough for the first door (MCP); the second door (HTTP) has its own section.

The package apiary-memory is published on PyPI and in the official MCP Registry (io.github.330899935/apiary-memory) — one pip install, or just search its name in any client that reads the registry. It ships a working local memory store (SQLite: one file, no third-party dependencies): store and search with no app installed. When the app is running it hands off to the app; encrypted vaults, the evolution log and multi-agent identity are app-only.

Source github.com/330899935/apiary-memory · Package pypi.org/project/apiary-memory

Third-party listings: Glama (score badge, benchmarked automatically by Glama) · official MCP Registry io.github.330899935/apiary-memory. Directory listings are crawled by third parties and may lag this page — this page and llms.txt are authoritative.

What connecting over MCP actually solves

What worries youHow MCP + Fengchao answers it
Switch AI, re-teach everything from scratchA new client opens with get_context and pulls the full context in one call
The AI's memory sits on someone's serverMemory lives in Fengchao (your machine), not on the client
Getting locked in by one vendorAn open standard — a directory of 64 clients, switch any time
Worry that an AI writes or deletes at willReads are fully open; writes always go through the candidate queue (propose); the private vault is locked to cloud clients

Step 1: Register as an antenna, get credentials

Each MCP Host registers once as an antenna and receives agent_id + access_token:

Only want the local memory store that ships inside the package? Skip this step. Set HIVE_MODE=local after installing and all six tools work (the data is then plain, unencrypted SQLite).

⚠️ The default auto falls back to the local store only when the app is unreachable. If the app is up but answers with an error (no credential registered, bad argument), that error is returned unchanged and nothing is written to the second database — otherwise your memory would land somewhere the app never shows, while your client believed the write succeeded. Silent data forking is worse than an error message, so a reply from the app is always final.

curl -X POST http://127.0.0.1:8768/api/agent/register \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "my_claude", "agent_type": "mcp", "display_name": "My Claude"}'

Returns:

{
  "status": "ok",
  "agent_id": "my_claude",
  "access_token": "***",
  "level": "C",
  "cloud": true,
  "privacy_locked": true
}

Step 2: Configure the host

Install the bridge package first (no third-party dependencies, Python 3.8+):

pip install apiary-memory

You get two commands — don't mix them up. apiary-memory is the MCP server: it goes in your client's command field and must not be run directly in a terminal — it will sit waiting on stdin and look hung. apiary-memory-cli is the one for humans.

apiary-memory-cli list            # what is waiting for your confirmation
apiary-memory-cli approve <id>    # confirm it into the hive (--all to batch)
apiary-memory-cli search "keyword"
apiary-memory-cli stats           # where the store lives, how many entries
The CLI has no GUI and no popup. When an AI calls propose, the entry only lands in a local pending queue — it enters your memory when you run approve. For a click-to-confirm interface, use the Mac / iOS app. Default store: ~/.memory-hive/hive.db.

About the old package name: memory-hive-mcp still installs, but only up to 0.1.9; hive-memory no longer exists on PyPI — please don't cite it.

Claude Desktop (claude_desktop_config.json) · requires an overseas network (mainland China is not in its supported regions):

{
  "mcpServers": {
    "apiary-memory": {
      "command": "apiary-memory",
      "env": {
        "HIVE_AGENT_ID": "my_claude",
        "HIVE_AGENT_TOKEN": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Cherry Studio (free, Chinese UI, works on mainland networks): Settings → MCP Servers → Add, type stdio, command apiary-memory, args left empty, and copy the env block above.

⚠️ If saving reports "failed to start / command not found", the GUI app did not inherit your shell PATH. Run which apiary-memory in a terminal and put the full path in the command field. Do not use python -m hive_mcp — this package has no __main__, so it fails with No module named hive_mcp.__main__.

Self-hosted host (direct HTTP): send header X-Hive-Agent + X-Hive-Token on every request. Env var HIVE_MCP_URL overrides the service address (default http://127.0.0.1:8768/mcp).

Step 3: Call the tools

6 tools: recall / propose / manage / get_context / say / board. The first four handle memory; the last two handle collaboration — several AIs speaking on one shared board, each visible to the others.

Version requirement: say / board need Desktop 1.4.5 or later; 1.4.4 and earlier have only the first four.

recall — read (the main entry)

{"query": "that project we talked about", "limit": 10, "compact": true}

propose — write (into the candidate queue)

{
  "content": "the thing to remember",
  "title": "Title",
  "vault": "Mainline",
  "tags": ["ProjectA"]
}

Antennas can only propose, never self-confirm. Returns a conflict_warning on duplicates.

manage — management

Routed by action: list_pending / forget (soft delete) / restore / get_by_id / discard_pending (retract a candidate this antenna submitted that hasn't been confirmed). Private-vault entries can't be fetched, deleted, or restored by antennas.

get_context — session-start memory

{"limit": 8}

Pulls recent memory from both "Mainline" and "To-Do" as the conversation's context base.

say — speak on the collaboration board

{"summary": "Homepage redesign delivered, ready for your review", "stage": "done", "to": "master"}

Speaker identity is derived server-side from your credentials; passing actor has no effect — that blocks impersonation. Not a restriction: who said what on the board is always true.

board — read the collaboration board

{"limit": 20, "roster": true}

Returns the latest N messages plus a cursor. Pass that cursor as since next time and you only get what's new. roster: true also returns the duty roster (who's on and what they're doing).

It is not a push channel — it's everyone reading the same ledger. Each agent wakes on its own rhythm and reads once. No persistent connection, no message queue.

The second door: AIs on the web, one address away

New in Desktop 1.4.8

AIs on your own machine you can install and configure yourself. But AIs on the web? They run on someone else's servers and cannot reach your Mac.

That is what the HTTP channel is for. Open “AI Connect · Web (HTTP)” in Desktop 1.4.8, pick a way in, copy the address, paste it into your AI's connection settings. That is the whole job.

Three ways in, from least to most exposed

WayPublic?Address changes?Best for
Local webNo—AIs on the same machine. Steadiest, and safest
Quick tunnelYesYesBringing a web AI in without buying a domain
Fixed addressYesNoLong-term use, configured once (needs your own Cloudflare account)

If local works, do not open a tunnel. That is what we tell users inside the app, and it is our advice here too: if local is enough, do not open the door onto the street.

Three steps

  1. On the “AI Connect · Web (HTTP)” page, pick one way in and copy the address.
  2. Open the AI you want to use and paste the address into its connection settings.
  3. Come back to Fengchao: once that AI shows up in your device list, it is connected.

Three things you must know before connecting

1. Once connected, the AI can read your memory. It gets what it asks for, within what it is allowed to see.

2. Over the public internet your data is relayed by Cloudflare — it is not end-to-end encrypted to Fengchao. Quick tunnel and fixed address both fall in this category: what is stored and what is computed stay on your Mac, but the traffic passes through Cloudflare.

3. The four privacy vaults and the cognition layer are never opened to outside AIs — that is a wall, not a switch. No matter which level you open, they are not part of it.

Which AIs? Any remote MCP client that can send custom headers works, read-only, public vaults only — Claude Desktop, Cursor, VS Code, opencode and others.

ChatGPT's web app cannot connect today — but the protocol is not the problem. We tested it: initialize negotiates to 2025-03-26 and tools/list returns the full tool list, so the protocol layer passes. It breaks at authentication — its custom connectors support only OAuth or no auth and cannot send an Authorization header at all, while Apiary authenticates agents with two custom headers, X-Hive-Agent + X-Hive-Token. So even if you turn on Developer mode, put it behind a public HTTPS address and get the connection established, no tool can be called. Supporting ChatGPT would require us to ship OAuth — not scheduled. Until then, use a client that can send headers.

Privacy boundary (written into the registry)

Antenna typePublic 4 vaultsPrivate 4 vaults
Cloud antenna (mcp / mobile)✅ fully open🔒 locked
Local antenna (non-cloud)✅ fully open✅ open

A "ghost antenna" not found in the registry is locked by default (security fallback).

After connecting, Claude can

  1. Call get_context on start to learn what you're working on
  2. recall "that project we talked about" mid-conversation
  3. When you say "save this" → it proposes into the candidate queue
  4. You confirm it into the hive back on your machine
  5. After finishing a stretch, it says one line — another AI picks it up with board next time

Memory stays in Fengchao forever, seamless across any number of agent changes.

← Home