Metadata-Version: 2.5
Name: kenweave
Version: 0.0.1
Summary: The scoped people graph for AI agents, as an MCP server. Pre-alpha: in development.
Project-URL: Homepage, https://kenweave.com
Project-URL: Source, https://github.com/kenweave/kenweave
Project-URL: Issues, https://github.com/kenweave/kenweave/issues
Author: Kenweave
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: ai-agents,mcp,people-graph,privacy
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Database
Requires-Python: >=3.14
Description-Content-Type: text/markdown

# Kenweave

**The scoped people graph for AI agents. Private by default, one fact once, different rights per bot.**

Kenweave is a headless, highly secure relationship graph and data vault designed specifically for AI agents. By communicating over the Model Context Protocol (MCP), Kenweave provides your agents with a unified, deduplicated memory of people, places, and households—all strictly fenced by per-agent API scopes.

General agent memory systems treat people as generic text chunks, forcing duplicate data and hallucinated relationships. Kenweave solves this by dynamically calculating derived kinship and time-bound overlaps, ensuring your bots only know exactly what they are authorized to know.

## 🛡️ Core Capabilities

* **Strict Per-Agent Scopes:** Permissions are mapped to the bot via API keys, not the human user. Safely run a travel bot, a family bot, and a work bot from the exact same database, each with entirely different field-level read/write access.
* **The "Leak Rule":** Absolute privacy by default. Derived relationship paths, contextual hints, or database queries will never expose a hidden person or entity to an unauthorized bot key.
* **One Fact Once:** Data is never duplicated. The graph inherently understands reverse relationships (if A is a parent to B, B is a child to A) and calculates derived family ties recursively to maintain absolute truth across all connected agents.
* **Audiences for Items:** Specific notes or access codes can be tagged with targeted audiences (e.g., `pickup`), ensuring only authorized agents at the exact right time can retrieve them.
* **Local-First Architecture:** Operates completely stateless over MCP, capable of running air-gapped on private servers with zero cloud dependency.

## 🏗️ Architecture & Tech Stack

* **Server:** Python, with the official MCP SDK. The web app runs on Starlette.
* **Database:** PostgreSQL, with recursive CTEs for the relationship paths. Raw SQL with psycopg, no ORM.
* **Admin interface:** a local operator web app, rendered on the server with Jinja templates.
* **Integration:** Model Context Protocol (MCP) native.

## 🚧 Status

Kenweave is in development and is not ready to use yet. The package on PyPI holds only the version. It registers the name. The first usable release will have the install steps.

Follow the project on [kenweave.com](https://kenweave.com) and on [GitHub](https://github.com/kenweave/kenweave).

## License

Apache-2.0. See [LICENSE](https://github.com/kenweave/kenweave/blob/main/LICENSE).
