razberri MCP Server
A privacy-first, local-first MCP server that provides 15 ADHD/second-brain tools for capturing, prioritizing, and resurfacing tasks with context from calendar, mail, and messages.
README
razberri
Private hackathon repository for razberri, a privacy-first, local-first second-brain assistant.
You capture the loose threads you are afraid you'll lose track of — reminders, follow-ups, deadlines, errands, ideas, and "don't let me forget this" family contactents. razberri then uses a local MCP agent layer plus Work IQ-style context (calendar, mail, and message signals) to decide what matters now, resurface it proactively, and turn each thread into one tiny next step.
Two design lenses sit underneath that one product:
- Neurodivergent-aware / ADHD executive-function support — non-judgmental, small-next-action oriented, "stuck is information, not failure."
- Microsoft Work IQ alignment — Outlook, Calendar, and Messages are the first context surfaces, but the executive-function engine is local and service-agnostic.
Core loop:
Capture → Context → Prioritize → Surface → Resolve
📖 Full reference: see DOCUMENTATION.md for the consolidated guide (architecture, MCP tools, web API, CLI, configuration, and roadmap).
What's in the box
razberri runs locally and offline by default. Everything below is on-device; nothing leaves your machine unless you explicitly enable the live Microsoft Graph path.
| Surface | Where | Role |
|---|---|---|
| MCP server | mcp_server/main.py |
FastMCP server exposing 15 ADHD/second-brain tools |
| Web app + JSON API | mcp_server/web.py |
FastAPI app; single-page UI + JSON API |
| CLI demo | demo.py |
Judge-friendly commands (brief, breakdown, best-time, calendar import, portal) |
| Local memory | mcp_server/thread_store.py, mcp_server/nexus_client.py |
SQLite-backed threads + "Nexus" event history |
| Dev portal | mcp_server/devportal.py |
Local admin console to configure the optional integrations |
Optional, opt-in capabilities (graceful fallback when absent)
- LLM-assisted breakdown & mission text (
mcp_server/llm_client.py) — local Ollama is the default provider; Azure OpenAI is also supported. If the model is unreachable, razberri falls back to a deterministic heuristic and never crashes. - ML best-time recommender (
mcp_server/timing_model.py,mcp_server/timing_engine.py) — a scikit-learn model learns your follow-through hours from local history. Until trained, a statistical profile is used. - Offline calendar import (
mcp_server/calendar_import.py) — import a real.icsso the demo runs on your actual schedule without any live account. - Live Microsoft Graph calendar (
mcp_server/graph_transport.py) — implemented and opt-in via MSAL device-code. Mock mode is the default, and the live path is untested in this build; it degrades to mock fixtures on any auth/transport failure.
See WINDOWS_SETUP.md for turning each optional capability on.
Repository layout
mcp_server/ MCP server, FastAPI web app + API, tools, adapters, local memory
mock_data/ Graph-shaped mock fixtures (Outlook, Calendar, Messages, Planner, To Do, OneNote)
demo.py CLI demo entry point
tests/ pytest suite (hermetic; ignores your local .env)
docs/ Supporting docs, archive, and planning notes (SPEC, PLAN, PRODUCT_STRATEGY, UI_REFRESH)
ARCHITECTURE.md Adapter pattern + data flow
WINDOWS_SETUP.md Turning on Ollama / ML best-time / live Graph
DEMO.md 2–3 minute demo script
Thread persistence
Captured threads are written to a local SQLite database so the running demo retains threads,
importance fields, done/snoozed status, and the selected current thread across restarts. The public
entry point is mcp_server/storage.py, which re-exports the underlying repository and adds two
startup helpers:
init_storage(path=None)builds the repository (or a disabled one when persistence is off).storage_status(repository=None)returns a JSON-serializable snapshot for/api/agent/status.
The FastAPI app wires both through a lifespan context manager so storage init runs once at boot.
- Default path:
./data/threads.db(relative to the working directory). - Override with
RAZBERRI_THREAD_DB_PATH. - Set it to
memory(oroff/false/ empty) to disable persistence (in-memory only). data/*.dbanddata/*.sqliteare gitignored — the database is a local runtime artifact.
Tests always run with an ephemeral temp-file database configured by tests/conftest.py, so they
never touch real user data.
Run the prototype
On the Windows demo machine the validated path is system Python 3.13 with no venv —
python -m pip install -r requirements.txt once, then run directly. On other machines, activate a
venv first if you use one.
Start everything with one command
python run.py # starts the web app and opens the browser
python run.py --portal # start the dev portal as the control center on :8765
python run.py --install # pip install -r requirements.txt first, then start
run.py launches the FastAPI web app (UI + API) as a managed child process and stops it cleanly on
Ctrl+C. Run python run.py --help for all flags (--host, --port, --reload, --no-browser).
With --portal, the dev portal becomes the control center: it opens on :8765, owns the web UI
lifecycle (Start / Stop / Restart from the browser), and shows a live overview of every subsystem —
web UI, LLM provider, the Ollama models detected on your machine, Azure, Microsoft sign-on, and the
calendar source. The web UI then carries a "dev portal ↗" link back to it.
The MCP stdio server for MCP clients is separate: python mcp_server/main.py.
Or start the web app directly
pip install -r requirements.txt
uvicorn mcp_server.web:app --host 0.0.0.0 --port 8000
Override the database path for the demo:
RAZBERRI_THREAD_DB_PATH=./demo_data/threads.db uvicorn mcp_server.web:app --host 0.0.0.0 --port 8000
Open:
http://127.0.0.1:8000
LAN URL for testing from another device on your network (Wi-Fi IP as of 2026-06-12 —
re-check with ipconfig if it changes):
http://192.168.1.188:8000
Development tooling
This project was built in Visual Studio Code with GitHub Copilot assistance. See docs/COPILOT_AND_VSCODE.md for the submission note describing how VS Code and Copilot supported implementation, testing, and documentation.
Validate
pytest -q
Expected: 102 passed. The suite is hermetic — it pins an opt-in-OFF baseline and ignores your
local .env, so results do not depend on whether you have Ollama, Azure, or Graph configured.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。