KASA
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@KASAsave this article's key points to my memory vault"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Project KASA
A Sovereign, Local-First Memory Vault for Agentic Browsing on Windows
⚠️ v0.1 — Research Preview / Security Architecture Demo
This is an experimental prototype. Do not use it for production or for sensitive data.
It exists to demonstrate and measure an architecture — permissions, encryption and audit for local AI agents — not to be a finished product. Run it against throwaway data.
What is actually true today, each item pointing at its evidence rather than asserting a property:
Runs entirely locally
vault file, key and permission decisions never leave the machine
Encrypts specific fields
3 columns, AES-256-GCM, AAD-bound — not the whole database
Limits tool authority in ordinary code
deterministic broker; the model is never the boundary
Keeps a hash-chained audit ledger
tamper and deletion detection both measured PASS
233 tests pass
2026-08-03 run, in an isolated copy that imports only from itself
What is NOT claimed — these are open, written down, and some are measured failures: identity binding (
agent_idis client-asserted and audit attribution is forgeable), full at-rest encryption, egress control, and independent security audit. The KASA browser ships disabled because of a known bridge-isolation defect. The project's own benchmark currently records the verdict not release-ready.We publish our own negative results. The open findings are in
SECURITY.md; the failing measurements are indocs/SECURITY_BENCHMARK.md. Start there, not here.
Related MCP server: Hippocampus
The Problem
Current agentic browsers store persistent user memory in vendor clouds, posing significant privacy and control issues. Users lack ownership of their browsing data, and the legal implications of granting permissions to AI agents are not clearly defined. This project aims to address these shortcomings by providing a local-first, encrypted, user-owned memory vault that can be accessed by any agent via a permission-brokered MCP (Model Context Protocol) server.
What KASA Does
KASA is designed as a sovereign memory vault for Windows users: the vault file, the encryption key and the permission decisions all stay on the user's machine. Complete control is not claimed — the measured limits (client-asserted agent_id, unobserved egress, plain-text metadata columns) are named under Project Status below. It operates on the principle of "Agents come and go; your memory is yours." The system includes:
A local Memory Vault that encrypts sensitive cells at rest with per-cell AES-256-GCM. Honest scope: encryption is cell-level over three columns, not whole-database — see Project Status below.
An MCP Server that exposes this vault to any agent with permission via a brokered protocol.
Permission calculus ensures that only authorized agents can access the data, maintaining strict control over user information.
Architecture
KASA's architecture comprises five key components:
Component | Role | MVP Availability |
Memory Vault | Local store; sensitive cells encrypted (AES-256-GCM), metadata columns plain text | ✅ |
MCP Server | Localhost server exposing the vault to agents | ✅ |
Agent Core | Local model and planner | ✅ (distillation only) |
Permission Broker | Deterministic gate for external access | ✅ (scope checks) |
Browser Extension | Reads pages, later executes actions | Deferred |
Design Invariants
Thin Edges, Thick Core: The extension must contain no intelligence and no data; all state lives in the helper application.
Model is Not the Security Boundary: Authorization decisions are made by the Permission Broker in ordinary code.
Page Content is Data, Not Instructions: Any text originating from the web is tagged as quoted data. Goals may be derived only from the user's own commands.
Security
Every security claim in this repository is expected to name the measurement it rests on. The current
evidence report is docs/SECURITY_BENCHMARK.md (21 checks with
per-check evidence strings), the per-test detail with explicit limits is
SECURITY_TESTS_EN.md, and an independent audit with open findings is
docs/KASA_DENETIM_VE_PROJEKSIYON_2026-08-01.md.
Red-team findings — what was measured, and what is still open. Each line names its evidence; nothing here claims the class of attack is solved.
Indirect prompt injection into the distillation chain — untrusted event text is wrapped in explicit delimiters and a QC provenance gate rejects facts the model cannot cite. Measured:
tests/test_distill_injection.py,tests/test_delimiter_breakout.py,tests/test_semantic_injection.py. Limit: prompt injection is an industry-wide open problem; the defense here is structural (the model is never the security boundary), not a claim of immunity.MCP authorization — the allow-list (
PUBLIC_TOOLS), reserved-agent block and per-scope deny-by-default checks pass their measurements (AUTHZ-*checks indocs/SECURITY_BENCHMARK.md;tests/test_agent_gate.py). Still open:agent_idis client-asserted, so a token holder can impersonate another privileged agent id and audit attribution is forgeable — see the F-IMP finding inSECURITY.mdanddocs/MCP_CANLI_TEST_EYLEM_PLANI_2026-08-02.md. This is not closed.KASA browser bridge isolation — open, and the reason the browser ships disabled. The pywebview
js_apibridge lives in the visited page's JS context and page scripts are injected with no origin check, so any visited site can reachwindow.pywebview.api.*, includingset_proxy()andingest().open_browser()now refuses to start withoutKASA_ENABLE_BROWSER=1, failing closed before any side effect (tests/test_browser_optin_gate.py, with both a negative and a positive control). Limit: established from code structure and from the ingest feature's own operation; no working exploit was written or run. Full write-up:SECURITY.md, "Known-unsafe surfaces". A smaller defect on the same surface was fixed — the address bar no longer interpolates the URL into HTML.Automated test→fix loops — a zero-cost local-model loop plus browser health gates run the checks repeatedly (
_orch/loop/,tools/security_bench/). They raise regression coverage; they are not evidence of security by themselves.
Roadmap
Ordered by what blocks the next honest claim, not by effort. Each item closes a gap that is
currently measured open — the evidence is linked from SECURITY.md.
Version | Goal | Closes |
v0.1 (this release) | Clean public repo, safe example config, limits stated plainly | — |
v0.2 | Verified process/agent identity — resolve | F-IMP; makes audit attribution meaningful, and fixes the rate-limit bypass that shares its root cause |
v0.3 | Default-deny egress + capability permissions | "no egress control" |
v0.3 | Privileged UI outside page context | the browser bridge isolation defect above |
v0.4 | Attack testing, brakes and budgets | turns the red-team scripts into gates |
v1.0 | Production candidate — after independent security review | "no independent audit" |
Install & Run
Requirements
Windows only. KASA is not cross-platform today: the tray app uses PyQt5 on Windows, and the vault key is protected with the Windows DPAPI. On macOS/Linux the DPAPI layer is a no-op, so the key protection KASA relies on does not exist there (measured limit:
docs/SECURITY_BENCHMARK.md→ "Bilinen Sınırlar" / Known Limits, non-Windows DPAPI no-op).Python 3.12 — always use it. The desktop path is pinned to 3.12: a Nuitka-compiled binary segfaults when opening the pywebview window under Python 3.14. This is measured, not assumed —
docs/EXE_PACKAGING_LOG.md, "Spike-2 Py3.14: SEGFAULT (exit 3)", and the build script refuses any other version atbuild_kasa.ps1:29-32. Honest scope of that measurement: it was observed on the desktop/exe path; the test suite and the security benchmark themselves were last run under 3.14.5 (docs/SECURITY_BENCHMARK.mdheader). Using 3.12 avoids the question entirely.Ollama installed separately. KASA does not ship or install a model runtime. Distillation is optional at runtime; the vault and the dashboard work without it.
Steps
Create a virtual environment (recommended, and it keeps the 3.12 pin explicit):
py -3.12 -m venv .venv .\.venv\Scripts\Activate.ps1Dependencies: Install required Python packages using the following command:
pip install -r requirements.txtLocal Ollama Runtime (optional, needed only for distillation): install Ollama separately from https://ollama.com, then pull the model and make sure it serves at http://localhost:11434:
ollama pull qwen2.5:7bConfiguration: Copy
kasa.toml.exampletokasa.tomland set your desired configurations in it, such as server host/port and vault path. The bearer token is generated on first run.Start the System Tray App: Run the application using:
python run.pyHeadless Mode for MCP Server Only: For running only the MCP server without the tray icon:
python run.py --no-trayRun One Distillation Pass and Exit: Use the following command to perform one distillation pass and exit:
python run.py --distill-nowEncrypted Portable Export: Export your vault as an encrypted file with:
python run.py export --output my_vault.kasa --verify
MCP Tools
KASA exposes the following MCP tools for local use:
profile_read(scope),profile_write(fact),forget(topic),audit_read(range),event_ingest,prune_expired_events.
Testing
KASA uses pytest for testing. To run the tests, use:
pytest -qProject Status
Not release-ready — and the project says so itself. The current benchmark stamp reads
"NOT READY FOR RELEASE": 21 checks, 18 PASS · 1 FAIL · 2 WARN
(docs/SECURITY_BENCHMARK.md, commit 2dfda9e). The house rule is nothing is sealed until it is
measured, so labels such as "hardened", "enterprise-grade" or "production-ready" are not used here —
docs/UI_UX_STANDARD.md §2.6 forbids them until they are empirically measured.
Implemented and measured green: the MVP-0 security core — vault + MCP server + brokered permissions + distillation + audit hash-chain. All 7
AUTHZ-*checks pass (including C5/C7/C8 and the127.0.0.1bind check), the 3AUDIT-*chain/tamper checks pass, the 5CRYPTO-*checks pass, bothFUZZ-*checks pass, and the dependency audit reports 0 vulnerable dependencies.Measured red / amber:
SCAN-SECRETSFAIL — the bearer token is stored in plain text inkasa.toml; an owner-only ACL is applied, rotation and DPAPI wrapping are still pending.SCAN-BANDITWARN (13 medium findings, untriaged) andSCAN-BAK-HYGIENEWARN.Named open gaps, measured in
docs/KASA_DENETIM_VE_PROJEKSIYON_2026-08-01.md: (a)agent_idis client-asserted and unverified, so the rate limiter can be bypassed and audit attribution is forgeable (§4.1); (b) egress is neither controlled nor observed — the plan indocs/GUVENLIK_CIKIS_PLANI.mdis unbuilt (§4.4); (c) at-rest encryption is cell-level over three columns, not whole-database — metadata columns remain plain text (§1 anddocs/adr/0003-at-rest-sifreleme-boslugu.md).On prompt injection — the honest framing: it remains an industry-wide open problem class. KASA's defense is structural (the model is never the security boundary; the permission gate is ordinary deterministic code), not a claim of invulnerability.
Browser extension, web actions (A1-A3), cloud masking/escalation, and the fingerprint-spoofing layer are deferred / parked (out of MVP-0 scope).
Test-by-test detail, including what each claim does not prove, is in
SECURITY_TESTS_EN.md.
Contact
All project contact runs through GitHub. There is deliberately no e-mail address: keeping the conversation on the repository means it stays public, attributable and searchable by the next person with the same question, and it does not require the maintainer to publish an address that would then be permanently indexed.
What you have | Where it goes |
A security vulnerability | Security tab → Report a vulnerability (private advisory). Read the known-gaps list in |
A question, an idea, a critique of the architecture or the measurements | |
A reproducible bug that is not security-relevant | |
A patch | A pull request. Note the dual licence below before you send one. |
Please do not open a public issue, pull request or discussion for a security-relevant finding before it has been triaged.
This is a research preview maintained by one person. Expect considered replies rather than fast ones, and expect "we measured that and it failed" to be a normal answer.
License
KASA is dual-licensed:
AGPL-3.0 — free for individual, educational and research use, and for any use that keeps derivative work open under the same terms. The canonical license text is
LICENSE.Commercial license — for organizations that want to build on KASA without releasing their derivative work under the AGPL. Terms:
COMMERCIAL.md.
Attribution to the author stays with the project under both options.
KASA — a sovereign, local-first memory vault for agentic browsing. Author: @aikadimsoy · Repository: https://github.com/aikadimsoy/kasa-mcp
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceAn MCP-native, local-first memory server that gives AI agents persistent, structured memory across sessions and tools, enabling them to maintain identity and context without reconfiguration.Last updated3MIT
- Alicense-qualityAmaintenanceOpen-source MCP memory server providing persistent, cross-platform context for AI tools via a knowledge graph with encrypted storage.Last updated1613AGPL 3.0
- Flicense-qualityCmaintenanceA local-first, privacy-preserving centralized memory hub for AI agents — MCP-compatible, zero cloud egress.Last updated2
- Alicense-qualityCmaintenanceA local-first memory server for AI tools that provides cross-tool, consent-gated, and auditable memory management via MCP.Last updatedAGPL 3.0
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aikadimsoy/kasa-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server