BraveMCP

BraveMCP

A local-first browser extension and MCP server that captures your browsing history, bookmarks, highlights, and notes, making them searchable by Claude Desktop as a personal memory assistant.

Category
访问服务器

README

BraveMCP — Your Browser Memory, Accessible by Claude

MIT License Version Local First MCP Compliant

BraveMCP is a local-first browser extension + MCP server that captures everything you browse — pages, bookmarks, highlights, notes — and makes it searchable by Claude Desktop as a personal "second brain."

Everything stays on your machine. No cloud. No tracking. Just your own memory, given to Claude.


Demo

<!-- To use a real screen recording, record per docs/RECORDING.md, save it to docs/assets/demo.gif, and uncomment the line below (it takes priority). --> <!-- BraveMCP demo -->

BraveMCP — Claude retrieving a forgotten page from local browser memory

Claude answers a vague "do you remember…" question by searching your local browser memory — fully offline. A real screen-recorded GIF can replace this mockup; see docs/RECORDING.md.


What It Does

Without BraveMCP With BraveMCP
"I don't have access to your history" Claude searches your browsing history directly
You copy-paste URLs manually Extension auto-captures pages as you browse
Forgotten tabs lost forever Time-decay search resurfaces what you forgot
Manual research summaries Claude synthesizes your sessions automatically

Example

You: "Do you remember that article about MCP security I read last week?"

Claude: (calls find_forgotten_content) → "Yes — you visited MCP Security Guidelines 4 days ago, 3 times. It covers sandbox credential handling and shell injection prevention. Want a summary?"


How It Works

Brave Browser
    ↓ (tab visits, bookmarks, highlights)
Extension (Manifest V3)
    ↓ POST /api/...
HTTP Bridge (Express :3747)
    ↓
MCP Server ←→ SQLite + ChromaDB
    ↓ stdio JSON-RPC
Claude Desktop
  • Extension — Manifest V3. Auto-captures tab changes, bookmarks, and context-menu text highlights.
  • HTTP Bridge — Express server on port 3747, runs inside the MCP server process to receive extension payloads.
  • Storage — SQLite (FTS5 full-text search) + ChromaDB (local vector embeddings). Nothing leaves your machine.
  • AI Pipeline — Ollama (llama3.2 / nomic-embed-text) for local summarization and embeddings, with Anthropic API as fallback.
  • MCP Server — Exposes 13 tools to Claude Desktop over stdio.

Quick Start

Prerequisites

  • Node.js v18+
  • Brave or Chrome browser
  • Claude Desktop
  • (Optional) Ollama for local AI — ollama pull llama3.2 && ollama pull nomic-embed-text
  • (Optional) Python 3.10+ for ChromaDB vector search — pip install chromadb

Install

git clone https://github.com/YOUR_USERNAME/BraveMCP.git
cd BraveMCP
npm run setup

npm run setup handles everything: installs dependencies, builds TypeScript, and checks ports.

Connect to Claude Desktop

Add this to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "brave-memory": {
      "command": "node",
      "args": ["/absolute/path/to/BraveMCP/mcp-server/dist/index.js"]
    }
  }
}

Restart Claude Desktop.

Load the Browser Extension

  1. Open brave://extensions (or chrome://extensions)
  2. Enable Developer mode
  3. Click Load unpacked → select the /extension folder

(Optional) Start ChromaDB for Semantic Search

pip install chromadb
chroma run --path ./storage/chroma

ChromaDB runs at http://localhost:8000. Without it, BraveMCP falls back to SQLite keyword search — still works great.


Available MCP Tools

Once connected, Claude can call any of these 13 tools:

Tool What it does
get_open_tabs Get your currently open browser tabs
get_active_tab Get the tab you're looking at right now
get_bookmarks Retrieve your saved bookmarks
search_memory Keyword + semantic search across your history
find_related_content Find pages related to a search query
find_forgotten_content Resurface old content using time-decay + visit scoring
capture_current_page Save the active page's content to memory
save_note Save a freeform note
save_bookmark Save a bookmark with a folder
summarize_open_tabs Synthesize what you're currently researching
summarize_research_topic Deep-dive summary on a specific topic from your history
get_research_sessions Auto-clustered browsing sessions by domain/topic
generate_weekly_digest Weekly summary of your browsing and research gaps
suggest_tab_cleanup Recommends tabs to close, archive, or keep

Page Capture Flow

The extension auto-syncs tab visits in the background. For full page content (text body + AI summary), click "Capture Content" in the extension popup. This sends the page body to the MCP server, which stores it in SQLite and generates an AI summary and vector embedding.

Claude can also save a page directly: capture_current_page(url, title, content, summary).


Project Structure

BraveMCP/
├── extension/              # Manifest V3 browser extension
│   ├── background.js       # Service worker: tab sync, bookmarks
│   ├── content.js          # DOM extraction for page capture
│   ├── manifest.json
│   └── popup/              # Extension UI
├── mcp-server/             # Node.js MCP server
│   ├── src/
│   │   ├── index.ts        # MCP tools + Express HTTP bridge
│   │   ├── storage/
│   │   │   ├── database.ts # SQLite schema, FTS5, migrations
│   │   │   └── chroma.ts   # ChromaDB client
│   │   └── ai/
│   │       └── pipeline.ts # Embeddings + summarization pipeline
│   └── tsconfig.json
├── scripts/
│   └── setup.js            # One-command setup script
├── storage/                # SQLite DB lives here (git-ignored)
└── package.json            # Root: runs setup script

Roadmap

  • [x] Phase 1 — MCP server scaffold
  • [x] Phase 2 — SQLite storage layer (FTS5, migrations)
  • [x] Phase 3 — Browser extension (Manifest V3)
  • [x] Phase 4 — Vector search + AI pipeline (Ollama / Anthropic fallback)
  • [x] Phase 5 — Advanced tools (digest, sessions, forgotten content, tab cleanup)
  • [ ] Phase 6 — Polish + public release

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT — built by Yehezkiel Tampubolon

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选