Context7
Up-to-date docs for AI agents
제작자가 쓴 설명(영어 원문)
FastMCP server for TheBrain API — AI access to a personal knowledge graph, Tollbooth-monetized
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
웹, 데스크톱, 모바일의 Claude에서 쓸 수 있어요:
https://personal-brain.fastmcp.app/mcp터미널에서 이 명령어를 실행하세요
claude mcp add --transport http personalbrain https://personal-brain.fastmcp.app/mcp프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"personalbrain": {
"url": "https://personal-brain.fastmcp.app/mcp"
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"personalbrain": {
"type": "http",
"url": "https://personal-brain.fastmcp.app/mcp"
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요:
https://personal-brain.fastmcp.app/mcp메뉴 이름은 요금제나 시기에 따라 조금 다를 수 있어요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
아직 이 서버의 도구 목록을 읽지 않았어요. 엔드포인트는 차례대로 돌아가며 점검해요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 lonniev 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 점검하지 않았어요. 엔드포인트는 차례대로 돌아가며 점검해요
아직 점검하지 않았어요. 엔드포인트는 차례대로 돌아가며 점검해요
아직 점검하지 않았어요. 엔드포인트를 점검할 때 도구 목록을 읽어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
제작자의 클라우드에서 실행돼요. 설치 없이 인터넷으로 연결하지만, 보내는 내용은 제작자의 서버를 거쳐요.
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.18.0)은 17일 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. URL로 연결되기 때문에, 원격 MCP 서버를 지원하는 앱(예: 개발자 모드의 ChatGPT)에서도 쓸 수 있어요.
같은 카테고리에는: Context7, Codebase Memory, Exa
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
The first city on the Lightning Turnpike.
An MCP server that gives AI agents read-write access to a personal knowledge graph — and pays for itself with Bitcoin Lightning micropayments.
*The metaphors in this project are drawn with admiration from* The Phantom Tollbooth *by Norton Juster, illustrated by Jules Feiffer (1961). Milo, Tock, the Tollbooth, Dictionopolis, and Digitopolis are creations of Mr. Juster's extraordinary imagination. We just built the payment infrastructure.*
Every turnpike needs its first city. Before the booths can collect fares and the authority can stamp purchase orders, someone has to build a destination worth driving to.
thebrain-mcp is that city — a FastMCP service deployed on Horizon that bridges AI agents to TheBrain, a personal knowledge graph of 9,000+ interconnected thoughts built over a decade. Every thought, link, attachment, and note operation maps directly to TheBrain's cloud API at api.bra.in.
It's also the proving ground for Tollbooth DPYC™ — the first MCP server where every tool call is metered via Bitcoin Lightning micropayments. Pre-fund, use, top up. No subscriptions, no API keys tied to billing accounts, no fiat payment processors. The novel contribution: an MCP server architecture where the operator monetizes AI agent access through Lightning micropayments without ever pestering the client mid-conversation.
Connect any MCP-compatible client (Claude Desktop, Cursor, your own agent) to the live endpoint:
https://personal-brain.fastmcp.app/mcp
No configuration needed. Your client connects with OAuth; the connection holds no npub until you prove one into it by answering a Nostr DM (request_npub_proof, then receive_npub_proof). A client that holds your nsec signs each request instead (NIP-98) and needs no DM. Tools then take only npub.
how_to_join() tool — this is the npub you registered as a DPYC™ Citizen, your identity for credit operations.request_credential_channel(sender_npub= , service= ) — opens a Secure Courier channel, sends a welcome DM to your Nostr client, and returns the channel's nonce.{"api_key": "...", "brain_id": "..."}receive_credentials(sender_npub= , service= , nonce= ) — vaults your credentials and activates the session.Returning users do not re-run this flow: the session restores from the vault on first use.
Credentials are delivered via encrypted Nostr DMs — they never appear in the chat window. On first-time relay receipt, the service sends an ncred1... credential card back to the patron via DM for scan-and-paste reuse.
Human in the loop: The patron must consciously approve each credential delivery via their Nostr client. Never auto-poll or auto-retry receive_* calls — each receive_credentials drains the relay destructively (NIP-09 deletion after pickup). Call it exactly once per credential delivery.
| Category | Pricing hint | Examples |
|---|---|---|
free | 0 sats | session_status, check_balance, check_price |
read | 1 sat | get_thought, search_thoughts, get_note |
write | 5 sats | create_thought, create_link, update_thought |
heavy | 10 sats | brain_query, get_modifications |
Actual prices are set dynamically by the operator's pricing model in Neon via api_sats per tool. Auth and balance tools are always free.
Credits are issued as tranches with a tranche_lifetime (TTL). Tranches are consumed FIFO; expired tranches are pruned automatically. Use check_balance to see your balance, active tranches, and usage history. Top up via purchase_credits with Bitcoin Lightning.
npub (Nostr public key), not an email or username. The nsec (private key) stays with the patron — never shared, never sent to a service.request_npub_proof → receive_npub_proof). Tools carry no proof argument.A Cypher-subset query language purpose-built for TheBrain. Agents and humans express graph operations in the same formalism — full CRUD via MATCH, CREATE, SET, MERGE, and DELETE.
MATCH (n {name: "Projects"})-[:CHILD]->(m) RETURN m
MATCH (n) WHERE n.name =~ "quarterly review" RETURN n MATCH (p {name: "Ideas"}) CREATE (p)-[:CHILD]->(n {name: "New Concept"}) MATCH (root {name: "Company"})-[:CHILD*1..3]->(d) WHERE d.name CONTAINS "Budget" RETURN d
Variable-length paths, multi-hop chains, compound WHERE with AND/OR/NOT/XOR, similarity search, and property existence checks. Full grammar in BRAINQUERY.md.
When a tool call fails, read the response — it tells you what happened and what to do next. Credential lifecycle states are not errors; they are expected situations with clear guidance.
| Situation | What to do |
|---|---|
| proof is required | Call request_npub_proof then receive_npub_proof — a fresh request/receive cycle. The proof lasts as long as the patron chose when approving it (up to 30 days). |
| Insufficient credit balance | Call purchase_credits to top up. |
| Cold start / session not ready | Retry in 10-15 seconds. |
| Credentials not found | Follow the Secure Courier onboarding flow (step 3 above). |
| Upstream API error | Only if the error explicitly mentions TheBrain API failure. Not a credential or billing issue. |
Don't Pester Your Customer: Do NOT ask the patron to re-authenticate or re-do the Courier flow unless the error message specifically says credentials are missing or expired.
For local installation and setup, see INSTALL.md and QUICKSTART.md.
To run your own instance, set these environment variables:
| Variable | Purpose |
|---|---|
TOLLBOOTH_NOSTR_OPERATOR_NSEC | Operator's Nostr secret key -- the single bootstrap key for identity, Secure Courier DMs, and audit signing |
This is the only env var the server reads. Certified operators bootstrap their Neon database URL from the Authority via encrypted Nostr DM -- NEON_DATABASE_URL is not read from the environment. The relay set comes from the shared dpyc-community registry, and tranche lifetime and constraints come from the operator's pricing model -- none of them is an env var.
All secrets flow through Secure Courier -- they never appear as environment variables:
| Credential | Delivery |
|---|---|
| TheBrain API key + brain ID | Patron delivers via encrypted Nostr DM |
BTCPay credentials (btcpay_host, btcpay_api_key, btcpay_store_id) | Operator delivers via Secure Courier |
Note:
THEBRAIN_API_KEYis not an environment variable. Patrons deliver their TheBrain API key and brain ID via Secure Courier (encrypted Nostr DM). Only the operator's nsec is configured as an env var.
The server exposes the standard Tollbooth DPYC™ operator surface via register_standard_tools() from tollbooth-dpyc, plus its domain tools. Tools fall into three paths in the DPYC three-actor topology (Operator / Authority / Oracle):
| Path | Tools | Status |
|---|---|---|
| Hot (local ledger) | check_balance, account_statement, account_statement_infographic, restore_credits, service_status | Implemented — delegates to server.py |
| Hot (Secure Courier) | session_status, request_credential_channel, receive_credentials, forget_credentials | Implemented — Nostr credential delivery with credential card DM |
| Identity | request_npub_proof, receive_npub_proof, check_proof_status, held_identities | Implemented — proves an npub into an OAuth connection |
| Delegation (Authority) | purchase_credits, check_payment | Implemented — auto-certifies via MCP-to-MCP |
| Delegation (Oracle) | oracle_lookup_member, oracle_how_to_join, oracle_get_tax_rate, oracle_about, oracle_network_advisory | Implemented — MCP-to-MCP via OracleClient |
Payment processing auto-certifies via the Authority (server-to-server OAuth). Secure Courier delivers encrypted credentials via Nostr DMs with automatic credential card (ncred1...) DM-back on first receipt. Oracle community tools route directly to the DPYC™ Oracle — free and unauthenticated.
The Tollbooth DPYC™ ecosystem is a three-party protocol spanning three repositories:
| Repo | Role |
|---|---|
| tollbooth-authority | The institution — tax collection, Schnorr signing, purchase order certification |
| tollbooth-dpyc | The booth — operator-side credit ledger, BTCPay client, tool gating |
| dpyc-oracle | The concierge — community onboarding, tax rates, membership lookup |
| thebrain-mcp (this repo) | The first city — reference MCP server powered by Tollbooth DPYC™ |
See the Three-Party Protocol diagram for the full architecture. The operator-side flow is also available.
thebrain-mcp/
├── src/thebrain_mcp/ # Server source, BQL engine, Tollbooth ├── tests/ # Test suite (465+ tests) ├── fastmcp.json # Horizon deploy entrypoint (src/thebrain_mcp/server.py) ├── pyproject.toml # Package metadata and dependencies ├── BRAINQUERY.md # BQL grammar and reference ├── INSTALL.md / QUICKSTART.md # Local install and setup ├── docs/diagrams/ # Architecture and protocol flow diagrams ├── LICENSE # Apache License 2.0 └── NOTICE # Attribution notice
The methods, algorithms, and implementations contained in this repository may represent original work by Lonnie VanZandt, first published on February 16, 2026. This public disclosure establishes prior art under U.S. patent law (35 U.S.C. 102).
All use, reproduction, or derivative work must comply with the Apa
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요